FlexGrid: Cannnot remove the highlight after removing the search text

Posted by: ronny on 6 December 2022, 10:02 am EST

    • Post Options:
    • Link

    Posted 6 December 2022, 10:02 am EST

    I am working on a flex grid in windows form version 4.0,

    I used a search panel to search in the flex grid. with

    c1FlexGridSearchPanel1.SearchMode = C1.Win.C1FlexGrid.SearchMode.Always;

    Eventhough I cleared the search panel(Removed the last searched text from the search panel) the last search results are still highlighted.

    Can you please let me know how to remove the last searches after I remove the search texts

    Thanks in advance

  • Posted 7 December 2022, 12:31 am EST

    Hi,

    We tried to replicate the behavior using the latest .NET 4.0 and .NET 4.5.2 versions of C1FlexGrid and SearchPanel, but we could not see the behavior on our end. Kindly refer to the attached sample showing the same. We would suggest you try using the latest version of C1FlexGrid and SearchPanel to see if you still face the issue.

    Also, if you are doing something different, please provide a small sample OR update the attached sample to show the issue you are facing, so we can investigate further.

    Attachment: SearchPanel_Fg.zip

    Best Regards,

    Kartik

  • Posted 7 December 2022, 4:37 am EST

    Hi Kartik,

    Thank you for your response.

    I tested with your attached sample. and I compared the code,finaly I found that if you reset the search panel watermark text( c1FlexGridSearchPanel1.Watermark = “”;,) then you can reproduce the issue.

  • Posted 7 December 2022, 7:59 am EST

    Hello Ronny,

    Thank you for pointing out the difference. We could see the issue you mentioned with the .NET 4.0 version of C1 controls. However, we tested the issue with the latest .NET 4.5.2/ .NET 4.8 version of C1 controls and the issue seems to be fixed. Therefore, we suggest you upgrade to the latest version of C1 controls, to receive regular feature updates and bug fixes.

    If you still want to use the older version, we have also created a simple workaround, where you can use the “TextChanged” event of the Search Textbox to manually reset the search as soon as the TextBox gets empty. Please see the attached sample for reference.

    Attachment: SearchPanel_Fg_Mod.zip

    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