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

Search Row searching on hidden column?

2 Answers 253 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kurt Boyer
Top achievements
Rank 1
Kurt Boyer asked on 03 Dec 2014, 01:39 PM
Is it possible to have the search row (in the GridView) also perform its search on hidden columns? If not, this would be a great feature in my opinion. When a substring matches a value in a hidden column, the entire row could be selected. Having the entire row selected (in lieu of selecting the separate values in each cell) would also be another great option to have.

Thanks for any insight you have.

2 Answers, 1 is accepted

Sort by
0
Kurt Boyer
Top achievements
Rank 1
answered on 03 Dec 2014, 05:51 PM
I've found a workaround that solves this issue. If you set the column's Width to 1, it is visibly perfect and also reacts great with the search row in the GridView. Setting the Width to 0 does not work, because the column gets resized to 20 pixels when it is shown.

radGridView1.Columns["mycolumnname"].Width = 1;
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Dec 2014, 11:55 AM
Hello Kurt,

Thank you for writing.

RadGridView search functionality performs searching among the visible columns in the grid. As you have already found out, you can leave the column visible but set its width small enough to be like invisible. It is suitable to set the GridViewColumn.MaxWidth property to 1.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Kurt Boyer
Top achievements
Rank 1
Answers by
Kurt Boyer
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or