jQWidgets Forums

jQuery UI Widgets Forums Grid Issue in applying validation on Grid.

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  Klaus H 11 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Issue in applying validation on Grid. #29698

    Apeksha Singh
    Participant

    Hi ,

    The validation on jqxNumberInput  inside the grid is not working properly.

    The validation I want is:-

    1- To make the border of the input box red if user enter any value less than 0.00 on any negative value .

    2- If user clicked any where else the value of input field should reset to 0.00 again.

    I am able to do this outside grid, by setting min value as 0.00.

    Please guide me regarding this as soon as possible.

    Thanks & Regards,

    Apeksha

    Issue in applying validation on Grid. #29715

    Peter Stoev
    Keymaster

    Hi Apeksha,

    The Validation available in jqxGrid is demonstrated in the “Cell Editing” demo which is available online. The validation is done via a Tooltip. Other validation approaches are not supported.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Issue in applying validation on Grid. #30527

    Apeksha Singh
    Participant

    Hi Peter Stoev,

    I want to have a validation ,i.e. user cannot enter negative value in a grid cells.
    Please guide me regarding this how I can do it.

    Thanks & Regards,
    Apeksha

    Issue in applying validation on Grid. #30590

    Klaus H
    Participant

    If I may help, since i had the same problem, the solution is quite simple if you use a numberinputfield in the grid:

    {text: 'Your column', datafield: 'yourcolumn', width: 100, columntype: 'numberinput', editable: true,
    createeditor: function (row, cellvalue, editor) {
    editor.jqxNumberInput({ decimalDigits: 0, digits: 2, min: 0, max: 99 });
    }

    In that example, the user can only enter numbers between 0 and 99.

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

You must be logged in to reply to this topic.