jQWidgets Forums

jQuery UI Widgets Forums Form Can we get disabled api for form

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Can we get disabled api for form #101480

    Admir Hodžić
    Participant

    In many cases developers want to freeze (disable) form.

    Can we get extra api for jqxForm to disable all form, as we can do it with grid and other componets.

    I did try

    $("#formaPovrataSpn").jqxForm('disabled');
    This trows error
    Uncaught jqxCore: Invalid parameter ‘[disabled]’ does not exist.

    I usually my other forms disabling by code:
    $("#formaPovrataSpn :input").prop("disabled", true);
    This does not throw errors but form remain active.

    Also
    $(“#formaPovrataSpn”).prop(“disabled”, true);
    does not throw erros but there is no disabled.

    Look like only way to disable form inputs it is to irritate over all inputs, finding them by getComponentByName and setting prop for each.

    Can we get disabled api for form #101536

    Hristo
    Participant

    Hello Admir Hodžić,

    Thank you for this question.
    The mentioned approach is the available option.
    You should iterate all items and disable them one by one.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.