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

[Solved] Grid popup customization - setting width/height and resizing

8 Answers 200 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Victor
Top achievements
Rank 1
Victor asked on 22 Aug 2011, 10:00 AM
Hi!

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

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Aug 2011, 06:37 AM
Hello Victor,

 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 >>

0
Victor
Top achievements
Rank 1
answered on 23 Aug 2011, 11:50 AM
Hi,

This was tested client-side. The resize issue should be generic though, right (when using javascript of course)

/Victor
0
Accepted
Atanas Korchev
Telerik team
answered on 23 Aug 2011, 01:53 PM
Hi 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.

All the best,
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 >>

0
Victor
Top achievements
Rank 1
answered on 23 Aug 2011, 02:26 PM
Hi again and thanks for that. Just to be clear, setting the window to resizable still targets the wrong div, right (the content only, not the window itself)?

/Victor
0
Atanas Korchev
Telerik team
answered on 23 Aug 2011, 02:32 PM
Hi 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 >>

0
Victor
Top achievements
Rank 1
answered on 23 Aug 2011, 03:03 PM
Hi again!

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
0
Accepted
Alex Gyoshev
Telerik team
answered on 24 Aug 2011, 12:54 PM
Hello 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 >>

0
Victor
Top achievements
Rank 1
answered on 24 Aug 2011, 02:22 PM
Perfect, thanks again!

/Victor
Tags
Grid
Asked by
Victor
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Victor
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or