jQWidgets Forums

jQuery UI Widgets Forums Grid Issue with "showvalidationpopup" property in Grid

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Stoev 10 years, 5 months ago.

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

  • Vishwa
    Member

    Hi,

    I am trying to display the validation error message for a particular field in a Grid. I tried using “showvalidationpopup” property to show the validation error message as mentioned in the API documentation, i.e.

    $(“#jqxgrid”).jqxGrid(‘showvalidationpopup’, rowIndex, datafield, message);

    But the rowIndex attribute (2nd argument) expects the number to be between 0 to size of the page( when pagination is used). I mean if only 10 rows are displayed in a Page of the grid, then the rowIndex provided should be between 0 – 9. If the row Index mentioned is more than 9, it throws an error message “Uncaught TypeError: Cannot read property ‘visualrow’ of undefined”.

    So to show the message for a field in 15th row of the grid (5th row in 2nd page), should i be mentioning the rowIndex as 4? Is there no direct way for me to provide the actual row id (14 in this case) to this property?

    Any pointer on this would be of great help.

    Thanks & Regards,
    Vishwa


    shanegarner
    Participant

    The same issue occurs if you are on the first page of the grid but the grid scrolls and the field that has the error is not scrolled to.


    shanegarner
    Participant

    This illustrates the issue:

    http://jsfiddle.net/shanegarner/w6sshvhg/1/


    Peter Stoev
    Keymaster

    Hi guys,

    Thank you for the feedback. For now, you may use the built-in validation instead of showing a custom one using that method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.