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

RadGrid automatically groups data on Row Edit ended

5 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nivid
Top achievements
Rank 2
Nivid asked on 13 Mar 2013, 09:15 PM
I have a Radgrid where if i group by certain columns and then edit some rows data. It will automatically shift that row to the group that it should belong to. Is there any way i can stop this behavior.

5 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 14 Mar 2013, 02:51 PM
Hi Nivid,

This is the expected behavior in such cases. Unfortunately you cannot go around it. The problem is that the GridView is processing the PropertyChanged events of the business object and matches the new criteria against the existing group descriptors, hence placing the item in their proper group. 

May I ask you what exactly are you trying to achieve so I can suggest an alternative approach to tackle the problem?

Looking forward to your response! 

Regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nivid
Top achievements
Rank 2
answered on 14 Mar 2013, 03:28 PM
Hi Nik,
 Thanks for the quick response. 

The reason why i asked to stop is there some data which if we try to edit them and it is automatically grouped we loose focus of the whole row where the user is trying to edit as there is a possibility of having multiple groups at the time and the user has to search for the row where it was shifted. because there are other fields to be edited too. Is there any workaround to stop or to cancel the autogrouping.

Thanks

Nivid
0
Nick
Telerik team
answered on 14 Mar 2013, 03:34 PM
Hello Navid,

You can use the ScrollIntoView method of the GridView on Row/CellEditEnded event to bring the edited item into view no matter which group it has been moved to. 

Let me know if this will work for you. 

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Nivid
Top achievements
Rank 2
answered on 14 Mar 2013, 03:48 PM
Hello Nik,
 Yes you are correct i can do that. but the issue that it will lead to will be the groups arent expanded and if we do that will it auto expand the groups?

Thanks
Nivid
0
Vera
Telerik team
answered on 18 Mar 2013, 04:38 PM
Hi Nivid,

Indeed, the group will be automatically expanded. I have attached a simple project demonstrating the approach. Please take a look at it and let us know in case you have any further questions.

Greetings,
Vera
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Nivid
Top achievements
Rank 2
Answers by
Nick
Telerik team
Nivid
Top achievements
Rank 2
Vera
Telerik team
Share this question
or