Enable/Disable Export buttons
Enable/Disable Export buttons
rajarajananis
Posts: 29Questions: 0Answers: 0
Hi all,
Can you tell me how to enable/disable export buttons ? because according to my requirements , all the users should not be allowed for export results into XL . Instead only admin users can be allowed for export . so can you tell me how to achieve that?
!!!!!!!!!PLEASE HELP ME!!!
Raja.S
Bangalore
Can you tell me how to enable/disable export buttons ? because according to my requirements , all the users should not be allowed for export results into XL . Instead only admin users can be allowed for export . so can you tell me how to achieve that?
!!!!!!!!!PLEASE HELP ME!!!
Raja.S
Bangalore
This discussion has been closed.
Replies
I am working on asp.net application. So obviously, I use session values at Page_Load.. so here is my sample C# code
If ( session["PermissonCode"].ToString() =="XXX" )
ExportButton.Enabled=false
I am trying to achieve the above scenario with Tabletools in clientside so, I can store the permission value in hidden field. !!!!please help me!!!! Thanks again,
Allan
but according to my requirements in case of non admin users, they can still view the DataTable , but they should not export it. Please give some help..
Regards
Raja.S
Allan
If you don't mind can you provide some code snippets that dealing with conditionally enable TableTools ? or any links?
Thanks a lot..
Any updates please...
if ( admin ) {
new TableTools( oTable );
}
[/code]
You just need to get the admin variable from your server process.
Allan
Thank you all