radwindow

How to close the radwindow on serverside and refresh the parent page

泪湿孤枕 提交于 2019-12-29 06:23:51
问题 I want to close the RadWindow and refresh the parent : how to do this server side : I have the following case: Two pages say : parent.aspx : <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableViewState ="false"> </telerik:RadWindowManager> and parent.cs protected void OpenNewWindow(string url, int width, int height,int mode) { RadWindow newWindow = new RadWindow(); newWindow.NavigateUrl = url; newWindow.VisibleOnPageLoad = true; newWindow.KeepInScreenBounds = true; if

Closing RadWindow by invoking javascript from server

匆匆过客 提交于 2019-12-12 15:05:35
问题 I have a Control that looks like this: <telerik:RadCodeBlock runat="server"> <script type="text/javascript"> function refresh() { window.$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindRecommendations"); } </script> </telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="NameOfGrid" /> <

How to stop Telerik RadWindow from always reloading on the next PostBack

空扰寡人 提交于 2019-12-10 18:54:57
问题 I am invoking a RadWindow as a dialog in my web page. I am invoking from code-behind since I need to pass some parameters: radWindow1.NavigateUrl = url + "?England,Germany,France"; radWindow1.VisibleOnPageLoad = true; This works great, however it keeps reloading on each and every postback. How can I stop the RadWindow from reloading? I don't mind code-behind or JavaScript to achieve this. 回答1: You can use the IsPostBack property of the page to see if this is the first time it is loading or a

Dynamically open a radwindow defined in Javascript

心不动则不痛 提交于 2019-12-02 02:51:11
问题 Objective:- From the server-side, I need to open a radwindow(defined in JavaScript of the aspx page) automatically on an IF condition. Code used:- In aspx page, I defined the radwindow as:- <telerik:RadWindowManager Skin="WBDA" ID="AssetPreviewManager" Modal="true" EnableEmbeddedSkins="false" runat="server" DestroyOnClose="true" Behavior="Close" style="z-index:8000"> <Windows> <telerik:RadWindow ID="DisclaimerAlertWindow" runat="server" Width="720px" Height="220px" Modal="true"

IF Statement Always True

元气小坏坏 提交于 2019-11-26 21:02:33
I have a radwindow that I use to show error messages to users in an application. My goal is as below; If the message is not a warning/error I want user to be redirected when they click "OK" on the popped up radwindow. To accomplish this, I'm setting HiddenField value to "1" when the operation is successful and to "0" when the operation fails. My problem is that when I check the HiddenField value on the client-side the IF statement always returns true, and the page is redirected. Here are the cases when I set the hiddenfield value and set the radwindow message; if(x) { hfPasswordWarning.Value =

IF Statement Always True

自作多情 提交于 2019-11-26 06:08:47
问题 I have a radwindow that I use to show error messages to users in an application. My goal is as below; If the message is not a warning/error I want user to be redirected when they click \"OK\" on the popped up radwindow. To accomplish this, I\'m setting HiddenField value to \"1\" when the operation is successful and to \"0\" when the operation fails. My problem is that when I check the HiddenField value on the client-side the IF statement always returns true, and the page is redirected. Here