set_height not working in restrictionzone

8 posts, 0 answers
  1. mark
    mark avatar
    16 posts
    Member since:
    Jul 2012

    Posted 01 Oct 2009 Link to this post

    Hello all,

    I am finding that if I use the ownd.set_height command for a window that is in a restrictionzone that the height request is ignored.

     function OnClientPageLoad(oWnd)  
        {  
            oWnd.set_width(550);  
            oWnd.set_height(600);  
            oWnd.set_status("");  
        } 

    Is this known functionality?

    Regards
    Mark.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Oct 2009 Link to this post

    Hello Mark,

    Thank you for bringing this problem to our attention - I logged it as a bug in our database and we will do our best to fix it for the next release.

    Your points have been updated.


    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 13 Oct 2009 Link to this post

    Hello mark,

    We examined teh described setup further and the current behavior is the one we think is correct. What causes the problem with resizing the RadWindow in this case is that in order to fit in the restriction zone, you should first move it to coordinates which will allow it to resize, e.g as shown below:

    function OnClientPageLoad(oWnd)   
           {   
               oWnd.set_width(550); 
               oWnd.moveTo(0, 0);  
               oWnd.set_height(600); 
               oWnd.set_status("");   
           }

    In this case if 600 is smaller than teh size of the restriction zone, the window will resize as you expect.

    For the time being we believe that since you set the height manually it is not expected that the RadWindow should automatically reposition but you should reposition it yourself. If we get more customer requests for changing this behavior we can consider changing it.

    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 13 Oct 2009 Link to this post

    It seems like this issue also manifests itself when using the Tile() method, the height of the windows is not altered.  To have the expected behavior, the developer would need to manually loop through the windows and set their height equal to the browserHeight.
  6. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 19 Oct 2009 Link to this post

    Hi Matthew,

    I am not completely sure what exactly you mean by " To have the expected behavior, the developer would need to manually loop through the windows and set their height equal to the browserHeight. " - the tile() method is expected to order the RadWindows one next to the other and this is not related to changing their size. Furthermore, this will be valid only when the  sum width of all the RadWindows is less or equal to the width of the restriction zone - otherwise nothing would happen. However, in this case, the tile functionality when in restriction zone is still not implemented but it is logged in our database. For the time being you can achieve the desired result by using the client API and changing the left coordinate.

    Greetings,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 19 Oct 2009 Link to this post

    Ah I see, I was thinking the Tile() method behaved like the MS Windows Tile Windows function, by setting width and height.  I will continue to use my trick of manually setting the heights.  I think it would be great if Tile() method could be modified to also set heights to be similar to Windows' Tile Windows function.
  8. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 Oct 2009 Link to this post

    Hello Matthew,

    I am not sure what exactly you mean and why you have to change the height - would you please provide more explanations and information about the MS Windows version which Tile functionality you want to mimic? When I Tile a few windows, they get ordered one next to another but I do not see their width/height changed. It will be best if you provide also some screenshots along with your detailed explanations.

    On a side note, since your solution works, I recoommend to stick to it until the embedded functionality is fixed in this particular case with the RestrictionZone.

    Kind regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 23 Oct 2009 Link to this post

    Hi Matthew,

    Please, accept my sincere apologies for the misunderstanding, I was able to understand what you meant. Indeed, one of the reasons the tile() functionality does not work is the size which should be set and the second one is related to the coordinates to which the RadWindow should be moved. This is logged in our TODO list for fixing and for the time being it will be best to stick to your custom solution.

    Sincerely yours,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017