Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
I can't group on a field that has a button in it
posted

Following the directions in the Infragistics website as well as samples in the forums, I created a field (named HasErrors) in the XamDataGrid with a button in it, which shows or hides depending on the underlying boolean value of the field. When I try to group on this field however, it is not allowing me to group at all. This is a bit disappointing - could you tell me what I'm lacking so that I can enable grouping on this button field? 

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello James,

    Thank you for your post!

    While I am not entirely sure what functionality you may be implementing which is disallowing grouping of your field, I have created a sample project that I would like you to take a look at. It is attached to this post.

    In the sample project, I create a field with a button in it, but it may not be the same way you are going about it. This button's visibility is bound to the underlying data item, like yours as well. The difference here may be that I am using a TemplateField and setting the DisplayTemplate to show the button. Using this method though, I am currently able to group this field, and so I would recommend that you use this method as well.

    I hope this helps you. Please let me know if you have any other questions or concerns on this matter. If the sample project I have attached does not sufficiently demonstrate what you are trying to achieve, please feel free to modify it and send it back.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XDGGroupButtonFieldCase.zip
Children