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

Disable on Popup Edit Form

2 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Philip Senechal
Top achievements
Rank 1
Philip Senechal asked on 08 Oct 2010, 08:01 AM
Can you tell me how I would disable a RadComboBox on a RadGrid Popup Edit form ONLY when the Popup Edit form is in Update mode? I need the RadComboBox to be enabled when in Insert mode. Thanks =)

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 08 Oct 2010, 08:20 AM
Hello Philip,

You can set the Enabled property of RadComboBox from mark up like below depends on whether the grid is in insert/edit mode.

ASPX:
<telerik:GridTemplateColumn>
    <EditItemTemplate>
        <telerik:RadComboBox ID="RadComboBox2" runat="server" Enabled='<%#Convert.ToBoolean((Container is GridEditFormInsertItem) ? "True" : "False" )%>'>
        </telerik:RadComboBox>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

Thanks,
Princy.
0
Philip Senechal
Top achievements
Rank 1
answered on 12 Oct 2010, 04:55 AM
That's what I was looking for...thanks =)
Tags
Grid
Asked by
Philip Senechal
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Philip Senechal
Top achievements
Rank 1
Share this question
or