Categories | Question details Back To List | ||
I'm using #master_checkbox and 'Ch' for the each row. The problem is : When i click(check) the master checkbox ...all the rows are selected(checked).....But when i uncheck any one row from the grid,master checkbox should uncheck...but its not unchecking the mastercheck box.Could you please help me in this issue...Please tell me how to uncheck the master checkbox when any row is unchecked from the grid.Advance thanks for your help! Here is my code function loadGrid(){ controlGrid.imgURL = 'images/grid/'; screenMappingTree.setImagePath('images/tree/'); controlGrid.setHeader('#master_checkbox,Application Control Name<span style='color:red'>*</span>, Coded Control Name, Control Type<span style='color:red'>*</span>,Action<span style='color:red'>*</span>, Description,controlId,screenId,actionId,controlTypeId'); controlGrid.setInitWidths('60,200,300,160,160,300,1,1,1,1'); controlGrid.setColAlign('right,center,center,center,center,center,center,center,center,center'); controlGrid.setColTypes('ch,ed,coro,coro,coro,txt,ed,ed,ed,ed'); controlGrid.setColSorting('na,str,str,str,str,na,na,na,na,na'); controlGrid.enablePaging(true,20,null,'pagingArea',true,'recinfoArea'); controlGrid.enableTooltips('false,false,false,false,false,false,false,false,false,false'); controlGrid.setSkin('light'); controlGrid.init(); controlMappingList = '<c:out value='${ControlMappingVO.xmlString}' escapeXml='false' />'; screenId = '<c:out value='${ControlMappingVO.screenId}'/>'; //alert('screenId === '+screenId); loadedXML = getDoc(controlMappingList); cmbScrElementControlType=controlGrid.getCombo(3); var controlTypeList = evaluateXPath(loadedXML, '//controltypelist/controltype'); for(i = 0;i<controlTypeList.length;i++){ var controlTypeId = evaluateXPath(loadedXML, '//controltypelist/controltype[' + i + ']/controlTypeId'); var controlTypeName = evaluateXPath(loadedXML, '//controltypelist/controltype[' + i + ']/logicalName'); controlTypeArr[controlTypeArr.length]= new loadControlType(controlTypeId[0].childNodes[0].nodeValue,controlTypeName[0].childNodes[0].nodeValue); cmbScrElementControlType.put(controlTypeId[0].childNodes[0].nodeValue,controlTypeName[0].childNodes[0].nodeValue); $('defineControlType').options[i+1] = new Option(controlTypeName[0].childNodes[0].nodeValue,controlTypeId[0].childNodes[0].nodeValue); var actionNodeName = evaluateXPath(loadedXML, '//controltypelist/controltype[' + i + ']/actionList/action'); for(j = 0;j<actionNodeName.length;j++){ var actionId = evaluateXPath(loadedXML, '//controltypelist/controltype[' + i + ']/actionList/action[' + j + ']/actionId'); var actionName = evaluateXPath(loadedXML, '//controltypelist/controltype[' + i + ']/actionList/action[' + j + ']/logicalName'); actionArray[actionArray.length] = new loadAction(controlTypeId[0].childNodes[0].nodeValue,controlTypeName[0].childNodes[0].nodeValue,actionId[0].childNodes[0].nodeValue,actionName[0].childNodes[0].nodeValue); } } loadScreenTree(controlMappingList); screenMappingTree.openItem('1'); focusTreeNod(screenId); loadControlGridByScreenId(loadedXML,screenId); } Answer posted by Support on May 13, 2008 10:05 There is no native support for such feature , but you can use next workaround http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=3227&ssr=yes&s=uncheck |