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
grid not repaint itself in pagination ... some times
20/01/2009
04:32
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

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.

20/01/2009
09:24
Avatar
giluka
rome
Member
Members
Forum Posts: 28
Member Since:
09/01/2009
sp_UserOfflineSmall Offline

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 "&lt;"
">"     replaced with "&gt;"
"\\"\\""  replaced with "&quot;"

There's more special characters to convert ??

Thanks to all !!

22/01/2009
09:21
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information