Build editor or group for full-text search

2 posts, 0 answers
  1. AMSndy
    AMSndy avatar
    1 posts
    Member since:
    Sep 2008

    Posted 20 Mar 2013 Link to this post

    Is it possible to build own RadFilterGroupOperation or RadFilterDataFieldEditor for MS SQL full-text search operator CONTAINS? Meybe you may suggest some solution. I'd like to generate SQL with where clause like that:  
    .... CONTAINS([columnName], 'NEAR(value1, value2)')
    - columnName  from Filter FieldName property 
    - NEAR operator from FilterFunction 
    - value1, value2 from editor texbox

     
     
  2. Marin
    Admin
    Marin avatar
    1045 posts

    Posted 25 Mar 2013 Link to this post

    Hi,

     Currently RadFilter does not provide options for custom filter functions. You can build custom field editors though, as shown in this demo:
    http://demos.telerik.com/aspnet-ajax/filter/examples/customeditors/defaultcs.aspx

    Another option is to use custom query provider and build the filter expression manually in the ApplyExpressions event of the control. More information on this can be found in the following help topics:
    http://www.telerik.com/help/aspnet-ajax/filter-building-expressions.html
    http://www.telerik.com/help/aspnet-ajax/filter-custom-editors.html

    Kind regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top