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

GroupByExpressions not updated after adding a group on the client side

1 Answer 36 Views
Grid
This is a migrated thread and some comments may be shown as answers.
dmw
Top achievements
Rank 1
dmw asked on 08 Oct 2010, 05:56 PM
Hello,

Our project uses the GroupByExpressions collection to generate SQL when NeedDataSource is fired. I noticed that when a group is added to the grid by dragging it onto the group panel, the GroupByExpressions collection does not include a GridGroupByExpression for this new group when handling NeedDataSource. Checking the collection later, in PreRender, I see that the new GridGroupByExpression is included, but a rebind at that point does not seem to affect the grid.

The reverse operation of removing a group by dragging it away from the group panel seems to work as expected, i.e. the GroupByExpressions collection does not include the removed group.

Is there a setting or some workaround which will ensure that GroupByExpressions always contains the correct information after adding or removing a group? I don't really want to have to rebind in any case.

Telerik version is 2009.3.1314.35.

Thanks,

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Oct 2010, 04:43 PM
Hello,

You could access the GroupByExpressions in the RadGrid_DataBound event handler. Unfortunately there is no way to force RadGrid to add these expressions earlier.

Regards,
Daniel
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
Grid
Asked by
dmw
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or