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

Textbox Enlarge its Parent Window(RadWindow)

6 Answers 172 Views
Window
This is a migrated thread and some comments may be shown as answers.
yue ke
Top achievements
Rank 1
yue ke asked on 15 Apr 2010, 10:21 AM
        I meet an  annoyance  thing. for example ,I want to achieve this effect. The contents of the Grid  change  with the change of the RadWindow,for example ,when i  Widen the RadWindow ,the textbox of the Grid will  be pulled large,and the other Controls(for example  Button) will be slide and not change  shape .but ,there is a problem,when the content of centain row in the textbox is so much ,it will enlarge its Parent window(RadWindow) automaticly ,when the content of the centain line is less, the RadWindow will  smaller automaticly,I want RadWindow to change ,it can be changed, Instead of automaticly changing with the content of centain line in  the textbox , hope someone help me solve the problem ,thank you .

6 Answers, 1 is accepted

Sort by
0
Accepted
Pana
Telerik team
answered on 17 Apr 2010, 10:54 AM
Hi Yue Ke,

I have no idea what are you talking about but I have the feeling that setting Width and Height on the RadWindow before you Show() it will do the work. The window will be resizable meaning the user will be able to grab the border and drag it around while changing the content inside will not resize the window since it has fixed Width and Height.

Check the attached project. If you type in the Auto-Resizable window before you manually resize it (by dragging its border) it will get longer as you type. While the User-Only-Resizable will not.

If this is not the desired behavior please do not hesitate to ask us again.

All the best,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
yue ke
Top achievements
Rank 1
answered on 18 Apr 2010, 04:44 AM
thank you .
But this is not the answer that I want .the folllowing  Attaches  additional project screenshots.The datas in the textbox  are  read from the database ,   the width and the height of  the textbox  are set to automatically , when the content of the certain row  in the textbox are too longer,it will enlarge the RadWindow. Please compare these few screenshots carefully ,Maybe  you will know what I say .
I am looking forward to your good news.
0
Pana
Telerik team
answered on 21 Apr 2010, 10:44 AM
Hello yue ke,

Can you tell me:

1) How does it work now?
2) How do you want it to work?

3) At the moment does the window changes its size when the database text is large/small?
4) Do you want the window to change its size when the database text is large/small?

5) Do you want the user to be able to resize the window by dragging its border?

Please replay me soon because the problem seems to be easily solved once we understand what is the desired effect.

Regards,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
yue ke
Top achievements
Rank 1
answered on 23 Apr 2010, 02:46 PM
Hello.
thank you  being attention to my question.
1)  as the  three screenshots  of the last time , when I click on the Navigation key( for example First,previous,next,last),the record of the database is too much , the textbox  will enlarge the RadWindow; or else, the RadWindow will change small .
2) I want it does not change with the content of the  textbox ,that is to say ,when I drag its border , the radwindow can change size;or else ,it can not change size Automaticly.
3)the data of the database ,some is small,some is large .
4)the data of the database ,some is small,some is large .
5)Yes,I hope that.

these are  my answers .
thank you .
0
Pana
Telerik team
answered on 23 Apr 2010, 02:50 PM
Hi yue ke,

Set the Width and Height properties on the RadWindow. This will prevent it from changing its size when you click "Previous" and "Next" and the data record updates with small or large text. The user will be able to resize the RadWindow.

All the best,
Panayot
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
yue ke
Top achievements
Rank 1
answered on 23 Apr 2010, 03:11 PM
Hello.
thank you .
when I have free time , I will try.
Tags
Window
Asked by
yue ke
Top achievements
Rank 1
Answers by
Pana
Telerik team
yue ke
Top achievements
Rank 1
Share this question
or