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

Selected Row Up and Down

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 12 Nov 2019, 05:13 AM

Hi, 

We need to move the RadGrid selected Row Up and Down by using buttons Up and Down outside the RadGrid. We need to implement this approach on Urgent basis any Solution would be highly appreciated?

Thanks,

Sufyan

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 14 Nov 2019, 08:08 PM

Hi Eric,

One approach to achieve the described behavior is by having an additional field in the database, something like "orderPosition" that contains a value which can be used to order the rows.

Then, in the Button click event handler, you can update the database record, by accessing the selected row and swapping its orderPosition value with the other row's located above or below, depending on the direction you want to move it.

Since this is an urgent request, I advise that you open a formal support ticket where we will guarantee 24h/72h response time.

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Eric
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or