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

[Solved] Binding DropDownlist in inline edit mode.

2 Answers 264 Views
Grid
This is a migrated thread and some comments may be shown as answers.
HHH
Top achievements
Rank 1
HHH asked on 11 Apr 2008, 02:46 PM
Hi There,


I m using Radgrid "Prometheus", I want to bind dropdownlist on fly and i m refering this link 

http://www.telerik.com/help/radcontrols/prometheus/?grdCustomizeConfigureGridDropDownColumn.html

According to above link i m trying to add values in dropdownlist box but

ex: 
 GridDropDownListColumnEditor editor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor( "DropDownColumn"));
 DropDownList ddList = editor.DropDownListControl;

i m not able to find editor.
Dropdownlistcontrol, it says there is no dropdownlistcontrol.

Any one knows how to convert GridDropDownListColumnEditor  to dropdownlist box and add values ...

thanks

2 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 14 Apr 2008, 01:17 PM
Hi HHH,

Did you replace the DropDownColumn name (passed to the GetColumnEditor(colName) method) with the UniqueName of your GridDropDownColumn? Thus you should be able to access the dropdown editor control when grid item is switched in edit mode.

Regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
HHH
Top achievements
Rank 1
answered on 14 Apr 2008, 02:45 PM

Thanks 


I was creating object this way according to link
wrong way


//GridDropDownColumnEditor editor = editMan.GetColumnEditor("Name") as GridDropDownColumnEditor;

It works this way..
right way


GridDropDownListColumnEditor
editor = (GridDropDownListColumnEditor)(editMan.GetColumnEditor("Name"));


thanks
HHH

Tags
Grid
Asked by
HHH
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
HHH
Top achievements
Rank 1
Share this question
or