Hi I am using jqGrid for showing the grid values dynamically but i need to hide edit add option showing only based on logged in user role but in navGrid
I am not able to place the if and else condition please help me my code is:
.navGrid('#pagernav',
{
edit: true,
add: true,
del: false,
search: true,
refresh: true,
closeAfterSearch: true
},
In the above code edit and add options needs to display only based on logged in user example logged in user is admin this options need to display otherwise it has to disable