XML filtering in Smart Rendering mode

Hi,
Im trying to setup Smart Rendering Filter in XML. This is the code ive got for setting it up in page but I can’t figure out how to acheive the same thing when defining through XML:

// Grid var UserGrid = UserLayout.cells("b").attachGrid(); UserGrid.setSkin("dhx_skyblue"); UserGrid.setImagePath("codebase/imgs/"); UserGrid.setIconsPath("icons/") UserGrid.setHeader("Account,Name,Email,Films,Credit Purchased,Action, "); UserGrid.attachHeader(" ,#text_filter,#text_filter, ,#cspan,#cspan,#cspan,#cspan"); UserGrid.setInitWidths("60,*,*,50,110,150,*"); UserGrid.enableAutoWidth(true); UserGrid.setColAlign("left,left,left,center,left,left"); UserGrid.setColTypes("ro,ed,ed,ed,ed,ed,ed"); UserGrid.getCombo(5).put(2, 2); UserGrid.setColSorting("str,str,str,str,str,str"); UserGrid.init(); UserGrid.enableSmartRendering(true); UserGrid.enableAutoHeight(true); UserGrid.loadXML("xml/UserGrid.xml");

Any help would be great.

Cheers

You can call any API method in XML.
Look at the tutorial: http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:configuration_from_xml
So just type something like this:

<afterInit> <call command="enableSmartRendering"><param>true</param></call> </afterInit>