jQWidgets Forums
jQuery UI Widgets › Forums › Grid › jqxGrid | Not able to find the custom error cell when scroll bar appears
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 11 years, 1 month ago.
-
Author
-
April 24, 2014 at 10:37 am jqxGrid | Not able to find the custom error cell when scroll bar appears #53529
Hi,
In my grid, I highlight the particular cell using css class name, if it fails the validation. Hence when saving the grid, if that grid contains the error cell i.e. custom class name for example: “error-cell”. Then I’ll show a message to the user to resolve the error in a grid using the following,
if($('#jqxgridAccountsPermissions').find('.error-cell').length!=0) { //show message code goes here }
The above scenario is working fine when the error cell is visible upfront. Suppose when I scroll the grid and the highlighted error cell is hidden inside the scrollbar, then I’m not getting the length inside the grid.
Can you please suggest me, how to keep track of error cells even though is not in the visible area i.e. below the scroll level.
Looking for a solution.
Cheers,
SenthilApril 24, 2014 at 10:39 am jqxGrid | Not able to find the custom error cell when scroll bar appears #53531Hi Senthil,
To select a cell in the Grid with jQuery is wrong. You cannot manipulate such cells, set them custom attributes, etc. If you wish to customize the style of a cell, you can use the column’s cellclassname or cellsrenderer functions.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comApril 24, 2014 at 10:59 am jqxGrid | Not able to find the custom error cell when scroll bar appears #53533Hi Peter,
I forgot to mention in previous post that, I set the class name using cellclassname only.
Since then, I can able to get the count only when the error cell is visible upfront. If it is present inside the scrollable region I’m not getting the count.
Can you please suggest me, how to keep track of error cells even though it is not in the visible area i.e. below the scroll level.
Looking for a solution.
Cheers,
SenthilApril 24, 2014 at 11:19 am jqxGrid | Not able to find the custom error cell when scroll bar appears #53534Hi Senthil,
You shouldn’t try to select with jQuery HTML Elements which are part of the jqxGrid’s HTML Structure. If you want to get cells, get values, set values, etc, you should use only the Grid’s API in the way it is documented on this page: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.