Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(container).jqGrid(
  2. {
  3.     datatype: function(postdata)
  4.         {
  5.         $.ajax({
  6.                     url: url
  7.             , data: postData
  8.             , dataType:'xml'
  9.             , mtype: 'GET'
  10.             , complete: function(xmldata,stat)
  11.                     {
  12.                         if(stat == 'success')
  13.                         {
  14.                     var thegrid = $(container)[0];
  15.                     var data = xmldata.responseXML;
  16.                     thegrid.addXmlData(data);
  17.                 }
  18.                 });
  19.         }
  20.     , repeatitems: true
  21.     , hoverrows: true
  22.     , mtype: 'GET'
  23.     , colNames:eval("(" + colNames + ")")
  24.     , colModel:eval("(" + colModel + ")")
  25.     , pager: pager
  26.     , rowNum: rowNum
  27.     , rowList: [24,50,100]
  28.     , sortname: sortName
  29.     , sortorder: sortOrder
  30.     , viewrecords: true
  31.     , gridview: true
  32.     , loadonce: false
  33.     , autoheight: false
  34.     , height: height
  35.     , width: width
  36.     , footerrow: false
  37.     , userDataOnFooter: false
  38.     , scrollPaging: true
  39.     , scroll: 1
  40.     , dataTheme: 'b'
  41.     , refreshContent: true
  42.     , scrollOffset:0
  43.     , search: false
  44.     , iScroll:
  45.     {
  46.         hScroll: false
  47.                 , hideScrollbar: true
  48.                 , vScrollbar: false
  49.                 , bounce: true
  50.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement