igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

How to raise events attached to cell after grid's searching feature is used?

Open ymita opened this issue 8 years ago • 9 comments

Description

Events that are attached to cells do not raise after grid's text search is performed. This is because new text labels are populated and original text labels become hidden, so that the attached events to the original text are not called. How can we call the such events even after grid's text search is performed?

  • igniteui-angular version: 6.1.4
  • browser: Chrome

Steps to reproduce

  1. Run the attached sample
  2. Open console window of browser's Developer Tool
  3. Enter 5 on the input box
  4. Click a cell on a cell

Result

mousedown, mouseup and mouseenter event are not raised.

Expected result

mousedown, mouseup and mouseenter event are raised.

Attachments

igniteui-app1.zip

ymita avatar Sep 04 '18 07:09 ymita

@gedinakova May I ask the current status of this issue? Is this considered a bug of igx-grid?

ymita avatar Sep 14 '18 00:09 ymita

@ymita Yes, this is considered a bug. We are currently looking into it.

gedinakova avatar Sep 14 '18 06:09 gedinakova

@ymita After further investigation and internal discussions, it was determined that this behavior is a limitation. The search feature is a simple text search. With custom cell templates there is no way for us to know whether the cells contain any text which can be searched and highlighted. So for this case, if the extended cell functionality is required when there's active search, the only option to avoid the broken behavior is by marking the respective column unsearchable by setting [searchable]=false.

gedinakova avatar Sep 18 '18 11:09 gedinakova

@gedinakova Thank you for the information. Do you plan to write this limitation on the documentation for existing/future customers?

ymita avatar Sep 19 '18 07:09 ymita

@ymita I have just updated the Grid Search spec file to include this limitation.

DDavidkov avatar Sep 19 '18 09:09 DDavidkov

@DDavidkov Thank you!

ymita avatar Sep 19 '18 23:09 ymita

@ymita You are welcome!

Also I have just created a PR for this in our docs, so when it is merged, the grid search topic will include the known limitations of the feature.

DDavidkov avatar Sep 20 '18 09:09 DDavidkov

@DDavidkov Is the limitation that is described on the Wiki going to be reflected on grid search topic soon?

ymita avatar Oct 19 '18 04:10 ymita

@ymita Yes, Yuki, it will be available when our next major release is ready.

gedinakova avatar Oct 19 '18 08:10 gedinakova