Hello DevExpress
How can I highlight the text in the grid according to the values entered in the filter row?
ie. if I am on the filter row column 2 and type 'test', i want for all grid rows column 2, 'test' to be highlighted where found.
ie. I need highlighting to work in exactly the same way as it works in aspxcombo with incremental filtering.
(see attached screenshot).
Regards
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello George,
Thank you for your question.
I suggest you implement the following scenario to achieve your goal.
Handle the ASPxGridView.CustomColumnDisplayText event and in its handler, modify a cell displayed text: wrap necessary characters by some tag with a CSS class. For example, if a cell contains the 'abcdefgh' text and an end-user has typed the 'abc' string, you need to modify the cell text to the following: <span class="filteredText">abc</span>defgh.
Implement the "filteredText" CSS class to highlight its inner text.
It is possible that you will need to disable the ASPxGridView.EncodeHtml setting to prevent html-tag encoding.
If you need any additional assistance, you are welcome to contact us at any time.
Best regards,
Vladimir
Hello Vladimir
Thank you for your reply.
Is it possible to send me a sample project?
Regards
Hello George,
We do not have such an example. In our Code Central there is a slightly different example ASPxGridView - creating external filter with the ASPxTextBox and highlighting search text where this scenario is partially implemented.
Please analyze our approach and let me know whether or not you find it helpful.
Thanks,
Vest
Thank you DevExpress