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

Grouping Issues

4 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 09 Sep 2009, 09:07 PM
I have a RadGridView with an unbound Select column (checkbox). If I group by any field, I can select a checkbox to select the row and everything appears to work fine. If I then select another checkbox, all grouping collapses, and that record is not selected.  I can then expand the grouping and select the record. This process then repeats for each record I select.  I am using the latest version of the WinForms controls.

Thanks in advance,
Tony

4 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 10 Sep 2009, 12:40 PM
Hi Tony,

Please find the answer to your question in the support ticket with the same question (ID 241531). Should you have any further questions, please feel free to write us back.

All the best,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sonya
Top achievements
Rank 1
answered on 21 Sep 2009, 06:51 PM
I'm having the exact same problem.  What was the solution?  Thanks!
0
Tony
Top achievements
Rank 1
answered on 21 Sep 2009, 07:30 PM
Here is the solution as provided by Jack at Telerik Support...

I found a solution for this issue. You should remove the specific filter expression when handling CellValidated event. Here is the work-around:

void radGridView1_CellValidated(object sender, CellValidatedEventArgs e) 
    if (this.radGridView1.CurrentCell is GridCheckBoxCellElement) 
    { 
        foreach (FilterExpression filter in this.radGridView1.MasterGridViewTemplate.FilterExpressions) 
        { 
            if (filter.FieldName == ((GridViewDataColumn)this.radGridView1.CurrentColumn).FieldName && 
                filter.Predicates[0].Function == GridKnownFunction.NoFilter) 
            { 
                this.radGridView1.MasterGridViewTemplate.FilterExpressions.Remove(filter); 
                break
            } 
        } 
    } 

As to our next release, it will be in November.

Sincerely yours,
Jack
the Telerik team
0
Sonya
Top achievements
Rank 1
answered on 21 Sep 2009, 08:12 PM
That fixed it, thanks!
Tags
GridView
Asked by
Tony
Top achievements
Rank 1
Answers by
Jack
Telerik team
Sonya
Top achievements
Rank 1
Tony
Top achievements
Rank 1
Share this question
or