Unable to get the selecteditem when tab is clicked

3 posts, 0 answers
  1. dharma krovvidi
    dharma krovvidi avatar
    5 posts
    Member since:
    Mar 2010

    Posted 26 Mar 2010 Link to this post

    Hi
    I m facing an issue regarding radcombo box,that i need to get the selecteditem to be filtered and displayed when i press the tab key for navigation between different radcombos. Can anybody suggest a solution to this...I m using C# code,& IE 8 browser. 
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 29 Mar 2010 Link to this post

    Hi,

    You need to press Enter to commit the selection when the filtering is enabled. You cannot override this behavior.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Bilal Azam
    Bilal Azam avatar
    2 posts
    Member since:
    Jun 2010

    Posted 06 Jul 2010 Link to this post

    I had the exact problem, but couldn't find any solution on the forum.

    So, I implemented this feature myself using the keyDown Event =)

        public class PayeeComboBox : RadComboBox  
        {  
            public PayeeComboBox()  
            {  
                KeyDown += PayeeComboBox_KeyDown;  
            }  
     
            void PayeeComboBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)  
            {  
                if (e.Key == System.Windows.Input.Key.Tab)  
                {  
                    foreach (var item in this.Items)  
                    {  
                        var container = ItemContainerGenerator.ContainerFromItem(item);  
                        if (container != null && ((RadComboBoxItem)container).IsHighlighted)  
                        {  
                            SelectedItem = ItemContainerGenerator.ItemFromContainer(container);  
                            this.Text = ((Payee)this.SelectedItem).AutocompleteName;  
                            return;  
                        }  
                    }  
                }  
            }  
        } 

    Hope this is helpful to you!

    Regards,
    Bilal Azam
Back to Top