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

Focus MultiColumnComboBox

3 Answers 52 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
sarthkee
Top achievements
Rank 1
Veteran
sarthkee asked on 17 Feb 2021, 08:50 AM

How to focus MultiColumnComboBox from ComboBox selectionindexchanged?

I did this, but doesn't work for me!

 

protected void radcombobxProd_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        BindGrid2();
        RadMultiColumnComboBox1.Focus();      
    }     

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 17 Feb 2021, 02:58 PM

Hi sarthkee,

You can focus the MultiColumnCombobox by calling its client-side focus method. You can do it by registering a client-side logic through the ScriptManager like follows:

    protected void radcombobxProd_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
    {
        BindGrid2();
        //RadMultiColumnComboBox1.Focus();

        string script = "function f(){$find(\"" + RadMultiColumnComboBox1.ClientID + "\").focus(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
    }

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
sarthkee
Top achievements
Rank 1
Veteran
answered on 18 Feb 2021, 06:22 AM
Thank you so much. It works.
0
Vessy
Telerik team
answered on 18 Feb 2021, 04:27 PM

You are welcome, sarthkee :)

Regards,
Vessy
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
MultiColumnComboBox
Asked by
sarthkee
Top achievements
Rank 1
Veteran
Answers by
Vessy
Telerik team
sarthkee
Top achievements
Rank 1
Veteran
Share this question
or