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

Grid Popup Editor with Combo box

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 26 Oct 2009, 06:49 PM
I am using a radgrid with the popup editor. My editor has 2 radcombo boxes on it that I need to load from server side. What is the appropriate way to do this?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 Oct 2009, 05:14 AM
Hello Chuck,

You can access the popup edit form and then access the controls in the ItemDataBound event of the grid as shown below:
c#:
 protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e) 
    { 
        if (e.Item is GridEditFormItem && e.Item.IsInEditMode) 
        { 
            GridEditFormItem editableItem = (GridEditFormItem)e.Item; 
            RadComboBox rdcmbx = (RadComboBox)editableItem.FindControl("RadComboBoxID"); 
            rdcmbx.DataSource = " "// set the DataSource here          
        } 
    } 
 

Thanks
Princy.
Tags
Grid
Asked by
Chuck
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or