jQWidgets Forums
Forum Replies Created
-
Author
-
I had the idea to perform cell validation in my app.
I add a row and initialize the cells i need. But some cells are null because they must be filled by the user.Problem: If the user immediately punches my “Save” button (as suggested by the original poster) the cell validation callback is not called.
However if they enter a value, validation is called, usually.The doc doesn’t state any rules for when validation occurs.
Systems of the past have the rule that cell validation is called whenever focus leaves an editable record in which cell validation is defined. If so, we could catch the guy who punches “Save” without filling in the blanks.
It would be preferable, you see, to do cell-level validation, instead of waiting for a save event, then looping thru potentially thousands of rows to validate things that were not recently changed.
I hope this is clear. I would like the grid to trigger a cell validation (defined in the columns hash) if focus leaves an editable row.
February 24, 2016 at 9:08 pm in reply to: ensurerowvisible is not working properly ensurerowvisible is not working properly #81804Method “ensurerowvisible” behaves unexpectedly and this can be demonstrated on jsFiddle.
Go to: http://jsfiddle.net/jqwidgets/hBM5L/
Change line 72 so that the method tries to view row 499.
Add the following items after line 32:
editable:true,
pageable:true,
pagermode:”simple”,
pagesize:25,
pagesizeoptions:[25],
pagerbuttonscount:-1,
autorowheight:true,
Now run the JS. Navigate to the very last row by clicking the button.
Try to edit one of the cells in the very last row.
The table jumps up to a random row and the edited row is off-screen. Good luck trying to edit the cell.Ensuring the row is on-screen for editing seems to work if the entire page is on-screen. But if the page size is larger than the window, and you attempt to edit a cell which is normally deeper on the page, its visibility is not ensured. This will always occur when autorowheight==true and the cell values have multi-line text.
This seems to be a bug.
-
AuthorPosts