Prevent ExtJS grid plugin from overriding the default getRowClass method of Grid View


/ Published in: JavaScript
Save to your folder(s)

ExtJS is great for OO style interface design but has a couple of strange behaviors. For instance when adding the ExtJS RowExpander plugin to a grid, the plugin overrides the gridView's getRowClass function. That's not really what you want. For instance, I want to mark certain records in a grid red when they are overdue, and also use the RowExpander plugin. The plugin however throws away my own custom formatting.

Solution is to create a backup copy of the default getRowClass function and call both the plugin function and the original, concatenating the results together with a space

URL: robboerman.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.