automatic filter

3 posts, 0 answers
  1. NightFlash
    NightFlash avatar
    50 posts
    Member since:
    Mar 2007

    Posted 14 Dec 2010 Link to this post

    Hi,

    My customer really likes the radGrid in combination with LINQ. But since he only use the filter "Contains" in the grid, he would like when you press "enter" the grid starts the search command with "Contains". Like that he doesn't need to use his mouse anymore to navigate in the filter menu. Is this possible? If so, can someone explain it to me, would be really helpfull!

    Second question, way less important... is it possible to hide to search button and only leave the textfield.

    Best regards,
    Kevin
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Dec 2010 Link to this post

    Hello Kevin,

    You can use the CurrentFilterFunction  property of the GridColumn object to specify the default filter function and set ShowFilterIcon property as 'false' to hide the filter icon. You need to set AutoPostBackOnFilter property of a column to True, which in turn causes a postback filter operation when the user types a filter in the filter box and presses [Enter] from the keyboard.

    ASPX:
    <telerik:GridBoundColumn UniqueName="FirstName" DataField="FirstName" HeaderText="FirstName"
          AndCurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true">
      </telerik:GridBoundColumn>

    Please take a look at the following documetation for more information on this.
    Basic filtering

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. NightFlash
    NightFlash avatar
    50 posts
    Member since:
    Mar 2007

    Posted 15 Dec 2010 Link to this post

    Thank you very much!
Back to Top