Unplanned
Last Updated: 26 Feb 2024 12:32 by Stenly
Created by: Stenly
Comments: 0
Category: WatermarkTextBox
Type: Feature Request
1

The RadWatermarkTextBox control updates the position of the floating label when it gets/loses focus. This moves the label to the center or to the top based on whether the control is focused or is losing the focus. This is done via a method that is currently private. 

We can expose the method so that it can be used based on the client's logic.

Currently, the method can be invoked as follows:

Type radWatermarkTextBoxType = typeof(RadWatermarkTextBox);

MethodInfo handleLabelStateChangeMethodInfo = radWatermarkTextBoxType.GetMethod("HandleLabelStateChange", BindingFlags.NonPublic | BindingFlags.Instance);

if (handleLabelStateChangeMethodInfo != null)
{
    handleLabelStateChangeMethodInfo.Invoke(this.radWatermarkTextBoxInstance, new object[1] { false });
}

Unplanned
Last Updated: 23 Nov 2023 07:10 by Piotr
Created by: Piotr
Comments: 0
Category: WatermarkTextBox
Type: Feature Request
1
Add support for RadWatermarkTextBox.
Completed
Last Updated: 27 Mar 2023 09:44 by ADMIN
Release LIB 2023.1.327 (27 Mar 2023)

When the WatermarkBehavior is set to either HideOnTextEntered or HideOnClick, moving the focus with the Tab key will not move it on the first press.

To work this around, handle the PreviewKeyDown event and manually move the focus to the next element when the Tab key is the e.Key property's value.

Completed
Last Updated: 08 Mar 2018 09:15 by ADMIN
ADMIN
Created by: Dinko | Tech Support Engineer
Comments: 1
Category: WatermarkTextBox
Type: Bug Report
0
When setting this property to CaretToEnd, a possible workaround which can be used is to subscribe to the GotFocus event of the control. In the event handler you can set the SelectionStart property to the length of the text using a Dispatcher.BeginInvoke() method.  

private void RadWatermarkTextBox_GotFocus(object sender, RoutedEventArgs e)
{
	var watermarkTextBox = sender as RadWatermarkTextBox;
	if(watermarkTextBox!= null)
	{	
		Dispatcher.BeginInvoke((Action)(() =>
		{
			watermarkTextBox.SelectionStart = watermarkTextBox.Text.Length;
		}));
	}
}
Completed
Last Updated: 16 Aug 2021 06:19 by ADMIN
Release R3 2021
Won't Fix
Last Updated: 13 May 2016 12:47 by ADMIN
ADMIN
Created by: Telerik Admin
Comments: 1
Category: WatermarkTextBox
Type: Bug Report
5
When click with mouse on the text it is selected every second time even when SelectionOnFocus is set to "SelectAll". If you click before the text it is selected every time.