How to stop Telerik RadWindow from overloading on the next PostBack

I invoke RadWindow as a dialog on my web page. I refer to the code because I need to pass some parameters:

radWindow1.NavigateUrl = url + "? England, Germany, France";

radWindow1.VisibleOnPageLoad = true;

This works fine, however, it saves a reboot on every postback.

How can I stop restarting RadWindow? I am not against code or JavaScript for this.

+3
source share
2 answers

You can use the IsPostBack property on the page to verify that this is the first time you load or postback, and set the VisibleOnPageLoad property accordingly:

    radWindow1.VisibleOnPageLoad = !Page.IsPostBack;

, , IsPostBack - .

+3

, EnableViewState false. RadWindow ASP.NET AJAX Q32009, RadWindow RadWindowManager, ViewState, .

+2

Source: https://habr.com/ru/post/1599242/


All Articles