Telerik Forums
UI for Universal Windows Platform Forum
3 answers
75 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
190 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
85 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
97 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?