Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Enable/Disable WebDatePicker in ASP.NET Grid
posted

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.