Hi , I am using Infragistics WebDatePicker My Java script function code is like this function
isLastSigDateChecked()
{
if (document.getElementById("<%= chkLastSigDate.ClientID %>").checked == true)
var datapicker = $find("datLastSigDate");
datapicker.set_enabled(true);
}
else
var datapicker = $find("datLastSigDate"); datapicker.set_enabled(false);
} }
But it is not working for me,i followed this code as per the Post posted from Infragistics Forums
I am getting the error in this line
datapicker.set_enabled(false);
so how to enable the webdatepicker when one checkbox checked=true
and to disable the webdatepicker when one checkbox checked=false
please let me know as quick response
Any Answer will be appreciated
thank you
I had a similar problem, this works
var ReportDate = $find("<%=dtBookDate.ClientID%>");
ReportDate.set_enabled(true);
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 text box to be enabled/disabled on the check/uncheck of checkbox using Jquery/javascript.
Please advise. The above solution is not working for me. I am getting error on $(find) and set_enabled.
Thanks a lot.
Hello tctsaravanakumar,
I am glad you are able to move forward.
Please let me know if you have further questions.
Hi Vivian
I achieved that task,thank you for your support
Just i put this line
var datapicker=$find("datLastSigDate")
at the begining of the function ,it works fine
It is possible that the WebDatePicker is not found, making the object "datepicker" null or empty. Please verify the control id specified in $find() function.
If the issue persists, please let me know.