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

expand collapse a row

3 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matthew Mackay
Top achievements
Rank 1
Matthew Mackay asked on 15 Jun 2010, 11:00 PM
is it possible to expand / collapse a row (custom) with additional information and even HTML / functionality within it?

So not using the hierarchical stuff but more a list of items that can be expanded / collapsed and have additional information and even links to other pages?

Plus, it could be dragged (as a whole row) to another control (like a tree)?

Let me know if there are any examples or anything that can point me in the right direction..

Thanks..

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Jun 2010, 06:25 AM
Hello,

I guess using NestedViewTemplate (which can be greatly customized) is suits your need. You can place the HTML content in NestedViewTemplate, that allows you to expand/collapse the row.

Checkout the demo that shows how to have a structure resembling a standard hierarchy, using NestedViewTemplate.
NestedViewTemplate Relations


-Shinu.
0
Matthew Mackay
Top achievements
Rank 1
answered on 16 Jun 2010, 06:57 PM
Yes, that is a good example.. thank you..

Is it possible to mix that with drag / drop? I want to be able to drag a row out of this control and into a tree

and also, how to use this without sql binding? I have object collections and would rather set DataSource to List<SomeObject>

THanks

Thanks
0
Pavlina
Telerik team
answered on 22 Jun 2010, 10:03 AM
Hello Matthew ,

RadGrid exposes flexible event-driven mechanism to drag and drop grid records to reorder them within the same grid, move them to different grid instance or drop them over other html element on the page.

You can refer to the to the following online example for more information:
Items drag and drop

Regards,
Pavlina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Matthew Mackay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Matthew Mackay
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or