Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(container).jqGrid(
- {
- datatype: function(postdata)
- {
- $.ajax({
- url: url
- , data: postData
- , dataType:'xml'
- , mtype: 'GET'
- , complete: function(xmldata,stat)
- {
- if(stat == 'success')
- {
- var thegrid = $(container)[0];
- var data = xmldata.responseXML;
- thegrid.addXmlData(data);
- }
- });
- }
- , repeatitems: true
- , hoverrows: true
- , mtype: 'GET'
- , colNames:eval("(" + colNames + ")")
- , colModel:eval("(" + colModel + ")")
- , pager: pager
- , rowNum: rowNum
- , rowList: [24,50,100]
- , sortname: sortName
- , sortorder: sortOrder
- , viewrecords: true
- , gridview: true
- , loadonce: false
- , autoheight: false
- , height: height
- , width: width
- , footerrow: false
- , userDataOnFooter: false
- , scrollPaging: true
- , scroll: 1
- , dataTheme: 'b'
- , refreshContent: true
- , scrollOffset:0
- , search: false
- , iScroll:
- {
- hScroll: false
- , hideScrollbar: true
- , vScrollbar: false
- , bounce: true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement