Hi,
I am using webdatepicker in asp.net grid like this
<asp:TemplateField HeaderText="Book Date" HeaderStyle-Width="120px" ItemStyle-Width="120px" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" SortExpression="BOOK_DATE"> <ItemTemplate> <ig:WebDatePicker ID="dtBookDate" Enabled="False" runat="server" Width="100px" DisplayModeFormat="dd/MM/yyyy" Value='<%# Bind("BookDate") %>' EditModeFormat="dd/MM/yyyy"> </ig:WebDatePicker></asp:TemplateField>
The first column of a grid contains check boxes.
<asp:TemplateField><ItemTemplate> <asp:CheckBox runat="server" ToolTip="Select" ID="chkRow" /> </ItemTemplate></asp:TemplateField>
I want the WebDatePicker to be enabled/disabled on the check/uncheck of checkbox using Jquery/javascript.
Thanks a lot.
Hello Nirmit,
Please feel free to contact me if you have any questions regarding this matter.
I am attaching a sample illustrating how the templated webDatePicker may be accessed and enabled/disabled in this scenario. Please feel free to contact me if any questions arise.