Telerik Forums
UI for Universal Windows Platform Forum
3 answers
81 views

I want to add further command to the context menu that appears when right-clicking on the RadAutoCompleteBox.

When I add a context menu flyout it appears in addition to the default context menu ("Copy, Paste, …"). This is confusing for the end-user.

I found many articles handling this question. In many cases it was suggested to influence the visual structure. But this seems not to be possible with Telerik UI for UWP.

Is there any way to influence, or to abandon the default menu? It would also be an option for me just to show my context menu.

Thomas
Top achievements
Rank 1
 answered on 03 Mar 2019
5 answers
200 views

RadAutoCompleteBox has a very useful property which is "SelectedItem". We can get the value of the chosen item from it. The problem is you can only get it. But what if we want to set the value of the selected item programmatically? Is there anything like "SelectedIndex", "SelectedValue", "Selecteditem"?

There is RadAutoCompleteBox.Text, but this only display the text and doesn't set the selected item.

Lance | Manager Technical Support
Telerik team
 answered on 17 Dec 2018
4 answers
92 views

We are trying to use a RadAutoCompleteBox on a Windows tablet. The use case is that a user needs to tap the field to open it and see all the results. This works fine. When the field is tapped, we do something like this...

public void SomeField_GotFocus(object sender, RoutedEventArgs e)
{
   var autoCompleteBox = sender as RadAutoCompleteBox;
       if (autoCompleteBox != null && !autoCompleteBox.IsDropDownOpen)
   {
        autoCompleteBox.Suggest(autoCompleteBox.Text);
   }
}

After an item is selected, this event is fired

public void SomeField_SelectionChanged(object sender, SelectionChangedEventArgs e)

 

...the Telerik control puts the cursor (focus) back in the original field, which fires the _GotFocus event again, which opens the autocomplete list again.

In this cycle, it isn't possible to get the RadAutoCompleteBox to close.

 

Looking at the API i don't see any methods to explicitly close the list.

I could work around it if I could get any other event (non-GotFocus) to fire when the control is selected, but I haven't been able to get the RadAutoCompleteBox to respond to _Tapped or _Click type events.

Anyone have any ideas?

 

Requirements I'm Trying to Satisfy

- RadAutoCompleteBox must open on tap (whether there is data in the field or not)

- Selecting item should set the value and close the item list

 

Nasko
Telerik team
 answered on 06 Feb 2018
6 answers
101 views
Has anybody an idea how to provide Inputscope functionality to AutoCompleteBox (to show for example only numeric keybord on mobile device)?
Marcin
Top achievements
Rank 1
 answered on 21 Apr 2017
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
Iron
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?