Forum



05:22

08/01/2011

Hi
I am unable to figure out how to remove the "|" character that has been automatically placed between the standard buttons and my custom navigator buttons.
Any help would be appreciated. Code below.
Thanks,
Ed
====
jQuery("#sf_pageturns").navGrid('#pager',{edit:true,add:true,del:false,search:false,refresh:false})
.navButtonAdd('#pager',{caption:"", buttonicon: "ui-icon-trash", title: "Delete selected row", onClickButton: function(){
var rowcount = $('#sf_pageturns').jqGrid('getGridParam','reccount') ; // function to count rows
if(rowcount>1)
{
var gr = jQuery("#sf_pageturns").jqGrid('getGridParam','selrow');
if( gr != null ) jQuery("#sf_pageturns").jqGrid('delGridRow',gr,{reloadAfterSubmit:false});
else alert("You must select a row before pressing this button");
}
else
{
alert("You need to have at least one row, so this row may be edited but not deleted.");
}
},
})
22:41

08/01/2011

As a workaround, I've added my own custom add and edit buttons, and set all of the default button visibilities to false. With that, the vertical separator has also disappeared.
Now I'm trying to figure out how to apply the jqmodal css to the alerts from my custom buttons, so my new alerts look like those provided with the standard buttons. Anyone know how to do this?
22:58

10/08/2009

Hello edisonia,
removing separator from the navigator seems me very easy. Let us you have the pager with id="mypager". The separator will be added to the left part of the pager which has id="mypager_left" (the id of the pager + "_left"). The separator is the <td> element having <span class="ui-separator" /> as the child. All this you can see with Internet Explorer or Google Chrome Developer Tool or with respect of Firebug. So to remove the separator you can include the following line
Best regards
Oleg
Most Users Ever Online: 715
Currently Online:
46 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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66