Edit on focus

15 posts, 0 answers
  1. Hans
    Hans avatar
    36 posts
    Member since:
    Nov 2017

    Posted 23 Jan Link to this post

    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

  2. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 28 Jan Link to this post

    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.
  3. Hans
    Hans avatar
    36 posts
    Member since:
    Nov 2017

    Posted 04 Feb in reply to Martin Ivanov Link to this post

    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

  4. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 07 Jun Link to this post

    hii...how do i get multi column combo box selected items into a datatable or List ?? see the attached pic
  5. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 10 Jun Link to this post

    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.
  6. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 11 Jun Link to this post

    Thank you for the reply...i want know one more thing that how to hide RadMultiColumnComboBox popup after selection
  7. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 11 Jun Link to this post

    Thank you for the reply...i want to know one more thing that how to hide RadMultiColumnComboBox popup after selection ????????
  8. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 11 Jun Link to this post

    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.
  9. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 11 Jun Link to this post

    hii...i cant access that property....see the attached pic
  10. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 11 Jun Link to this post

    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.
  11. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 11 Jun Link to this post

    hii...Martin Ivanov...i can't access this too....i am using 2018 version
  12. Martin Ivanov
    Admin
    Martin Ivanov avatar
    2191 posts

    Posted 12 Jun Link to this post

    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.
  13. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 12 Jun Link to this post

    Thank you, Martin Ivanov.  That solution is what I needed.  And I appreciate you setting up the feature request.
  14. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 22 Jun Link to this post

    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 ??
  15. ranees
    ranees avatar
    108 posts
    Member since:
    Nov 2018

    Posted 22 Jun Link to this post

    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 ??
Back to Top