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

Reorder rows in client-side

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Quang Anh
Top achievements
Rank 1
Quang Anh asked on 24 Jun 2016, 08:39 AM

Hi,

I want reorder rows in javascipt, move some rows up to first. I don't want to use Drag and Drop row.

Ideally, I have some sort expression and I want to to move some rows which contain value in expression up to first.

Is it possible to do this in javascript ?

Many thanks,

Quang Anh

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 29 Jun 2016, 09:00 AM
Hello,

The required functionality is only possible with the drag and drop mechanism provided by the RadGrid control and can not be achieved entirely on the client. See the online demo below for more information on that matter:
http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx

Regards,
Maria Ilieva
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
Quang Anh
Top achievements
Rank 1
answered on 01 Jul 2016, 12:26 PM

Hi Maria,

I knew about drag and drop function. But I want to do it by javascript.

Ideally, I have some dropdownbox controls, after selected criteria in these dropdownbox controls I want to move rows that have value equal with search criteria to top of gridview.

Is it possible with javascript ?

Many thanks,

Quang Anh
0
Maria Ilieva
Telerik team
answered on 05 Jul 2016, 03:32 PM
Hi,

Unfortunately the client-side API does not allow achieving the required functionality entirely on the client. You should use the drag and drop feature for this scenario.

Regards,
Maria Ilieva
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Quang Anh
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Quang Anh
Top achievements
Rank 1
Share this question
or