Grid Popup Editor with Combo box

2 posts, 0 answers
  1. Chuck
    Chuck avatar
    35 posts
    Member since:
    Oct 2008

    Posted 26 Oct 2009 Link to this post

    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?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2009 Link to this post

    Hello Chuck,

    You can access the popup edit form and then access the controls in the ItemDataBound event of the grid as shown below:
     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          

Back to Top