I made two small modifications to the default File Explorer Demo to test a problem I am having, and I was able to repeat the problem on it.
The issue is this:
I added a button to a page and a PreRender event to the file Explorer control on a page with the intention of updating the button text after the prerender event occurs on the file explorer. For some reason, if I upload a new file, the button text is updated as it should be, if I delete an existing file, the pre render event occurs, and the code to change the button text runs, but the text on the button is never updated. Why would I get this result?
/radcontrols_aspnetajax/fileexplorer/examples/default/defaultcs.aspx
take your existing file explorer default demo, and add a button above the text: "Browse to an image and double click to preview."
<asp:Button ID="btnSubmit" runat="server" Text="Submit" /> |
then add a PreRender to FileExplorer1:
protected void FileExplorer1_PreRender(object sender, EventArgs e) |
{ |
btnSubmit.Text += " | 1"; |
} |
Is this a bug?
If not, how do I change the other controls on a page after an FileExplorer event?