Focus on GridViews Filter

3 posts, 0 answers
  1. Pierre
    Pierre avatar
    7 posts
    Member since:
    Mar 2014

    Posted 02 Dec 2014 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2908 posts

    Posted 04 Dec 2014 Link to this post

    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.

     
  3. Pierre
    Pierre avatar
    7 posts
    Member since:
    Mar 2014

    Posted 08 Dec 2014 in reply to Stefan Link to this post

    Hi Stefan,

    thank you for the great support! 

    It works fine :O).

    Regards
    Pierre
Back to Top