Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - anurag

Pages: [1]
1
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

2
Thanks a lot...sir :)

3
yes sir but i am unable to get how can i use dataModel.data in jsonstringfy() function.....as standalone....because i can only used it as
$( ".selector" ).pqGrid( "option", "dataModel", { data: dataSales } );
and now if i do something like this.....var t1=dataModel.data;
Than i get error...can you please let me know the correct way..

4
var data = JSON.stringify(dataModel.data); in this i am getting error as dataModel not defined....
i have used the sample code
$('#button1).click(function(){
var data = JSON.stringify(dataModel.data);
  $.ajax({url: url, data: data});
});
as my idea is that when i press this button than i get a JSON which i can send....

Pages: [1]