PDA

View Full Version : [CLOSED] Remote validation when reordering rows



RCN
Jun 11, 2012, 12:42 PM
I would like to implement a custom validation when reordering rows in a GridPanel, as shown in the following example http://examples2.ext.net/#/DragDrop/Grid/Rows_Reordering/. Unfortunately i did not found a way to accomplish this task. I would like to know whether there is something close from the approach implemented in TreePanel http://examples2.ext.net/#/TreePanel/Advanced/Remote_Mode_with_Service/

Daniil
Jun 11, 2012, 2:40 PM
Hi,

Unfortunately, there is no such functionality in Ext.NET. And it's not a simple task.

I would use DragDrop events to:

1. Cancel dropping.
2. Saving what and where should be dropped.
3. Firing a request to server (I would use a DirectMethod) to validate dropping. Then in a success handler of DirectMethod make "dropping" manually if it's allowed.

RCN
Jun 11, 2012, 3:48 PM
Thank you Danill, please mark it as resolved

RCN
Jun 11, 2012, 6:04 PM
Daniil, i wonder why ext offers this functionality if i does not offer any validation as provided in TreeViewDragDrop. What is the purpose of this functionality?

RCN
Jun 11, 2012, 6:37 PM

RCN
Jun 11, 2012, 7:03 PM

Daniil
Jun 11, 2012, 8:41 PM
Daniil, i wonder why ext offers this functionality if i does not offer any validation as provided in TreeViewDragDrop. What is the purpose of this functionality?

Seems I am a bit confused what the functionality you are talking about. Please provide more details.

I will review your solution tomorrow.

RCN
Jun 12, 2012, 11:59 AM

RCN
Jun 12, 2012, 12:00 PM
please keep me posted on the review of my solution

Daniil
Jun 12, 2012, 4:02 PM

RCN
Jun 12, 2012, 4:56 PM
i agreed with you Daniil. I just want to clarify that my intention was to improve our framework. make it the best we can.

RCN
Jun 12, 2012, 5:00 PM
please mark it as closed

Daniil
Jun 12, 2012, 5:11 PM
Yes, I understand you. Thanks again for the suggestion!