jackysee

Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • in reply to: How to edit a currency cell? #93497
    jackysee
    Participant

    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?

    in reply to: Disable row selection #93478
    jackysee
    Participant

    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?

    in reply to: Form editing add row, use ‘0’ instead of ‘_empty’ #92893
    jackysee
    Participant

    Thx, I've done it by:

    serializeEditData: function(data){

    in reply to: Form editing add row, use ‘0’ instead of ‘_empty’ #92877
    jackysee
    Participant

    Digging into the source code found that in postIt(), it has something like:

    // the action is add
    if(postdata.id=="_empty" ) {

    in reply to: Form editing add row, use ‘0’ instead of ‘_empty’ #92876
    jackysee
    Participant

    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:

    in reply to: Form editing add row, use ‘0’ instead of ‘_empty’ #92812
    jackysee
    Participant

    I found that I can alter the value by using

    onclickSubmit: function(params){return {id:'0'}; }
    Is it the proper way?

    in reply to: Load grid data upon click on some button #91873
    jackysee
    Participant

    Thx! It work!

    in reply to: Multiselect and form editing #90930
    jackysee
    Participant

    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);

    in reply to: DWR integration? #86065
    jackysee
    Participant

    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?

Viewing 9 replies - 1 through 9 (of 9 total)

Stay connected with us in your favorite flavor!