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

Watermark shift issue

3 Answers 73 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Roy Graham
Top achievements
Rank 1
Roy Graham asked on 13 Jan 2011, 11:50 AM
Allowing the control to auto size, and using a watermark that is longer than the size of the empty control causes a slight shift in the view of the open control on second opening.
(i.e. Open control, close it, open again without changing focus.)
It appears that the watermark is re-displayed after the control is opened, and this causes the drop down part of the control to shift with the button.

Is there anything that can be done about this easily, as our watermarks are coming from data, and so we cannot know the length of them?

3 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 14 Jan 2011, 03:59 PM
Hi Roy Graham,

Defining an explicit width(250 for instance) will prevent shifting the control itself.

Kind regards,
Kaloyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Mike
Top achievements
Rank 1
answered on 26 Apr 2011, 12:09 PM
Hi,
Is there a solution for scenarios where the watermark is determined by data, where a fixed width cannot be used?
Many thanks,
Mike
0
Pana
Telerik team
answered on 29 Apr 2011, 06:37 AM
Hello Graham,

Use a MinWidth large enough to present the watermark text. Maybe we should set opacity = 0 instead of visibility = collapsed on the watermark so the control does not bounce back and forth when you focus / unfocus empty RadWatermarkTextBox. Yet the MinWidth is pretty good workaround.

Regards,
Pana
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
Tags
DateTimePicker
Asked by
Roy Graham
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Mike
Top achievements
Rank 1
Pana
Telerik team
Share this question
or