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.
Is this known functionality?
Regards
Mark.
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
0
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.
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
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:
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.
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
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.
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
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.
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
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.
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.