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

Dynamic Bindings in InPlace Editing mode in RadGrid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 05 Sep 2013, 11:56 AM
Hi All,

I have one dropdownlist of all database table names and on the selection of the table name all the data of that table are loading in Telerik Radgrid.

My Requirements are
1. Inplace edit mode.
2. If Database column type is Numeric/int/float... then I want to show RadNumeric Text box, if column type is "DateTime" then I want to show DatePicker, if Column Type is 'Varchar' then want to show textbox etc...
3. Each database table has different number of columns and different datatypes.

so anybody can tell that how can I add respective controls in edit mode based on SQL Data Type?

currently all the data are showing in the textbox in inplace editmode, can any one please help us for this scenario and tell us how can I change text box to radnumeric textbox or datepicker in gridview of InPlace Edit mode???

Thanks in Advance!

Thanks & Regards,
Kiran Patel

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 10 Sep 2013, 06:06 AM
Hello Kiran,

In order to achieve your scenario you could create your RadGrid programatically in Page_Load or Page_Init event. Depending on the types retrieved from the database create the required column. You could go trough the help article below for more information on how to create the RadGrid programatically.

Regards,
Antonio Stoilkov
Telerik
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 the blog feed now.
Tags
Grid
Asked by
Kiran
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or