Categories | Question details Back To List | ||||||||
dhtmlxgrid Hi, alternate colors is working fine, if we are loading the grid with default dhtmlwindows skin.. If we set the skin for dhtmlwindows, the skin for grid is not working.. Pls advice.. dhxWins.enableAutoViewport(false); dhxWins.setViewport(10, 120, 1240, 780); var id = "window"+cnt; var win = dhxWins.createWindow(id, 20, 10, 320, 240); dhxWins.window(id).setText(windowName); win.setText(windowName); dhxWins.window(id).keepInViewport(true); dhxWins.enableAutoViewport(false); dhxWins.setImagePath("../../../dhtmlxWindows/codebase/imgs/"); //dhxWins.setViewport(0, 0, 1250, 800); //dhxWins.window(id).keepInViewport(true); dhxWins.window(id).button("park").attachEvent("onClick", function() { var button = document.createElement("<input style = 'width:120px;background-color: #CCFFBB' type='button' value='"+windowName +"' id='"+id +"' onclick='javascript:MaximizeWindow(id)'/>"); var divtoolbar =document.getElementById("divToolbar"); divtoolbar.appendChild(button); win.hide(); }); dhxWins.setSkin("modern_blue"); var mygrid3 = win.attachGrid(); mygrid3.selMultiRows = true; mygrid3.setImagePath("../../../../dhtmlxGrid/codebase/imgs/"); var flds = "Sales,Book Title,Author,Price"; flds += ",In Store,Shipping,Bestseller,Date of Publication"; mygrid3.setHeader(flds);//,"#cspan","C"); mygrid3.setInitWidthsP("12.5,12.5,12.5,12.5,12.5,12.5,12.5,12.5") mygrid3.setColAlign("right,left,left,right,center,left,center,center") mygrid3.setColTypes("dyn,ed,ro,price,ch,coro,ra,ro"); mygrid3.setColSorting(",str,str,int,str,str,str,date") //mygrid3.setColumnColor("white,#d5f1ff,#d5f1ff") mygrid3.setMultiLine(false); mygrid3.enableDragAndDrop(true); mygrid3.enableColumnMove(true); mygrid3.setSkin("modern"); mygrid3.enableAlterCss("even","uneven"); //mygrid3.setSkin("modern"); mygrid3.init(); mygrid3.loadXML("grid.xml"); regards Uthra Answer posted by Alex (support) on May 28, 2009 08:59 Hello, the issue wasn't reproduced locally. Please, see attached sample. You define styles even and uneven rows (enableAlterCss). This styles redefine row styles of modern skin. If issue still persists, please, provide the complete demo to support@dhtmlx.com Attachments (1)
|