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_TopicIcon
Reload Grid do not clear search toolbar - with example
09/11/2011
13:19
Avatar
0xFF
Poland
Member
Members
Forum Posts: 28
Member Since:
28/02/2011
sp_UserOfflineSmall Offline

Hello, 

Try this example: http://czepek.eu/jqgrid/ 

Put some text in search toolbar under "User" and "Description" column.

Then click "reload grid" button. Text under "Description" is cleared, but Text under "User" column remains.

(tested on IE8 or Chrome)

I don't know why, but there is problem with "User" col model:

{name:'displayname',    index:'u.name',   width:200},

When I change index:'u.name' to index:'name'  it start to work. So it seems to be problem with dot inside index name.

I like to have dots inside index, it helps me build SQL queries with table aliases.

AFAIK it worked fine in version 3.x.

Best regards

Piotr

10/11/2011
14:49
Avatar
jvosloo
New Member
Members
Forum Posts: 1
Member Since:
10/11/2011
sp_UserOfflineSmall Offline

I've got exactly the same issue. I couldn't figure out why some of the toolbar search values were being cleared and some not – now I know why!

Any thoughts/workaround would be much appreciated

10/11/2011
17:12
Avatar
OlegK
Germany
Member
Members
Forum Posts: 1255
Member Since:
10/08/2009
sp_UserOfflineSmall Offline

Hello!

I hope, that I found the bug. The problem is that in clearToolbar are used index instead of name property. The line 219 of grid.custom.js

$("#gs_"+$.jgrid.jqID(nm)+" option",$t.grid.hDiv).each(function (i){

should be changed to

$("#gs_"+$.jgrid.jqID(this.name)+" option",$t.grid.hDiv).each(function (i){

and the line 238

$("#gs_"+$.jgrid.jqID(nm),$t.grid.hDiv).val(v);

to

$("#gs_"+$.jgrid.jqID(this.name),$t.grid.hDiv).val(v);

In the jquery.jqGrid.src.js from jqGrid 4.2.0 it will be lines 3586 and 3605.

I hope this will solve the problem.

Best regards
Oleg 

11/11/2011
08:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thank you all. The problem is fixed.

https://github.com/tonytomov/jqGrid/commit/7a60f02c3e47624d0a54d87405c6b53f651368c6

Oleg I have not forgot about your xml recommendation

Kind Regards

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
46 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