Forum
Hi all,
my grid with pagination enabled and xml data type does not repaint itself after a request in page changing ... sometimes...
Normally it change from one page to another ... but sometimes not, also if xml flow sended to grid is changed an correct ...
My code:
$("#xml_grid").jqGrid({
url:'data.do?methodName=doLoad&datatype=xml',
datatype: 'xml',
xmlReader: {
root:"rows",
row:"item",
page:"items>current_page",
total:"items>total_pages",
records:"items>total_items",
repeatitems:false,
id:"id" },
mtype: 'POST',
colNames:['id', 'code', 'firstName', 'login', 'email', 'created'],
colModel :[
{name:'id', index:'id', width:30, sortable:false, resizable:false, key:true, editable:false, search:false},
{name:'codeUtente', index:'codeUtente', width:50, sortable:false, resizable:false, search:false},
{name:'firstName', index:'firstName', width:230, sortable:true, editable:true, resizable:false, search:false,
editrules: {edithidden:false, required:true, number:false}},
{name:'loginName', index:'loginName', width:140, sortable:true, editable:true, resizable:false, search:true, editoptions:{size:25}},
{name:'email', index:'email', width:200, align:'left', sortable:true, editable:true, resizable:false, search:false},
{name:'created', index:'created', width:150, sortable:true, datefmt:true, resizable:false, search:true, checkInput:true}
],
pager: $('#xml_pager'),
rowNum:8,
rowList:[8,15,20,50],
sortname: 'firstName',
sortorder: "asc",
viewrecords: true,
imgpath: '../css/jqgrid_themes/basic/images',
multiselect: true,
caption: 'XML Grid',
altRows: true,
loadtext: 'caricamento in corso ...',
recordtext: 'elementi',
toolbar:[true,"top"],
shrinkToFit:true,
editurl:"data.do?methodName=doEdit"
}).navGrid('#xml_pager',
{edit:true,add:true,del:true},
{}, // edit parameters
{}, // add parameters
{reloadAfterSubmit:false} //delete parameters
);
I've detected this problem with FF & IE7.
I use jgrid v. 3.3.2
Thanks.
Hi all,
i've resolved by myself... the problem was that in xml flow there were some bad characters like '&' ...
I've replaced them with correspondence in html code (i.e. &)
Conversion is needed also for:
"<" replaced with "<"
">" replaced with ">"
"\\"\\"" replaced with """
There's more special characters to convert ??
Thanks to all !!
09:21
Moderators
30/10/2007
Hello,
Check the new 3.4 - this problem is avoided.
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:
65 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