Set focus on filter textbox after filtering

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 15 Dec 2007 Link to this post

    Requirements

    RadGrid for ASP .NET version

    RadControls for ASP .NET AJAX version

    5.0.1 and later


    2008.1.415 and later

    .NET version

    2.0 and later

    Visual Studio version

    2005 and later

    Programming language

    C#

    Browser support

    all supported by RadGrid for ASP .NET


    all browsers supported by RadControls for ASP .NET AJAX



    PROJECT DESCRIPTION
    This sample project demonstrates how to configure RadGrid to focus the filter textbox of the next column in line after a filtering has been performed. The main idea is to get the column which is currently being filtered and then set focus to the filter textbox of the subsequent column. The filtered column can be obtained in RadGrid1_ItemCommand through e.CommandArgument. Then based on the argument, we set a global variable to the next column in line and apply the focus in RadGrid1_PreRender. For the exact code, please refer to the attached project.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.