rafi
rafi

Reputation: 1817

A way to return DOM objects or jQuery within Slickgrid's column formatters

Slickgrid's column formatters return html to the grid object, so basically there's no way to attach events on elements created within the formatters. One has to use $.live() to capture those elements, why does Slickgrid formatter use HTML and not DOM objects?

Upvotes: 2

Views: 777

Answers (1)

Tin
Tin

Reputation: 9082

1) Because it's faster to render it this way. 2) To discourage developers from doing what you are trying to do :) This approach is not scalable. Using event delegation is the way to go here.

Upvotes: 2

Related Questions