Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
jqGrid advanced search not working properly for grids inside jQuery dialog popups
31/07/2013
22:06
Avatar
gcassolato
New Member
Members
Forum Posts: 1
Member Since:
31/07/2013
sp_UserOfflineSmall Offline

I have a jqGrid My items whose rows, once clicked, open a jQuery UI modal dialog box Item detailswith details of the selected item. The data records for My items are retrieved through json, as well as each item's details loaded into the dialog Item details. Besides some textual descriptions about the item detailed (say X, the one I clicked on My items), the dialog content also includes a second jqGridSubitems of X. So I have two jqGrids on page: My items and Subitems of X; the later inside a modal dialog box Item details.

Advanced search works just fine for grid My items. I'm able to set rules and groups of rules and filter the grid with no problems at all. On grid Subitems of X though Advanced search pops up, I'm able to add or delete rules and groups of rules BUT I cannot input data to any form field (the search data) — they seem to be disabled for editing except they don't have such attribute set (or any other that suggests it is in fact disabled). I just can't focus them to enter any text. My datetime picker fields are the only exception; these I can click and choose a date on the calendar, but still not being able to input as text.

Also, the most strange thing happens when I change the value of any select field inside the Advanced search dialog box, including operators of groups (AND/OR) and rules ('equals to', 'begins with', etc): the first clickable element inside the modal dialog Item details, hidden behind the overlay of the advanced search dialog box (also modal), is clicked. In my case, this "first clickable element" happens to be a jQuery UI tab, because I splitted text descriptions about X and Subitems of X into two tabs inside the dialog Item details. Since the grid Subitems of X is on my second tab, when I activate this tab, see the grid, click to open the advanced search dialog for it and change any select field, the first tab of Item details is activated and I miss the grid.

In order to test whether or not it was anything related to jQuery UI Tabs, I tried not to use it, keeping only the grid Subitems of X inside the modal dialog Item details. When I changed a select field of the advanced search, it still executed the 'click' event of the first clickable element behind — now a button to open a third dialog box.

Please, I need help with this creepy behavior of jqGrid Advanced search inside a dialog popup. Thanks.

BTW, I'm using jqGrid 4.4.0 w/ jQuery 1.10.2. I tried updating jqGrid to 4.5.1, but same thing happened. Some of my most relevant grid properties are: {datatype: 'json', multiselect: true, sortable: true}, using pager, search options: {multipleSearch: true, multipleGroup: true, closeAfterSearch: true}. This is valid for both of my grids – in and outside the modal dialog box.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
32 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information