jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Filterrow not applying when grid is inside jqxwindow
Tagged: jqxgrid filterrow jqxwindow
This topic contains 4 replies, has 2 voices, and was last updated by Martin 7 years, 2 months ago.
-
Author
-
Hello, I have a weird issue that seems to have popped up all of a sudden..
I have a few grids which live inside jqxWindows – the grid’s source is set during the open event of the jqxWindow. Usually there is grid data I need to retrieve based on some specific ID, so the data source is updated with a new id, and the grid set to the new source/adapter whenever the jqxWindow opens.
For some reason, the first time the window opens, I cannot filter the grid contained inside the window. If I close the window, and re-open it it will begin filtering.
Example here:
http://jsfiddle.net/dRbAE/606/
Open the jqxWindow via the button and attempt to filter the grid. Won’t work. Close window, and pop it up again, and it will now work.
Hello bjpetal,
I noticed that you have the following piece of code twice in your code. On line 76 and on line 165.
$("#groupUsersWindow").jqxWindow({ autoOpen: false, resizable: true, isModal: true, minWidth: 600, minHeight: 600, width:800, height:600, maxHeight: 800, maxWidth:1200, position: 'center' });
It seems that the issue is coming from this and that it is fixed when you remove the first piece of code on line 76.
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/Aha you’re right – sorry about that. After reviewing my code some more, it looks like I am probably getting this error because I am initializing the grid in a hidden div – I guess that’s not ok to do?
Here’s a simpler example… If the jqxWindow is initialized (autoOpen:false) before the grid, this issue will be present. This seems to be because the grid is being initialized on a hidden element(jqxWindow hides the div when it initializes).
Hello bjpetal,
I updated your last example by moving the groupUsersGrid initialization inside the windows’s open event handling and it seems to by working now.
http://jsfiddle.net/dRbAE/610/
Best Regards,
MartinjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.