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

Drag column from one Grid to rows in a different grid

1 Answer 30 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 04 Dec 2012, 09:27 AM
Hi

I have a page with a list of categories, represented as a RadGrid (called CategoryRadGrid).
To the right of this list I have another RadGrid (called CategoryDetailRadGrid) which basically shows detailed information about a row in the first grid.


So when you click on a row in CategoryRadGrid (containing a subset of info about a category), every detail about this category is shown in CategoryDetailRadGrid.

CategoryDetailRadGrid has the column headers from CategoryRadGrid as rows with corresponding values for the category (hiding it's header of course).

Binding is done client-side.

What I want to do is this:
I want to be able to drag a row from CategoryDetailRadGrid to CategoryRadGrid (preferrably to the header section, containing column names) as to indicate that I want to extend CategoryRadGrid with a new column.
And I want to do this vice versa, i.e. drag a column from CategoryRadGrid to CategoryDetailRadGrid to remove it from CategoryRadGrid.

So far I've only managed to intercept the client event, OnRowDropped, when I drag a row from CategoryDetailRadGrid to the rows in CategoryRadGrid (which I as mentioned would like to be able to drag to the header part instead),

Any suggestions?

Regards

Christian

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Dec 2012, 09:29 AM
Hello Christian,

I would suggest you to review the following online demo which presents the required functionality:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Test it on your end and verify if it covers your requirements.

Greetings,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or