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

Problem with rows when filter is active

1 Answer 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fernan
Top achievements
Rank 1
Fernan asked on 14 May 2010, 09:44 AM
Hi,

I am filtering a checkbox column. When Filter is active, logically, only rows, which the checkbox column accept the filter criterium, are shown.

The problem is..., ¿where are the rest rows??? ¿Where are the rows which aren't shown?

Only a checkbox can be active. The checkbox column can not have two rows with the checkbox cell set to true.

Then, when the user click the checkbox and the value is true, I programaticly find in the all gridview's row and find the other row whose checkbox cell is true. I set this cell to false. This works fine.

The problem is when the filter is active, if the filter is filtering the checkbox column when the cell is set to false, when the user set to true the row, I can not find the other row whose checkbox cell is set to true.

¿How do I this ???

I am thinking not permit to the user edit rows when filter is active. But..., ¿How do I know when the filter is active?

Thank you,

Fernan

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 19 May 2010, 03:23 PM
Hi Fernan,

You can use the Filter property of the desired Column for this scenario:

if (gridView.Columns[0].Filter != null)
{
          //make RadGridView read-only gridView.Columns[0].ReadOnly = true;
}
else
{
    //allow edit operations gridView.Columns[0].ReadOnly = false;
}

Sincerely yours,
Julian Benkov
the Telerik team


Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Fernan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or