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
Pagination of local data using addRowData
26/06/2010
04:26
Avatar
Sanek
Member
Members
Forum Posts: 8
Member Since:
26/06/2010
sp_UserOfflineSmall Offline

Hi

I am using 3.7.1 and code below to generate my table. However, upon initial load, pagination says 1 of 0. Am I missing something else?

 <script type="text/javascript">

        jQuery().ready(function() {

             jQuery("#list").jqGrid({
                   datatype: 'local',
                   colNames:['Municipality','Block','Lot', 'Qualifier'],
                   colModel:[                           
                           {name:'municipality', align:'center',width:45, editable:false, sortable:false},
                           {name:'block', align:'center',width:20, editable:false, sortable:true},
                           {name:'lot', width:20, editable:false, sortable:true, align:'center'},
                           {name:'qualifier', width:20, editable:false, sortable:true, align:'center'}                           
                           ],
                   sortorder: "desc", //initial sort order
                   viewrecords: true,
                   caption: 'Search Results',
                   hidegrid: false,
                   autowidth: true,
                   width: 600,
                   rowNum: 10,
                   rowList: [10,20,30],
                   rowTotal: 2000,
                   loadonce:true,
                   pager: 'pager',
                   gridview: true,
                   loadError : function(xhr,st,err) {jQuery("#rsperror").html("Type: "+st+";Response: "+ xhr.status + " "+xhr.statusText);}
              });

             <c:forEach var="resultItem" items="${searhResults}" varStatus="i">
                     jQuery("#list").addRowData(${i.index+1}, {
                                      municipality:"${resultItem.municipality.name}",
                                      block:"${resultItem.block}",
                                      lot:"${resultItem.lot}",
                                      qualifier:"${resultItem.qualifier}"
                    });
             </c:forEach>
        });
        </script>

29/06/2010
02:32
Avatar
Sanek
Member
Members
Forum Posts: 8
Member Since:
26/06/2010
sp_UserOfflineSmall Offline

Hi Tony

Any thoughts on this one?

18/07/2010
09:15
Avatar
cynthu
Member
Members
Forum Posts: 4
Member Since:
18/07/2010
sp_UserOfflineSmall Offline

Hi Tony,

I have the same problem. Could you please help us out?

Thanks in advance,

Cynthia.

18/07/2010
10:42
Avatar
cynthu
Member
Members
Forum Posts: 4
Member Since:
18/07/2010
sp_UserOfflineSmall Offline

Adding the following fixes the issue:

$(".ui-pg-selbox").change();

Thanks,

Cynthia.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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