jQWidgets Forums

jQuery UI Widgets Forums Grid Keyboard Navigation jqxgrid validations for mouse click not working

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 2 months ago.

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

  • Akshatha Raju
    Participant

    I am using keyboard navigation jqxGrid, in which I am doing some validations like, there are four columns and a 5th column as ‘Total’, the values entered in these  4 column’s should not exceed 100, which imples the 5th column’s value should be exactly 100, if it exceeds I am reverting back the values of that column which is makin ‘Total’ column value more than 100 and throwing alert. These validations are working fine when I am using the 4 arrow keys, but when I enter 120 value in a column and move to the next cell using mouse, validation does not happen at that time. Again when i move back to the cell where value 120 is entered, then validation is happening which is wrong. I am making use of ‘cellunselect’ event to do this validation. Alternatively ‘cellvaluechanged’ and ‘cellendedit’ event also can be used which exhibits the same behaviour. How to make my validations to work using mouse click? Is there any specific event for mouse click available to make this work, or any code which allows mouse click to work? Any help would be appreciated. Thanks in advance!


    Peter Stoev
    Keymaster

    Hi,

    jqxGrid supports only the type of validation illustrated in this sample: cellediting.htm.

    Another option is to use the column’s cellvaluechanging callback and return the appropriate value, if you need to.

    Best Regards,
    Peter Stoev

    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.