This is a migrated thread and some comments may be shown as answers.

set_height not working in restrictionzone

7 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 01 Oct 2009, 10:00 AM
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.

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 01 Oct 2009, 10:21 AM
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.
0
Svetlina Anati
Telerik team
answered on 13 Oct 2009, 07:55 AM
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.
0
msigman
Top achievements
Rank 2
answered on 14 Oct 2009, 12:46 AM
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.
0
Svetlina Anati
Telerik team
answered on 19 Oct 2009, 08:30 AM
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.
0
msigman
Top achievements
Rank 2
answered on 19 Oct 2009, 02:27 PM
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.
0
Svetlina Anati
Telerik team
answered on 22 Oct 2009, 11:34 AM
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.
0
Svetlina Anati
Telerik team
answered on 23 Oct 2009, 07:09 AM
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.
Tags
Window
Asked by
mark
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Svetlina Anati
Telerik team
msigman
Top achievements
Rank 2
Share this question
or