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

Focus on GridViews Filter

2 Answers 24 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 02 Dec 2014, 08:38 AM
Hi,

I can't find an soloution for my problem. I already searched and tried many hours, but without success.
Well, I hope somebody can help me with my problem.

How it is possible via code to set a focus on RadGridViews Filter TextBox Column? 

For better understanding, I have attached a screenshot. 

I want to set a focus on this Filter TextBox via code.

I am using the Telerik Controls in Version v. 2014.1.402.40

Thank you!

Pierre

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 04 Dec 2014, 12:40 PM
Hi Pierre,

Thank you for writing.

To do that you just need to make the desired cell current (by setting the CurrentRow and CurrentColumn) and then call the BeginEdit method to put it in edit mode:
private void radButton1_Click(object sender, EventArgs e)
 {
     radGridView1.CurrentRow = radGridView1.MasterView.TableFilteringRow;
     radGridView1.CurrentColumn = radGridView1.Columns[ "StringColumn"];
     radGridView1.BeginEdit();
 }

I hope that you find this information useful. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Pierre
Top achievements
Rank 1
answered on 08 Dec 2014, 12:37 PM
Hi Stefan,

thank you for the great support! 

It works fine :O).

Regards
Pierre
Tags
GridView
Asked by
Pierre
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Pierre
Top achievements
Rank 1
Share this question
or