Hi, I have place RadCombo inside RADGRID like this
<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign ="Center" UniqueName="Field" >
<ItemTemplate >
<telerik:RadComboBox ID="dropdownfield" runat="server"
EmptyMessage="Choose an instance column" HighlightTemplatedItems="true" AllowCustomText="true"
EnableLoadOnDemand="false" EnableVirtualScrolling="true" Filter="Contains" Visible="true" Enabled="false"
DropDownWidth="600px" Width="600px" Skin="WebBlue">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:300px;">
Column Name</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:300px;">
<%# DataBinder.Eval(Container.DataItem, "FieldName")%>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
Below is my javascript to enable/disable RadComboBox
function EnableDisbledropdown(chkbox, index) {
var grid = $find("<%= raggrid.ClientID %>");
var masterTableView = grid.get_masterTableView();
var item = masterTableView.get_dataItems()[index]; // here i'm getting specific row of that grid
var combo= item.findControl("dropdownfield");
if (chkbox.checked) {
combo.enable(); /* for RadComboBox */
}
else {
combo.disable(); /* for RadComboBox */
}
Well my scenerio is that when user check the checkbox Control of that specific row , that corresponding RadComboBox has to be get enabled.
When i run the code i got this following error msg:-
"Object doesn't support this property or method 'enable'
Can someone please show me how to achieved that functionality ?
<telerik:GridTemplateColumn HeaderStyle-HorizontalAlign ="Center" UniqueName="Field" >
<ItemTemplate >
<telerik:RadComboBox ID="dropdownfield" runat="server"
EmptyMessage="Choose an instance column" HighlightTemplatedItems="true" AllowCustomText="true"
EnableLoadOnDemand="false" EnableVirtualScrolling="true" Filter="Contains" Visible="true" Enabled="false"
DropDownWidth="600px" Width="600px" Skin="WebBlue">
<HeaderTemplate>
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:300px;">
Column Name</td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table cellspacing="0" cellpadding="0">
<tr>
<td style="width:300px;">
<%# DataBinder.Eval(Container.DataItem, "FieldName")%>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
Below is my javascript to enable/disable RadComboBox
function EnableDisbledropdown(chkbox, index) {
var grid = $find("<%= raggrid.ClientID %>");
var masterTableView = grid.get_masterTableView();
var item = masterTableView.get_dataItems()[index]; // here i'm getting specific row of that grid
var combo= item.findControl("dropdownfield");
if (chkbox.checked) {
combo.enable(); /* for RadComboBox */
}
else {
combo.disable(); /* for RadComboBox */
}
Well my scenerio is that when user check the checkbox Control of that specific row , that corresponding RadComboBox has to be get enabled.
When i run the code i got this following error msg:-
"Object doesn't support this property or method 'enable'
Can someone please show me how to achieved that functionality ?