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

Bulk Edit Dynamic Checkbox grid

2 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jacob
Top achievements
Rank 1
Jacob asked on 09 Jun 2010, 03:17 AM
Hi,

I am porting an old asp application to .net and I need to replicate a fairly complex grid scenario.

I have a list of resources which are heirachical with only 2 levels at the moment. So Parent Child relationships. I then have a set of Roles which are editable by the user so the grid will have to be generated dynamically.

Basically I need a grid with the first column showing the resources using the heirachical layout and then the remaining columns need to be the generated at run-time from the Roles with checkboxes in edit mode. Each check box needs to post back on selectedindexchanged to allow the role to be added to the resource.

Obviously the checkboxes need to be databound to the roles as well to check or uncheck appropriately.

I have attached a screen shot of the classic asp version. This one uses a save button but I want to do the postback automatically if possible.

Is this easily do-able with Rad Grid?

Thanks for any help.

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 14 Jun 2010, 12:11 PM
Hi Adam,

To handle the required functionality, you can define the structure of the control dynamically:

http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html

The structure of the hierarchy can also be created dynamically:

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/hierarchy/defaultcs.aspx

I hope these resources get you started properly.

Sincerely yours,
Yavor
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.
0
Jacob
Top achievements
Rank 1
answered on 15 Jun 2010, 12:09 AM
Hi Yavor,

Thanks for the reply but this is way too hard. I have implemented what I needed using repeaters and tables. That way I can easily bind checkboxes to the values I need to postback.

Thanks anyway.
Tags
Grid
Asked by
Jacob
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Jacob
Top achievements
Rank 1
Share this question
or