search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onRowFilter - error on cells.all()

Asked by Gary
2 years ago.

In onRowFilter event I wish to access row's cells:

onRowFilter: function (args) {
var cells = args.row.cells.all();
}

But I get the following JavaScript error:
daypilot-all.js:34454 Uncaught TypeError: Cannot read property 'start' of undefined

Is this a know bug? Is there any workarround?

Thanks in advance.

Comment posted by Gary
2 years ago.

Edit: I'm working with build 8.3.2450

Answer posted by Dan Letecky [DayPilot]
2 years ago.

This event handler is called during the update process. The rows.cells.all() method will only work correctly when the update is complete.

What would you like to achieve? Hide a row that doesn't have any events?

Comment posted by Gary
2 years ago.

Thanks for your reply Dan.

Users of my web app have option to either filter rows (hide) that does NOT match search criteria or highlight rows (including it's cells) that match search criteria.

What would you suggest for best approach?

Thanks

This question is more than 6 months old and has been closed. Please create a new question if you have anything to add.