jQWidgets Forums

jQuery UI Widgets Forums Grid Checkbox validation on row select

This topic contains 4 replies, has 2 voices, and was last updated by  mallepaddi 11 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Checkbox validation on row select #31351

    mallepaddi
    Participant

    Hi

    I do have “checkbox” for row select and “numericinput” column for entering Quantity on each row in datagrid.

    I am looking for a way to validate checkbox selected,

    ex : if user selects “checkbox” (means selects row) but doesn’t enter value in Quantity filed then error should be like “Enter Quantity” against “Quantity” field.

    Please assist …

    Thanks

    Checkbox validation on row select #31353

    Peter Stoev
    Keymaster

    Hi mallepaddi,

    A validation in jqxGrid is possible only if the cell editor is already opened and the validation is performed when you try to save the edited value. The built-in editing and validation is illustrated in the Grid’s Editing demo. Unfortunately, other options for validation are not available.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Checkbox validation on row select #31354

    mallepaddi
    Participant

    Thanks for your reply, i have gone through above example before sending my request.

    But which will not be helpful in my case as my validations are based on “CheckBox” state, if “checkbox” selected and “Quantity” field empty then raise an error … i think it’s a valid scenario …

    Any work around … on validating “quantity” based on checkbox select ..

    Please advice …

    Thanks

    Checkbox validation on row select #31355

    Peter Stoev
    Keymaster

    Hi mallepaddi,

    It is unfortunately not possible to validate a cell which is not into edit mode. I am afraid that your scenario is not supported by our widget’s edit validation.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Checkbox validation on row select #31356

    mallepaddi
    Participant

    Thanks again,

    Could you please recommend an alternative something like … checking checkboxk should immediately focus the control into “Quantity” field where i have validation on user input, what i need to know is switching focus from checkbox to Quantity field.

    Possible ?

    Thanks

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

You must be logged in to reply to this topic.