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
1845
Disabling in javascript
posted

How do you disable this control in Javascript?  I don't see any disable or enable methods?

I tried disabling the html input element, which keeps the user from entering input, but this of course doesn't change the styling, so the control still looks like you can enter data into it.  So, I have to use the JQuery addClass to add 'ui-state-disabled' to the element.  I have to do this all in reverse to enable the control.

If this is the only way to accomplish this, can you point me to any documentation on extending the control to add disable and enable methods?

Parents
  • 23953
    Verified Answer
    Offline posted

    Hi JoshNoe,

    There is option "disabled" which is not documented. You can use it in the following way:

     

    Code Snippet
    1. //On initialization
    2. $('.selector').igCurrencyEditor({
    3.     disabled: true
    4. });
    5.  
    6. //Setter in runtime
    7. $('.selector').igCurrencyEditor("option", "disabled", true);

     

    I'll make sure to document it in the next Service Release.

    Thank you for your valuable question.

     

    Martin Pavlov

    Infragistics, Inc.

Reply Children
No Data