Hi ,
I am trying to update the cell . when i press F2 and tring to update then it will change for that time only when i refresh the page then its show the same value not updated value can you please tell me how we update the data with steps in php :
below is my code please solve my this problem
function sortGridOnServer(ind,gridObj,direct){
mygrid.clearAll();
mygrid.loadXML(gridQString+(gridQString.indexOf(“?”)>=0?“&”:“?”)+“orderby=”+ind+“&direct=”+direct);
mygrid.setSortImgState(true,ind,direct);
return false;
}
var mygrid = new dhtmlXGridObject(‘products_grid’);
mygrid.setImagePath(“codebase/imgs/”);
mygrid.setHeader(“Catgeory,Subcategory,Subsubcategory,Tutorial Name,File Name,Action”);
mygrid.attachHeader(“#select_filter,#select_filter,#select_filter,#select_filter,#select_filter,”)
mygrid.setInitWidths(“*,150,150,150,150,150”);
mygrid.setColAlign(“left,left,left,left,left,right”);
mygrid.setColSorting(“str,str,str,str,str,str”);
mygrid.setColTypes(“ed,ed,ed,ed,ed,ed”);
mygrid.setSkin(“modern”);
mygrid.init();
mygrid.enableSmartRendering(true);
gridQString = “<?php echo base_url();?>category_module/show_data”;//save query string to global variable (see step 5 for details)
mygrid.loadXML(gridQString );
mygrid.attachEvent(“onBeforeSorting”,sortGridOnServer);
mygrid.attachEvent(“onRowSelect”,doOnRowSelected);
function doOnRowSelected(rowID,celInd)
{
alert("Selected row ID is “+rowID+”\nUser clicked cell with index "+celInd);
}