jQuery-friendly?

I’ve just started with the dhtmlx grid and it is very good, but unless I’m missing something, it doesn’t seem to be very jQuery-friendly. The first thing that comes to mind is to be able to assign a class to each column. Something like the setColTypes() method:

mygrid.setColClasses("name,birthMonth,birthYear");

Then the appropriate class attribute would be rendered on each

, enabling you to attach jQuery plugins to cells in that column.

For example, something like

mygrid.load("myConnector.ashx", function() {
   $('.birthMonth').numeric();
});

would prevent users from keying in alpha characters in the “birth month” column using the alphanumeric plugin (itgroup.com.ph/alphanumeric/).

Thanks,
R.L.

The problem is that grid is very dynamical, so while we can assign special css classes the editors will appear and disappear on the fly, while jQuery command will affect only already existing content.

Technically you can init jQuery plugin directly from onEditCell handler, which may be not such a beautiful way , but will work with dynamic input.

By the way, we are planning to add per-column-user-css , not directly for jQuery support, but mostly to simplify customization of grid’s view.

Okay, Stanislav, thanks for the message.