1
Help for ParamQuery Grid (free version) / Re: When Scroll down, select the rows will become unselected
« on: March 06, 2014, 09:31:43 pm »
sir i am using this code to select checkbox
obj.colModel[4]={
title:"Mark",width:100,dataIndx:5,align:"center",resizable:false,editable:false,type:'checkBoxSelection',render:function(ui){
var row_Data=ui.rowData,dataIndx=ui.dataIndx;
var val= row_Data[dataIndx];
var str="";
if(val){
str="checked='checked'";
}
return "<input type='checkbox' "+ str +" />";
},className:"checkboxColumn"
};
but the problem is that i can selected the checkBox but when i again click the checkbox than the row gets unselected and the tick mark in the checkbox does not get undone due to which i cannot select the row again
obj.colModel[4]={
title:"Mark",width:100,dataIndx:5,align:"center",resizable:false,editable:false,type:'checkBoxSelection',render:function(ui){
var row_Data=ui.rowData,dataIndx=ui.dataIndx;
var val= row_Data[dataIndx];
var str="";
if(val){
str="checked='checked'";
}
return "<input type='checkbox' "+ str +" />";
},className:"checkboxColumn"
};
but the problem is that i can selected the checkBox but when i again click the checkbox than the row gets unselected and the tick mark in the checkbox does not get undone due to which i cannot select the row again