Hi -
I have a button, that when clicked... I want it to disable the menu until an action is taken, then have the menu operational (enabled) again by clicking a different button. The purpose of my actions is to not let the user navigate off the page until they have finished editing and then have saved their work.
I have been going through the postings and haven't found anything that works (I've tried many examples...Visible...EnableSelection...Enabled...etc).
My menu is located on the Master page, and my calling code is located on the SOI page.
Here is the code I have so far...
This is how I call it from my Edit button click method...
EnableNavigation(false);
Any other suggestions? Should I be going about this in a different way?
wen
I have a button, that when clicked... I want it to disable the menu until an action is taken, then have the menu operational (enabled) again by clicking a different button. The purpose of my actions is to not let the user navigate off the page until they have finished editing and then have saved their work.
I have been going through the postings and haven't found anything that works (I've tried many examples...Visible...EnableSelection...Enabled...etc).
My menu is located on the Master page, and my calling code is located on the SOI page.
Here is the code I have so far...
private void EnableNavigation(bool enabled) |
{ |
RadMenu menu = (RadMenu)(Master.FindControl("RadMenu1")); |
menu.Enabled = enabled; |
} |
This is how I call it from my Edit button click method...
EnableNavigation(false);
Any other suggestions? Should I be going about this in a different way?
wen