Categories | Question details Back To List | ||
how to use colspan in addRow method Hi, There are 6 columns in my grid. I want to display some string "No records found" in the grid when the grid data is null or empty. How i can use colspan in addRow method?? I tried below sample code but it didnt worked ... if(jsonString == null || jsonString == '') { mygrid.clearAll(); mygrid.addRow(new Date(),"<colspan='6'>No Records Found",0); } Pls help on this ASAP as it is urgent for me . Thanks in advance. Answer posted by Support on Nov 28, 2008 01:43 You can't do it directly in addRow command, but can be done as mygrid.addRow(id,.... mygrid.setColspan(id,0,6); //create colspan Also, be sure that enableColSpan was called during grid's initialization. |