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

Grid with a template column with addition of Dropdowns with a button click

1 Answer 33 Views
Grid
This is a migrated thread and some comments may be shown as answers.
The
Top achievements
Rank 1
The asked on 18 Feb 2016, 03:41 PM

I have to create a grid where one of the columns will be a template column which will hold a Drop down and +/X button. On Clicking of + user can add as many dropdowns as they want and X will delete them in a single row and this data will be saved back to DB.

I know i will have create a grid in Page_init and use ITemplate to create this. every row will be uniquely identified by a value and i need to access that value inside the ITemplate to store the data back to DB to keep track of how many dropdowns have been added so that on page refresh i can load them back in. Is it possible? I tried but i cannot access the data inside the ITemplate->InstantiateIn method since data bound has not happened yet. 

Any example?

 

- The Aqua

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 Feb 2016, 01:46 PM
Hi,

The required functionality is a custom scenario that is not supported out of the box for the RadGrid controls. I would suggest you to revise the online topics below that can help in implementing this functionality on your side:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/creating-a-radgrid-programmatically#creating-template-columns-programmatically
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows

You can access the controls form the template in the PreRender event.



Regards,
Maria Ilieva
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
The
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or