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
Help returning data to grid...
24/01/2011
17:15
Avatar
johnnytuna
Member
Members
Forum Posts: 3
Member Since:
24/01/2011
sp_UserOfflineSmall Offline

I am an inexperienced jQuery/jqGrid user, I cannot get my grid to display and have no idea where to look to debug.  Any insight would be greatly appreciated...

...

<DIV class="form-details">
<script>
         jQuery(document).ready(function(){
          jQuery("#list").jqGrid({
            url:'dml_web_security_profile.getprofiles',
            datatype: "xml",
            mtype: 'GET',
            colNames:['Profile ID','Desc','Emp ID','Created','Updated'],
            colModel :[
              {name:'profile', key:'true', index:'profile', width:100, align:'left', sorttype:'text'},
              {name:'desc', index:'desc', width:200, align:'left', sorttype:'text'},
              {name:'empid', index:'empid', width:100, align:'left', sorttype:'text'},
              {name:'created', index:'created', width:100, sorttype:'date', datefmt:'m-d-Y'},
              {name:'updated', index:'updated', width:100, sorttype:'date', datefmt:'m-d-Y'} ],
            pager: '#pager',
            rowNum:10,
            rowList:[10,20,30],
            viewrecords: true,
            multiselect: false,
            sortname: 'profile',
            caption: 'Security Profiles',
            xmlReader: {
                  root:"profile",
                  row:"row",
                  page:"profiles>page",
                  total:"profiles>total",
                  records:"profiles>records",
                  repeatitems:true,
                  cell:"cell"
            }
          });
         
          jQuery("#list").jqGrid('navGrid',"#pager",{edit:true,add:true,del:true});
          jQuery("#list").setGridParam({rowNum:10}).trigger("reloadGrid");
        });
        </script>
<table id="list" width="100%"></table>
<div id="pager"></div>
</DIV>

...

generated xml:

 <header>Content-type:text/xml;charset=utf-8</header><profiles><page>1</page><total>1</total><records>5</records><profile>
<row><cell>NOACCESS</cell><cell>No Access to any screens</cell><cell></cell><cell>12-13-2010</cell><cell></cell></row>
<row><cell>ONESCRIPT</cell><cell>One Step Script</cell><cell></cell><cell>12-15-2010</cell><cell></cell></row>
<row><cell>STEPLOGIC</cell><cell>Test for StepLogic</cell><cell></cell><cell>12-09-2010</cell><cell></cell></row>
<row><cell>TEST2</cell><cell>Testing</cell><cell>JMILLER</cell><cell>01-03-2011</cell><cell>01-03-2011</cell></row>
<row><cell>TEST3</cell><cell>testing add another row with a longer description to see how the wrap functional</cell><cell>JMILLER</cell><cell>01-11-2011</cell><cell>01-11-2011</cell></row>
</profile></profiles>

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
94 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