How to use Dynamic Filter on a ReadOnly grid?

Good day,

I have a large grid with many rows that is Read Only.
I want to use the Dynamic filter to limit the rows.
However the moment I mark the grid as Read Only, the filter row also becomes readonly and I cannot use it.

How can I have a ReadOnly grid but be able to use the filter row?

Attachment: DelFilters_beb3dccd.zip

3 Replies

AR Arulpriya Ramalingam Syncfusion Team January 11, 2018 10:04 AM UTC

Hi James,   
   
Thanks for contacting Syncfusion support.   
   
By default, the CurrentCell will not be activated when the BrowseOnly for the grid is enable and the drop down of current cell will be opened after the cell is activated. If you want to set the record row as read only but not for the FilterBarRow, we would suggest you to use the ReadOnly property for the RecordFieldCells alone. We have modified the attached sample as per your requirement. Please make use of the modified sample and below code,   
   
Code example   
   
//To set read only for the record rows alone.   
grid.TableDescriptor.Appearance.AnyRecordFieldCell.ReadOnly = checkBox1.Checked;   
   
   
Note    
Please refer to the below UG to know more about the difference between the ReadOnly and BrowseOnly.   
   
   
Regards,   
Arulpriya   



JR James Roodt January 11, 2018 10:26 AM UTC

This is perfect. Thank you.


AR Arulpriya Ramalingam Syncfusion Team January 12, 2018 04:08 AM UTC

Hi James,

Thanks for your appreciation.

We are glad to hear that the provided solution was resolved your scenario.

Please let us know if you have any other queries.

Regards,
Arulpriya 

Loader.
Up arrow icon