After trying out the options to turn resizing of the popup on and also to set width/height in code I have to report that it does not seem to work very well. Setting height and width does not seem to change anything and setting it resizable makes the .t-window-content resizable rather than .t-window
/Victor
8 Answers, 1 is accepted
Are you using server or ajax editing? Currently not all popup window properties are propagated to the client-side.
Regards,Atanas Korchev
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
This was tested client-side. The resize issue should be generic though, right (when using javascript of course)
/Victor
I prepared a sample project which shows how to make the window resizable and set its width and height. The trick is that you need to use the OnEdit event:
<script>
function onEdit(e) {
$(e.form).closest(".t-window-content").width(500).height(500);
}
</script>
Also the width and height should be set on the window content element.
Atanas Korchev
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
/Victor
I am not sure what you mean by this. In the attached project the window should resize normally. Did you try it?
Greetings,Atanas Korchev
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
Finally I see the full picture and the issues, which of course were on our end. We had in our general css files set
.t-window:{500px;}
to always increase the min-width. This made for a very strange behaviour when forcing the size of the content, which was not present in the demo you sent (I didnt realize at first that the box was indeed resizable, just looked at the onEdit code).
With our css width targeting .t-window-content, everything works as it should. Thanks again!
One last question, are there any plans to include a visual clue to differentiate windows that are resizable and not?
/Victor
Regarding the visual clue for resizability: thank you for reminding us of that, it seems that it has been overlooked. We just added the functionality, which you can enjoy in the attached build.
Regards,
Alex Gyoshev
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>
/Victor