RadWindow style top attribute when scrolling down

0 Answers 72 Views
ScriptManager and StyleSheetManager Window
Eugene
Top achievements
Rank 1
Eugene asked on 04 Mar 2022, 04:05 AM

Hi, I have a RadWindow which appears when the button is clicked. 

The code in aspx is:

<telerik:RadWindow ID="rwSubmitForReview" Title="Submit For Review" runat="server" Localization-PinOff="Pin off" Width="305px" Height="250px" InitialBehaviors="Pin" >

Code in aspx.cs is

string script = "function f(){$find(\"" + rwSubmitForReview.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(this, this.GetType(), "key", script, true);

When i start to scroll down in the main page, the window disappears and i notice the top attribute follows the scroll? Please refer to the red highlighted line. How can I make it stop scrolling?

The telerik version is 2022.1.119.40.

Rumen
Telerik team
commented on 07 Mar 2022, 01:51 PM

Hi Eugene,

The top attribute is updated only when the RadWindow popup is pinned - this helps the popup to stay at the same position once the scroll is changed. If you unpin it, the window will start to move with the scroll position and the top CSS setting value will remain intact. 

For your convenience, I have attached a short video that demonstrates how this works.

Can you please help me to reproduce the problem reported here - When i start to scroll down in the main page, the window disappears and i notice the top attribute follows the scroll?

Please make a quick Fiddler Jam capture and share it with us. It will provide a lot of info easily and allow us to investigate further. Keep in mind that starting from a blank page or at least navigating to your page via the address bar is crucial for capturing all requests and responses:

https://docs.telerik.com/devtools/aspnet-ajax/knowledge-base/common-capture-issues-with-fiddler-jam

Also, please share the aspx, ascx, master page files as well as their code-behind files so we can review what could lead to this issue.

  

No answers yet. Maybe you can help?

Tags
ScriptManager and StyleSheetManager Window
Asked by
Eugene
Top achievements
Rank 1
Share this question
or