Categories | Question details Back To List | ||
Grid Columns and Xml Data Source hi, i m using dhtmlxgrid in my asp.net application. i m parsing grid with xml data source. in this scenario my xml file has 10 fields (cells) but grid has only 4 fields (columns). when i parse grid with this xml file, grid always shows first 4 columns.. but i want to show 2-4-6-8 th fields from xml file in my grid. is there any way to do this except hidden columns? can i add some xpath syntax like an attribute in xml file, to tell this to grid? thanks in advance.. Answer posted by Support on Dec 01, 2008 02:13 Default parser will process all cells in their order, without any ability to control proces. You can a) define custom parser http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_loading_types.html#grid_art_custloadtypes b) use code like ( it is not a part of supported functionality, and may have some drawbacks ) mygrid._c_order=[] mygrid._swapColumns=function(data){ return [data[2],data[4]]; //array of necessary data } mygrid.load(... Answer posted by ihsany on Dec 01, 2008 03:44 thanks support.. i ll try it |