Forum
02:03
24/06/2010
First of all .. thank's for share your work..!!
I have tested the new release and i noticed the multisearch does not work with 2 or more constraints in IE 7 in this version neither..!!
Is it a bug?? or I need to correct something..??
I've read that it can be caused because of the css but i can´t find the solution..!! Does anybody already find it??
Greetings from México..!!
Hello
I've just tested new version (3.7.2) of this plugin. Buttons such add, delete don't works in FireFox (ver. 3.6.6 on Ubuntu Linux 10.04), but it works in Chrome (ver. 5.0.375.99 beta). They are not appeared in bottom of table. The same code I used with previous version of plugin (3.6.5) - it works for both browsers.
My code:
var bar = $('#form_list_bar');
jQuery("#form_list_table").jqGrid({
...
}).jqGrid('navGrid', bar, {add:false,del:true,refresh:true,edit:true,search:false});
10:43
Moderators
30/10/2007
Hello,
bar should be a string and not a jquery object.
It is recommended that the pager is passed as string in navGrid:
Try this:
var bar = '#form_list_bar';
jQuery("#form_list_table").jqGrid({
…
}).jqGrid('navGrid', bar, {add:false,del:true,refresh:true,edit:true,search:false});
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.
14:03
20/07/2010
Hello,
I have used the latest 3.7.2 version of jqGrid (all plugin options checked while downloading it) in my project. But I was facing problems with multiple search.
I get an error "t is undefined" on line 23 of jquery.jqGrid.min.js whenever I enter any search criteria & click on 'Find' in the search popup.
But I don't get this error with an earlier version 3.6 of jqgrid & the popup search works fine .
I want to use the 3.7.2 version for the client side paging & sorting functionality which actually works fine.
I am passing the data in an xml format to the grid.
Below is the code of jqgrid used in the jsp.
jQuery("#mytable").jqGrid({
url: 'usersearch.action',
datatype: 'xml',
caption: 'User List',
colNames:['User', 'Status', 'First Name', 'Last Name'],
colModel:[ {name:'username',index:'USERNAME', xmlmap:"UserName", searchoptions:{sopt:['eq']}},
{name:'status',index:'STATUS', xmlmap:"Status", stype:'select', searchoptions:{value:":All;Active:Active;Inactive:Inactive"}},
{name:'firstname',index:'FIRST_NAME', xmlmap:"FirstName", searchoptions:{sopt:['eq']}},
{name:'lastname',index:'LAST_NAME', xmlmap:"LastName", searchoptions:{sopt:['eq']}}
],
pager : "#pager",
sortname: 'UserName',
mtype: 'GET',
rowList:[5,10,20],
rowNum:10,
rowTotal: 2000,
loadonce:true,
rownumbers: true,
height: 260,
scrollOffset:0,
gridview: true,
autowidth: true,
viewrecords: true,
xmlReader : {
root: "Users",
row: "User",
repeatitems: false,
id: "ID",
page:"Users>currentpage",
total:"Users>totalpages",
records:"Users>totalrecords"
}
});
jQuery("#mytable").jqGrid('navGrid','#pager',
{ edit:false,add:false,del:false,search:true,refresh:true
},
{}, // edit options
{}, // add options
{}, //del options
{multipleSearch:true} // search options
);
<table border="0" cellpadding="0" cellspacing="0" id="mytable"></table>
<div id="pager" class="scroll"></div>
Below is some sample xml data passed to the jqgrid
<?xml version="1.0" encoding="UTF-8"?>
<Users>
<currentpage>1</currentpage>
<totalpages>1</totalpages>
<totalrecords>2</totalrecords>
<User ID="gv"> <UserName>Operator</UserName> <Status>Disabled</Status> <LastName>V</LastName> <FirstName>Geetha</FirstName></User>
<User ID="nk"> <UserName>Administrator</UserName> <Status>Enabled</Status> <LastName>Kumar</LastName> <FirstName>Nitesh</FirstName></User>
</Users>
Can you please help me to resolve this error so that the search works properly?
Regards,
Abhijit
18:20
20/07/2010
Hello,
I've used jqGrid for long time now, without any kind of problem.
Today I've tried to implement it in ASP.NET MVC 2 project and things didn't work as expected.
After a little struggle I've realized that now controllers do not accept GET calls when returning JSON data.
It is for security reasons.
If I force my controller to support GET - forcing the JSON response like this:
return(Json(value, JsonRequestBehavior.AllowGet))
... and specifying [AcceptVerbs( HttpVerbs.Get )] on the method everything works fine and my jqGrid shows the results.
I've tried to change the verb of the jqGrid myType: 'POST' but the grid stops working.
I've done a little bit of debugging and tracing and it seems that jqGrid never POSTs the request.
My controller always receives a GET.
Is there anybody who can help me, please.
Thanks Alberto
12:17
Moderators
30/10/2007
Hello
@Abhijit
I see here a lot of potencial conflicts and some things that should be corrected in jqGrid.
1. If we do local store we store the data locally from the request using only the names from colModel.
2. The search filter from other side uses index from colModel to perform serach.
Currently in order to work this the names and indexes should have equal names.
If you do not need indexes you just can omit them and your serch will be ok.
I will see how to correct this when we are in serch mode and datatype is local
@Alberto
The option in grid is not myType, but mtype
See here
http://www.trirand.com/jqgridw.....ki:options
and serch for mtype
Regards
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.
18:11
20/07/2010
Thanks Tony for your prompt response.
I tried both the solutions suggested by you.
I removed the indexes & the search worked fine.
I also tried with names and indexes having equal names. This too worked perfect.
I appreciate your help to fix this issue. Keep the good work going
Thanks & Regards,
Abhijit
21:13
29/07/2010
While using loadonce: true, why my first column should say sorttype:'int' ? my datatype into database already is set to integer. I tried without writing sorttype: 'int' in colModel. For first time grid loads fine, but when I try to do paging, it gives me error on line 19 (jquery.jqgrid.min.js) "J.toUpperCase is not a function".
22:54
Moderators
30/10/2007
Hello,
Thanks. This is fixed in 3.8
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.
Most Users Ever Online: 715
Currently Online:
60 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66