jQuery UI Widgets › Forums › Grid › Filterrow produces errors on grid
Tagged: #jqwidgets-grid, grid, javascript grid, jquery grid
This topic contains 2 replies, has 2 voices, and was last updated by pablodg 7 years ago.
-
Author
-
Hi,
I have a working grid with filters. When I add “showfilterrow: true” in the construction of the grid, I start to have troubles. I saw similar reports in the forum, but they did not reproduce the problem.
I created this:
https://jseditor.io/?key=ec11f81e59e311e8b2d800224d6bfcd5-ver-2
Which is a messy reproduction of my real scenario. However, it fails in a similar way.
STEPS
1. You can open the link, the grid opens ok (with no rows, but ok). When you click on ‘Tallers [35]’ button, the grid reloads with no problems at all.
2. Go to JavaScript jseditor tab, replace the line:/* PROBLEM APPEARS ADDING THIS showfilterrow: true, */
by
showfilterrow: true,3. Run again. Make sure you see console errors.
4. The grid shows ok (with no rows, but ok). When you click on ‘Tallers [35]’ button, the grid brokens with javascript errors.As far as I can understand the grid, no matter what I am doing, changing the filter mode should not create javascript errors. In production the grid is loading data, in the example it shows empty, but both places fails the same way, so, I think you may be able to troubleshot the problem….
Thanks a lot, Pablo.
Hello Pablo,
The provided example is too confusing and it is difficult to be read or to debug it.
We do not have such practice.
As it looks this error happens when you make filtering you could try to make the new example with this functionalities only.
Please, provide us one simple example of a concrete issue.PS: Another thing that I saw you use
createSource
function to update the source of the Gird and you do it this without DataAdapter.
I would like to suggest you use DataAdapter and to update it only. Please, take a look at this example: http://jsfiddle.net/jqwidgets/dRbAE/Also, I would like to suggest you look at this tutorial, it could be helpful:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-extra-http-variables.htm?search=gridBest Regards,
Hristo HristovjQWidgets team
http://www.jqwidgets.comActually the real scenario is much more complex. I invested time in isolating the error in jseditor.io, as I though that was quite convenient for you to see the bug. Many of your customers can fall into that bug, and you have it isolated here.
As Chrome allows you to put breakpoints, and you could look at it using the non-minified sources of the Grid (just replace the type=”text/javascript” src=”https://www.aacademica.org/js/jqwidgets-ver5.7.2/jqwidgets/jqxcore.js lines), I imagined (and I still think) that messy should not be a problem if you want to solve the bug.
Thanks anyway for your time, PDG>
-
AuthorPosts
You must be logged in to reply to this topic.