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

Make textbox dynamic depending on neighbouring textbox

3 Answers 262 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ivo
Top achievements
Rank 1
Ivo asked on 21 Nov 2017, 08:41 AM
I would like to make one textbox to change its size when the neighbouring textbox changes its size. I have a situation where one textbox grows vertically in size because of its input, and the textbox next to it (which represents a label) stays the same.

3 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 23 Nov 2017, 03:05 PM
Hi Ivo,

I can recommend you to use a Table item where the two field can be placed in two neighbouring columns. When one cell grows vertically the whole row will grow. 

Another solution would be to reset the bottom borders of the textBoxes and set the border of the parent section or parent container item instead.

I hope the provided information would help you.


Regards,
Katia
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Ivo
Top achievements
Rank 1
answered on 26 Nov 2017, 04:18 PM

Hi Katia,

thank you for the answers, gives me a better idea on solution. Still have few more questions, for the first solution you recommended, making a table items, it means I would have to make a table and in that table my textboxes would represent table items? And for the second solution, which I find more appealing, how exactly would I reset borders of one textbox regarding to a border of a neighbouring textbox?

Once more, thanks for the answer.

0
Katia
Telerik team
answered on 29 Nov 2017, 04:08 PM
Hi Ivo,

First solution: a Table item is a single item and you can display data fields in the cells of this item.

Second solution: to reset the border of the TextBox set its Style.BorderStyle property to None. You can use borders of the container section or container item instead.

Regards,
Katia
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ivo
Top achievements
Rank 1
Answers by
Katia
Telerik team
Ivo
Top achievements
Rank 1
Share this question
or