Hello,
Is there a good way to hide a button on the toolbar initially and show it through javascript? I tried the Visible property but then the button control isn't put on the page so the only way to show it would be through a postback.
I currently have it working by running javascript in the body onLoad but that causes the hidden buttons to show for a split second (or more on a slow machine/connection) before the javascript runs and hides them.
The scenario where I'm trying to use this is where we display data and we also have an Edit mode to update that data. We want an Edit button displayed initially and when you click edit a javascript function is called where we will switch to an edit mode with the fields and also hide the Edit button and show a Save and Cancel button on the toolbar.
Any help is appreciated.
Thanks.
Is there a good way to hide a button on the toolbar initially and show it through javascript? I tried the Visible property but then the button control isn't put on the page so the only way to show it would be through a postback.
I currently have it working by running javascript in the body onLoad but that causes the hidden buttons to show for a split second (or more on a slow machine/connection) before the javascript runs and hides them.
The scenario where I'm trying to use this is where we display data and we also have an Edit mode to update that data. We want an Edit button displayed initially and when you click edit a javascript function is called where we will switch to an edit mode with the fields and also hide the Edit button and show a Save and Cancel button on the toolbar.
Any help is appreciated.
Thanks.