Hi,
I try to fix these probleme since a time ( try to find a solution in this forum or in the documentation) but nothings works.
My scenario is the following:
I load inside a RadWindow an Aspx to upload picture. When the picture is uploaded i show a message to confirm the upload ( i play with asp panel).
When the user close de RadWindow, i take the argument from the close function and i update with ajax the picture in the ascx.
So far, so good. it's work perfect.
But if i want to upload a new picture, when i click on the link to open the RadWindow, the RadWindow don't make a reload of the aspx but i have the last state of the page ( the confirmation message)
I try to implement DestroyOnClose ( int the RadWindowManager and /or in the RadWindow) but without effect.
Here is my code:
Another problem is that i don't want to see the statubar of the RadWindow. VisibleStatusBar is on false but without effect.
Your help would be appreciate!
Thanks,
Edwin.
I try to fix these probleme since a time ( try to find a solution in this forum or in the documentation) but nothings works.
My scenario is the following:
I load inside a RadWindow an Aspx to upload picture. When the picture is uploaded i show a message to confirm the upload ( i play with asp panel).
When the user close de RadWindow, i take the argument from the close function and i update with ajax the picture in the ascx.
So far, so good. it's work perfect.
But if i want to upload a new picture, when i click on the link to open the RadWindow, the RadWindow don't make a reload of the aspx but i have the last state of the page ( the confirmation message)
I try to implement DestroyOnClose ( int the RadWindowManager and /or in the RadWindow) but without effect.
Here is my code:
function OpenUpload(_url) { |
var oWnd = radopen(_url, "RadWindow_Logo"); |
oWnd.add_close(OnClientClose); |
} |
function OnClientClose(oWnd, args) { |
var arg = oWnd.argument; |
if (arg) { |
var fileName = arg; |
var hid_input = document.getElementById('<%=hid_PictureName.ClientID %>') |
if (hid_input != null) { |
hid_input.value = fileName; |
} |
var btn = document.getElementById('<%=btn_updatePicture.ClientID %>') |
if (btn != null) { |
btn.click(); |
} |
} |
} |
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
<a href="javascript:OpenUpload('Upload.aspx?Id=<%=UserSession.GetCompanyIdFromCustomerUser()%>&UploadType=Logo')">Upload een nieuw logo</a> |
</telerik:RadCodeBlock> |
<telerik:RadWindowManager ID="RadWindowManager_logo" runat="server" Skin="Office2007"> |
<Windows> |
<telerik:RadWindow ID="RadWindow_Logo" runat="server" Height="200px" Width="300px" Left="600" |
Top="200" VisibleOnPageLoad="false" Behavior="Close" OnClientClose="OnClientClose" VisibleStatusbar="false" DestroyOnClose="true" EnableViewState="false" /> |
</Windows> |
</telerik:RadWindowManager> |
Another problem is that i don't want to see the statubar of the RadWindow. VisibleStatusBar is on false but without effect.
Your help would be appreciate!
Thanks,
Edwin.