I am use Jqgrid.
In which i use inine nav for add new rows.
My Inline nav code
jQuery("#list").jqGrid('inlineNav','#Pager',
{
editParams : {
extraparam : {
extraParamId : function() {
return allExtraId;
}
}
}
});
So my Question is that when i am use inlineNav so this code navGrid is require or not
jQuery("#list").jqGrid('navGrid','#Pager', {
edit : false,
add : false
});
Please Reply….
Thanks in Advance..
The call of
navGridis really required before calling ofinlineNav. The reason is that the pager creates per default only three parts: left, center and right. The parts as as<td>elements of the row of table in the pager. For example if you don’t callnavGridyou will have empty left part of the pager like below:If you call
navGridfor example in the formthe left part of the pager will be changed to
The current implementation of
inlineNavjust uses navButtonAdd to add additional buttons to the navigator which must be created before. How you will see from the line of code the methodnavButtonAdduses$(".navtable", "#pager")to find the navigator table inside of the pager. Only if the navigator will be found the methodnavButtonAddadd additional buttons inside of it.So you really need first create the navigator bar in the pager before you call
inlineNav.