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
Problem with Integrated Search Toolbar
18/06/2009
23:04
Avatar
maj0411
New Member
Members
Forum Posts: 2
Member Since:
01/04/2009
sp_UserOfflineSmall Offline

Tony

I'm using the lasted code from github for beta 3.5.  I have the following grid:  Search toolbar opens/closes properly.  When i enter a values in the search fields and hit enter key, the URL fires to my servlet, but the _search parameter posted is always "false" and no field values are posted.  Am I doing something wrong?

jQuery(document).ready(function(){
    var mygrid = jQuery("#sgrid").jqGrid({
    url:'jqGridController?module=GetPersonnelsgridReportJSON',
    datatype: "json",
    colNames:[...
             ],
    colModel:[...
             ],
    rowNum:15,
    rowList:[10,15,20,25,30,10000], 
    rownumbers: true,
    gridview: true,
    mtype: 'POST',
    pager: jQuery('#sgridpager'),
    height: '100%',
    sortname: '1',
    sortorder: 'asc',
    viewrecords: true,
    caption: 'MultiColumn Filter Search'})
    .navGrid('#sgridpager',{view: false, edit: false, add: false,
                            del: false, search: false, refresh: false})
   .navButtonAdd("#sgridpager'",{caption:"Search",title:"Toggle Search Toolbar",
                               buttonicon:'ui-icon-pin-s',
        onClickButton:function(){
     mygrid[0].toggleToolbar()
        }
    })
    .navButtonAdd("#sgridpager'",{caption:"Clear",title:"Clear Search",
                                buttonicon :'ui-icon-refresh',
        onClickButton:function(){
     mygrid[0].clearToolbar()
        }
   });
   mygrid.filterToolbar();
});

21/06/2009
06:15
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Not sure what you do, but the exactley same example is on the demo page and it works ok. Also could you please post the entry colModel?

Where you check that _search paremeter is false - server side or in FireBug?

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.

23/06/2009
04:45
Avatar
koni
Member
Members
Forum Posts: 6
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

Same problem here, using jqGrid 3.5.

The Search-parameter "_search" is always false (server-side).

Demopage uses jqGrid 3.4.3, is this the problem?

24/06/2009
01:17
Avatar
koni
Member
Members
Forum Posts: 6
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

This is an Bug within "filterGrid".

Input-Elements are built with the "index" from the colModel.

But the search-trigger searches input-fields with the with the "name" from the colModel. Therefore, your "index" and "name" fields in the colModel must be exact the same. If there is a difference, filterGrid fails.

colModel-Example:

Works:

{name:'product_erp_id', index:'product_erp_id', width:80, align:'right',  xmlmap:"erp_id"}

Dont Work:

{name:'erp_id', index:'product_erp_id', width:80, align:'right',  xmlmap:"erp_id"}

27/06/2009
10:33
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

At end to resolve this - PLEASE HOW DO YOU CHECK THAT THIS PARAMETER IS FALSE SERVER SIDE?

If you look in the demo you maybe will check this

php code

$myserch = $_GET["_search"];

if($mysearch == "true") {.....}

AND NOT

if($mysearch)

Regards

P.S. The best way to check this is to see the posted parameters in FireBug console.

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.

29/06/2009
01:26
Avatar
koni
Member
Members
Forum Posts: 6
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

See my post above, this a definitly not a Problem with server-side checking of POST/GET-Parameters. Beside that, maj0411 and i, were using Java.

"_search" is in Firebug and server-side false.

29/06/2009
03:19
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Do not see something wrong. Also if you check demo35 all seems to work fine.

Also could be this connected that you and maj0411 use Java ?

Also a link to the problem will help me a lot.

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.

01/07/2009
10:31
Avatar
koni
Member
Members
Forum Posts: 6
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

Tony, read my second post please.

This error occurs, wenn name != index in the colModel, if name = index, or index is not defined, all is fine.

02/07/2009
03:32
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello koni,

Could you please try 3.4.4 where this is fixed.

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.

03/07/2009
04:07
Avatar
levtomas
New Member
Members
Forum Posts: 1
Member Since:
03/07/2009
sp_UserOfflineSmall Offline

Hi Tony,

I am having the same issues as koni and he is right about the reason why it does not work. It works in previous versions but not it 3.5 beta. Thanks in advance for fixing this bug asap and for a lot of hard work that you've done.

08/07/2009
05:41
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Since for me is very dificult to reproduce this behaviour I will be very happy if someone send me a link to the problem. If someon send a link please to include the development version (not minified version)

Thank you

Best 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.

12/07/2009
06:55
Avatar
koni
Member
Members
Forum Posts: 6
Member Since:
23/06/2009
sp_UserOfflineSmall Offline

Hi Tony,

thanks for your attention.

I have a little setup for you here: http://85.10.211.132/jqGrid-Demo/

I hope, this shows our problem.

14/07/2009
12:37
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks koni. I have fixed this. Could you please try with the latest build.

Best 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:
67 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