MasterTableViewEditForm

4 posts, 0 answers
  1. Talha
    Talha avatar
    55 posts
    Member since:
    May 2007

    Posted 12 Nov 2009 Link to this post

    Hello,
    I have a RadComboBox in the Edit Form Template. On edit, I have to load data in it, but I can't find the the control.
    Anyone with the solution !!!!

    Regards,

    Talha Majeed
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Nov 2009 Link to this post

    Hi Talha Majeed,

    You can access the RadComboBox placed in FormTemplate in ItemDataBound event of grid as shown below.

    CS:
     
        protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) 
        { 
            if (e.Item is GridEditFormItem && e.Item.IsInEditMode) 
            { 
                GridEditFormItem editItem = (GridEditFormItem)e.Item; 
                RadComboBox combo = (RadComboBox)editItem.FindControl("RadComboBox1"); 
                // Populate the combo 
            } 
        } 

    Regards,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Talha
    Talha avatar
    55 posts
    Member since:
    May 2007

    Posted 14 Nov 2009 Link to this post

    Hi shinu,
    thanks for that, can you tell me what is the commandname of the "Add new record" available in the commandtemplate.

    Actually, when I click on the "Add new record", the EditFormTemplate does not show up which I've been using for editing the records and it is working fine with it.

    So, what do you say ????

    Regards,

  5. Talha
    Talha avatar
    55 posts
    Member since:
    May 2007

    Posted 14 Nov 2009 Link to this post

    Never mind, I've done it :) Thanks anyway.

    Regards,

    Talha Majeed
Back to Top