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

Edit on focus

14 Answers 196 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Veteran
Hans asked on 23 Jan 2019, 10:09 AM

Hi, 

I would like to be able to begin typing the moment the MultiColumnComboBox has focus, which is not possible at the moment.  I need to click in the control or tap Tab a second time before I can begin typing.

Best Regards,
Hans

14 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 28 Jan 2019, 08:34 AM
Hello Hans,

I've tested two scenarios based on your description.
  • The first one was to click on the text input part of the control. In this case the focus is given to the input field and you can type right away.

  • The second scenario was to focus the control using its Focus() method. In this case you cannot just start typing because the focus doesn't propagate to the input field. In order to focus this you can use the GotFocus event of the RadMultiColumnComboBox control to manually set the focus to the text input. Here is an example in code:
    private void multiColumnComboBox_GotFocus(object sender, RoutedEventArgs e)
    {           
        var tb = this.multiColumnComboBox.FindChildByType<RadWatermarkTextBox>();
        tb.Focus();
    }

If this doesn't help, can you please tell me how exactly you focus the control, and what is its setup?

Regards,
Martin Ivanov
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Hans
Top achievements
Rank 1
Veteran
answered on 04 Feb 2019, 10:36 AM

Hello Martin,

My MultiColumnComboBox gets the focus by tapping the Tab key.  Your second scenario was the solution to my problem.  Thanks !

Best Regards,
Hans

0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 07 Jun 2019, 06:25 AM
hii...how do i get multi column combo box selected items into a datatable or List ?? see the attached pic
0
Martin Ivanov
Telerik team
answered on 10 Jun 2019, 08:06 AM
Hello Raneesras,

You can get the selected items of the RadMultiColumnComboBox control using its SelectedItems property.

Regards,
Martin Ivanov
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 11 Jun 2019, 06:25 AM
Thank you for the reply...i want know one more thing that how to hide RadMultiColumnComboBox popup after selection
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 11 Jun 2019, 06:26 AM
Thank you for the reply...i want to know one more thing that how to hide RadMultiColumnComboBox popup after selection ????????
0
Martin Ivanov
Telerik team
answered on 11 Jun 2019, 06:56 AM
Hello Raneesras,

To do this you can set the CloseDropDownAfterSelectionInput property of the control to True.
<telerik:RadMultiColumnComboBox CloseDropDownAfterSelectionInput="True" />

Regards,
Martin Ivanov
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 11 Jun 2019, 08:56 AM
hii...i cant access that property....see the attached pic
0
Martin Ivanov
Telerik team
answered on 11 Jun 2019, 09:37 AM
Hello Raneesras,

Note that the CloseDropDownAfterSelectionInput was introduced with UI for WPF R1 2019 (version 2019_1_116).

Regards,
Martin Ivanov
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 11 Jun 2019, 09:51 AM
hii...Martin Ivanov...i can't access this too....i am using 2018 version
0
Martin Ivanov
Telerik team
answered on 12 Jun 2019, 11:13 AM
Hello Raneesras,

Another approach is to use the SelectionChanged event of RadMultiColumnComboBox control and its CloseDropDown() method if you have access to this API.
private void RadMultiColumnComboBox_SelectionChanged(object sender, SelectionChangeEventArgs e)
{
    this.multiColumnComboBox.CloseDropDown();
}
If this doesn't work for you, there is a solution shown in the following forum.

Regards,
Martin Ivanov
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 12 Jun 2019, 12:37 PM
Thank you, Martin Ivanov.  That solution is what I needed.  And I appreciate you setting up the feature request.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 22 Jun 2019, 10:07 AM
hiii i want to add rad multi column combo box column in RadGridView....after selecting an from  rad multi column combo i want to add a new row in RadGridView could you please give me a sample project related to this ??
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 22 Jun 2019, 10:07 AM
hiii i want to add rad multi column combo box column in RadGridView....after selecting an item from  rad multi column combo i want to add a new row in RadGridView could you please give me a sample project related to this ??
Tags
MultiColumnComboBox
Asked by
Hans
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Hans
Top achievements
Rank 1
Veteran
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or