We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to save new record order after drag & drop?

Thread ID:

Created:

Updated:

Platform:

Replies:

126435 Oct 14,2016 11:50 AM Oct 17,2016 08:41 AM ASP.NET MVC 2
loading
Tags: Grid
R Brian Lindahl
Asked On October 14, 2016 11:50 AM

I want to use the Grid and the row drag & drop to change the order of the data rows in the database. For example, my model object has a "SortOrder" field, that is used elsewhere in the application to control the order that this model's data shows up in a report. I want to be able to drag & drop the rows and have it post the new order value(s) back to the database. Is this possible?

R Brian Lindahl
Replied On October 16, 2016 01:31 PM

OK, I've figured out the original question... need to use .RowDropSettings(a => a.RowDropMapper()).

Second question - how do I do this with a treegrid? It doesn't have a RowDropSettings member.

Third question - with a treegrid, is it possible to only set AllowDropChild for certain nodes? For example - I want to use the TreeGrid as a master/detail grid, showing parent nodes on the first level and the detail records on the second. In this situation, it doesn't make sense to drop a detail record as a child of another detail record, or as a sibling of a master record, for that matter.

Thanks in advance...

Brian

Venkatesh Ayothi Raman [Syncfusion]
Replied On October 17, 2016 08:41 AM

Hi Brian, 
  
We have created the new incident regarding this query under your account to track the status of this requirement. Please log on to our support website to check for further updates.  
  
  
Regards,  
Venkatesh Ayothiraman. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;