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

MasterTableViewEditForm

3 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Talha
Top achievements
Rank 2
Talha asked on 12 Nov 2009, 07:31 PM
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

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Nov 2009, 06:16 AM
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.
0
Talha
Top achievements
Rank 2
answered on 14 Nov 2009, 09:24 PM
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,

0
Talha
Top achievements
Rank 2
answered on 14 Nov 2009, 10:48 PM
Never mind, I've done it :) Thanks anyway.

Regards,

Talha Majeed
Tags
Grid
Asked by
Talha
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Talha
Top achievements
Rank 2
Share this question
or