Do you mean that the formatter must be 'currency' for it to work properly? I tried to do something like:
$.extend(true, $.fn.fmatter, {
amount: function(cellvalue, options, rowdata){
var op = $.extend(true, {}, options, {
currency: {
decimalSeparator:'.', decimalPlaces:2, suffix:'', prefix:', thousandsSeparator:',', defaultValue:' '
}
});
options.colModel.align = 'right';
return $.fn.fmatter.currency(cellvalue, op, rowdata);
}
});
so that I can simply use formatter:'amount' in colModel. I need to also specify an unformatter for cell edit?
Hi, Tony.
While beforeSelectRow works when user click on the row, it will not be called when multiselect is on and header checkbox is clicked and so the row is still selected. Anyway to solve this?
Thx, I've done it by:
serializeEditData: function(data){
Digging into the source code found that in postIt(), it has something like:
// the action is add
if(postdata.id=="_empty" ) {
I found that there is a side effect either I use onclickSubmit or serializeEditData. In the settings, I have closeAfterAdd: true, but the dialog does not close after add. The code is like:
I found that I can alter the value by using
onclickSubmit: function(params){return {id:'0'}; }
Is it the proper way?
Thx! It work!
It's a kind of work but if I click on multiple records before click edit, it will still be multiselected. Also navigating through records seems only highlight the row, but does not check on the checkbox.
My current solution is to attach beforeShowForm, afterclickPgButtons event with:
var $grid = $(“#grid”), rowId = $grid.getGridParam('selrow');
$grid.resetSelection().setSelection(rowId);
The reason for using DWR because it provides a seamless integration of the java service and it provides automatic conversion of java object to json. That's why I'm asking if DWR integration is possible.
I have further read the documentation. It seems that I can use function to manually call DWR generated javascript.
But on editing row, I can only see the config of 'editUrl'. Is there any integration possiblity?
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top