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
295
WebDateTimeEditor - get javascript reference by ID
posted

I found this post regarding working with the WebDateTimeEditor client-side:

http://ko.infragistics.com/community/forums/t/76245.aspx

This won't work for me as I am creating a dynamic form. I do not know which controls will be rendered at design time. My form will have a "Clear" button.  I did this with older versions of the WebDateTimeEditor using the igedit_getById method to get the CSOM to clear the values of infragistics controls. It doesn't appear to be available in version 2011.

Please advise how to get a reference to a control by its ID.

Thanks.

Parents
  • 37874
    posted

    Hello Chad,

    You can reference a control by ID using the $find function like this:

    var dateTimeEditor = $find(“WebDateTimeEditor1”);

    or

    var dateTimeEditor = $find(‘<%= webdatetimeeditor1="" clientid="">’);

    Please let me know if this helps.

Reply Children
No Data