How to search with 2 or many parts of items

Posted by: levanduyet on 31 January 2024, 2:35 pm EST

  • Posted 31 January 2024, 2:35 pm EST

    Hi,

    I want to search with with 2 or more part of the items in the c1flexgrid list.

    Ex: I want to search items that contents 2 parts: “NON-WOVEN” and “NO.2

    Part 1 could stand in front of Part2 or Part2 stand in front of Part1.

    Can I do that with c1FlexGridSearchPanel.

    Thanks,

    Duyet Le

  • Posted 31 January 2024, 4:02 pm EST - Updated 31 January 2024, 4:07 pm EST

  • Posted 1 February 2024, 11:05 pm EST

    Hi Duyet,

    Apologies for the delay in response.

    To highlight all the search occurrences in a cell, you can set the HighlightSearchResultsMode property of the C1FlexGridSearchPanel to SearchHighlightMode.All.

    To search for specific strings, you can include the search text inside double-inverted commas. For eg. “non-woven”

    Please see the attached sample project and screenshots for reference.

    FlexGridSearch.zip

    screenshots.zip

    Best Regards,

    Kartik

  • Posted 2 February 2024, 1:01 am EST

    Hi Kartik,

    Thank you.

    Any way that I could set up myself.

    Ex: I want to search “Non-woven” and “No.2” then I could let the user enter: Non-woven*No.2

    Thanks,

    Duyet Le

  • Posted 4 February 2024, 9:01 pm EST

    Hi Duyet,

    Apologies for the delay in response over the weekend.

    Unfortunately, it is not possible to manually customize the search string when using the C1FlexGridSearchPanel. To customize the search strings yourself, you can create a simple User Control (similar to our C1FlexGridSearchPanel) for searching your customized strings manually using the C1FlexGrid.ApplySearch method. Please see the attached sample project for reference.

    FlexGridSearch_CustomSearch.zip

    Thanks, and Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels