This is a migrated thread and some comments may be shown as answers.

Problem with AutogeneratedColumns and Filtermenu column

2 Answers 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Cherie
Top achievements
Rank 1
Cherie asked on 02 May 2016, 10:17 PM

I have a radgrid that I am building and I'm using autogeneratedcolumns= true because the datasource resultset has pivoted/dynamic columns. The datatype in the pivoted columns is BIT(so I want checkboxes to show for those columns).

When I set AllowFilteringByColumn=true, I get checkbox filtering menus at the top of each column, when I check it, it filters out all rows that aren't checked in the resultset... When I uncheck it, all of the results come back, but none of the checkboxes that were checked are checked. It seems that unclearing a "checkbox filter" only unchecks all checkboxes after all rows are shown again, but there is no recheck of the boxes that were checked. (I've attached my code).... is this the way this is supposed to behave?

Also, filtering seems to only work sometimes.... When I look for "checked only" sometimes, the results are incorrect. 

 

I've attached screenshots and code within same docx file.

2 Answers, 1 is accepted

Sort by
0
Cherie
Top achievements
Rank 1
answered on 02 May 2016, 10:20 PM
Oh and sorry the order of the attachments is upside down... please click going from bottom to top when viewing attachments.
0
Konstantin Dikov
Telerik team
answered on 05 May 2016, 12:03 PM
Hello Renee,

I see in the attached screenshots that the items that were checked initially are not displayed when you uncheck the checkbox in the header, which is the expected behavior, because you are applying a filter to display the "unchecked" values only. In order to display back all items you need to use the filter icon and choose the "NoFilter" option.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Cherie
Top achievements
Rank 1
Answers by
Cherie
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or