RadWindow Position Error

3 posts, 0 answers
  1. Samir
    Samir avatar
    5 posts
    Member since:
    Jan 2016

    Posted 11 Jan Link to this post

    Hi,

     I m Using radwindowsmanager for displaying an edit window for Items in a radgrid 

    when displayng it for the top items in the grid it's displayed very well when the items list in the grid exceeds the page boundaries and needs to scroll 

    the edit window is displayed in the bottom of the page and the form for edit is not fully displayed although i force it to be maximized in show 

    I need to display it from position 0 of the explorer 

     

    thenks

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 11 Jan Link to this post

    Hello Samir,

    Generally, a RadWindow opens centered on the viewport. If this does not happen, then there is something else that affects the page scrolling (e.g., anchors with href="#", an AJAX request that changes the page height, etc.).

    Nevertheless, you can use the RadWindow API (http://docs.telerik.com/devtools/aspnet-ajax/controls/window/client-side-programming/radwindow-object) to position it after opening. Here is a basic example:

    var wnd = radopen(URL, wndName);
    wnd.moveTo(0, 0);

    OR

    var wnd = radopen(URL, wndName);
    setTimeout(function () {
        wnd.center();
    }, 100);//adjust timeout so this code runs after the other operation has changed the page scroll


    Regards,

    Marin Bratanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Samir
    Samir avatar
    5 posts
    Member since:
    Jan 2016

    Posted 11 Jan Link to this post

    Hi Marin,

    thanks alot for your reply it was it ,a problem of href="#"

     

     

     

     

Back to Top