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
jquery beginner syntax question
13/10/2010
19:47
Avatar
alohaaaron
Member
Members
Forum Posts: 11
Member Since:
13/10/2010
sp_UserOfflineSmall Offline

Hi, in the code below what does this line do? 

jQuery("#rowed3″).jqGrid('navGrid',"#prowed3″,{edit:false,add:false,del:false});

In this code below output has already been sent to the #rowed3 table but the statement above references it again.  What is the output?  Does it add another row to the table?

Here is the example link. http://trirand.com/blog/jqgrid.....grid.html#

<script>

var lastsel;
jQuery("#rowed3″).jqGrid({
   url:'server.php?q=2',
datatype: "json",
   colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
   colModel:[
   {name:'id',index:'id', width:55},
   {name:'invdate',index:'invdate', width:90, editable:true},
   {name:'name',index:'name', width:100,editable:true},
   {name:'amount',index:'amount', width:80, align:"right",editable:true},
   {name:'tax',index:'tax', width:80, align:"right",editable:true},
   {name:'total',index:'total', width:80,align:"right",editable:true},
   {name:'note',index:'note', width:150, sortable:false,editable:true}
   ],
   rowNum:10,
   rowList:[10,20,30],
   pager: '#prowed3',
   sortname: 'id',
    viewrecords: true,
    sortorder: "desc",
onSelectRow: function(id){
if(id && id!==lastsel){
jQuery('#rowed3').jqGrid('restoreRow',lastsel);
jQuery('#rowed3').jqGrid('editRow',id,true);
lastsel=id;
}
},
editurl: "server.php",
caption: "Using events example"
});
jQuery("#rowed3″).jqGrid('navGrid',"#prowed3″,{edit:false,add:false,del:false});
</script>

13/10/2010
22:22
Avatar
bogoa666
Malaga (Spain)
Member
Members
Forum Posts: 21
Member Since:
23/09/2010
sp_UserOfflineSmall Offline

This line is removing the add, edit, delete buttons of the navigation grid which are by default.

#rowed3 is refering to grid name and #prowed3 to pager name

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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