hello i have got this js error (see sourcecode), would be nice having the int value
for int field
1370 this.setCValue(val?this.grid._aplNF(val, this.cell._cellIndex):"0");
error: this.grid._aplNF is not a function
thanks
hello i have got this js error (see sourcecode), would be nice having the int value
for int field
1370 this.setCValue(val?this.grid._aplNF(val, this.cell._cellIndex):"0");
error: this.grid._aplNF is not a function
thanks
Can you provide example of code which returns this error?
<script>
partner_dob = new dhtmlXGridObject("partner_dob");
partner_dob.setImagePath("<?echo $sznev;?>/wp-includes/dhtmlx/imgs/");
partner_dob.setEditable(false);
partner_dob.setSkin("modern");
partner_dob.setHeader("Név,Szülidő,Orvosa,Telefon,Mobil,Email,Felvétel,Élesítés,Megjegyzések");
//partner_dob.attachHeader("#text_filter,#select_filter,#numeric_filter");
partner_dob.setInitWidths("150,80,150,80,80,80,80,80,200");
partner_dob.setColTypes("edtxt,dhxCalendar,edtxt,edtxt,edtxt,edtxt,ron,ron,txt");
partner_dob.setColAlign("left");
partner_dob.setColSorting("str,na,str,str,str,str,str,str,na");
partner_dob.enableResizing("true");
partner_dob.init();
partner_dob.enableSmartRendering(true);
partner_dob.load("../../../wp-content/plugins/partner/partner_dob_connector.php");
</script>
i know this code wont help you, i am constantly trying to locate which option throws the error.
(somewhere when grid loads data)
i found the error:
wrong
setColTypes("ron,dhxCalendar,edtxt,edtxt,edtxt,edtxt,ron,ron,txt");
good
setColTypes("txt,dhxCalendar,edtxt,edtxt,edtxt,edtxt,ron,ron,txt");
i put ron = read only number for a text field
anyway it would be nice having type check for that function and throw an error when type not suitable