PDA

View Full Version : setRenderer() method in Extjs4



op1op
17 Oct 2012, 1:33 AM
Extjs 3.3.1 have the method setRenderer() as



/**
* Sets the rendering (formatting) function for a column.
*/
setRenderer( Number col, Function fn ) : void

Now I don't get any method in ExtJS 4 of setRenderer. So How can I format grid column at runtime in ExtJS 4.

Thanks!

skirtle
17 Oct 2012, 3:38 PM
Have you tried just setting the renderer on the column?


column.renderer = function(...) {
...
};

That's pretty much all the old method did.

op1op
18 Oct 2012, 2:57 AM
It works!
Thank you!