javascript - dhtmlxgrid smart rendering and split mode error after sorting -
when use dhtmlxgrid smartrendering , split mode, found error after sorting. have posted question here.
i thought had solved problem, didn't.
after testing, found when use smart rendering , split mode, error appears after sorting rows.
var mygrid; mygrid = new dhtmlxgridobject('gridbox'); mygrid.setimagepath("../../../codebase/imgs/"); mygrid.setheader("sales,book title,author,price,in store,shipping,bestseller,date of publication"); mygrid.setinitwidths("50,80,250,70,70,70,70,100"); mygrid.setcolalign("right,left,left,right,center,left,center,center"); mygrid.setcoltypes("ed,ed,ed,price,ch,co,ro,ro"); var combobox = mygrid.getcombo(5); combobox.put("1","1 hour"); combobox.put("12","12 hours"); combobox.put("24","24 hours"); combobox.put("48","2 days"); combobox.put("168","1 week"); combobox.put("pick","pick up"); combobox.put("na","na"); mygrid.setcolsorting("na,na,na,na,na,na,na,na"); mygrid.attachevent("onxls",function(){ document.getelementbyid("a_1").style.display="block"; }); mygrid.attachevent("onxle",function(){ document.getelementbyid("a_1").style.display="none"; }); mygrid.enableautowidth(true) mygrid.init(); mygrid.enablesmartrendering(true); mygrid.splitat(2); mygrid.load("../common/smartrend.xml");
in previous given code demo, sorting disabled mygrid.setcolsorting("na,na,na,na,na,na,na,na");
. mean function hasn't been finished yet?
Comments
Post a Comment