D
Deepak
Hi,
I am having a datagrid with 3 radiobuttons in one template column and a
textbox in another template column. How can I disable or enable the textbox
in the second template column depending on the value of the radio buttons?
I am also giving my datagrid for ur reference.
<aspataGrid id="MyDataGrid" runat="server" OnSortCommand="MyDataGrid_Sort"
AllowPaging="True"
PageSize="10"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
autodraw = "False"
AllowSorting="true"
AutoGenerateColumns="false"
Width=100%
<columns>
<asp:templatecolumn headertext = "<font style='text-decoration:none'
color='#ffffff' Title='Click here to SORT' Title='Click here to SORT'>
Approve/Reject</font>" >
<ItemTemplate >
<font = "LHBoxFont">
<asp:radiobutton id= "rbtnApprove" GroupName ="a" runat="server" /> Pay
Claims
<br>
<asp:radiobutton id= "rbtnReject" GroupName ="a" runat="server" /> Reject
Claims
<br>
<asp:radiobutton id= "rbtnIgnore" checked="true" GroupName ="a"
runat="server" /> Ignore Claims
</font>
<itemStyle width = 15% Cssclass = lblHeader align=center>
</itemStyle>
</ItemTemplate>
</asp:templatecolumn>
<asp:templatecolumn headertext = "<font style='text-decoration:none'
color='#ffffff' Title='Click here to SORT' Title='Click here to SORT'> Paid
Date/Comments</font>" >
<ItemTemplate>
<asp:textbox id= "txtPayClaims" runat="server"/>
</ItemTemplate>
<itemStyle width = 25% Cssclass = lblHeader >
</itemStyle>
</asp:templatecolumn>
</columns>
</aspataGrid>
In the above scenario, I want to enable the textbox,"txtPayClaims", if the
value in the radiobutton, "rbtnApprove" is selected and must disable the
textbox if the value in the radiobutton, "rbtnReject" is selected .
Is there any way I can do this??
Thanks,
Deepak
I am having a datagrid with 3 radiobuttons in one template column and a
textbox in another template column. How can I disable or enable the textbox
in the second template column depending on the value of the radio buttons?
I am also giving my datagrid for ur reference.
<aspataGrid id="MyDataGrid" runat="server" OnSortCommand="MyDataGrid_Sort"
AllowPaging="True"
PageSize="10"
BorderColor="black"
BorderWidth="1"
GridLines="Both"
autodraw = "False"
AllowSorting="true"
AutoGenerateColumns="false"
Width=100%
<columns>
<asp:templatecolumn headertext = "<font style='text-decoration:none'
color='#ffffff' Title='Click here to SORT' Title='Click here to SORT'>
Approve/Reject</font>" >
<ItemTemplate >
<font = "LHBoxFont">
<asp:radiobutton id= "rbtnApprove" GroupName ="a" runat="server" /> Pay
Claims
<br>
<asp:radiobutton id= "rbtnReject" GroupName ="a" runat="server" /> Reject
Claims
<br>
<asp:radiobutton id= "rbtnIgnore" checked="true" GroupName ="a"
runat="server" /> Ignore Claims
</font>
<itemStyle width = 15% Cssclass = lblHeader align=center>
</itemStyle>
</ItemTemplate>
</asp:templatecolumn>
<asp:templatecolumn headertext = "<font style='text-decoration:none'
color='#ffffff' Title='Click here to SORT' Title='Click here to SORT'> Paid
Date/Comments</font>" >
<ItemTemplate>
<asp:textbox id= "txtPayClaims" runat="server"/>
</ItemTemplate>
<itemStyle width = 25% Cssclass = lblHeader >
</itemStyle>
</asp:templatecolumn>
</columns>
</aspataGrid>
In the above scenario, I want to enable the textbox,"txtPayClaims", if the
value in the radiobutton, "rbtnApprove" is selected and must disable the
textbox if the value in the radiobutton, "rbtnReject" is selected .
Is there any way I can do this??
Thanks,
Deepak