Hi,
In my Radgrid, i have a dropdownlist inside EditItemTemplate.
On change of ddlAxis, depending on its value i want to enable/disable cbIsSameAxis using javascript. Below is the code.
Pls suggest how to do this.
In my Radgrid, i have a dropdownlist inside EditItemTemplate.
On change of ddlAxis, depending on its value i want to enable/disable cbIsSameAxis using javascript. Below is the code.
Pls suggest how to do this.
<
telerik:GridTemplateColumn
UniqueName
=
"tcAxis"
HeaderText
=
"Axis"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblAxis"
runat
=
"server"
></
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:DropDownList
ID
=
"ddlAxis"
runat
=
"server"
>
<
asp:ListItem
Text
=
"--Select--"
Value
=
"--Select--"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"PrimaryB"
Value
=
"PrimaryB"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"PrimaryT"
Value
=
"PrimaryT"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"SecondaryT"
Value
=
"SecondaryT"
></
asp:ListItem
>
<
asp:ListItem
Text
=
"SecondaryB"
Value
=
"SecondaryB"
></
asp:ListItem
>
</
asp:DropDownList
>
<
asp:RequiredFieldValidator
ID
=
"rfvAxis"
runat
=
"server"
ErrorMessage
=
"*"
ControlToValidate
=
"ddlAxis"
InitialValue
=
"--Select--"
></
asp:RequiredFieldValidator
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"tcIsSameAxis"
HeaderText
=
"Is Same Axis"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"cbIsSameAxisDisplay"
runat
=
"server"
Enabled
=
"false"
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:CheckBox
ID
=
"cbIsSameAxis"
runat
=
"server"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>