jQWidgets Forums

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts

  • Emanuel
    Participant

    Thank you for your answer.

    Best Regards,
    Emanuel


    Emanuel
    Participant

    Ah, okay. Yes, I tried also the format attribute after reading the example but this does not work either.

    I try to find a causative difference between the grids that prevents the cellformatting and will hopefully post it here.

    Thanks,
    Emanuel


    Emanuel
    Participant

    Hi Peter,

    thank you. I originally tried to format the date on the server side (same format “dd.MM.yyyy HH:mm:ss”) with these results:

    – The “normal working” grids display it correctly and the grid recognizes this field as date type (date filter dialog on that column)
    – The “problematic” grid displays it correctly but the grid does not recognize this field as date type but as string (the filter dialog has string operating filter conditions)

    Also: The “normal working” grids don’t seem to require the date to be preformatted like I wrote in the first post.

    Thanks again for any idea,
    Emanuel


    Emanuel
    Participant

    Okay, it was missing a call to updatebounddata.

    Thus, the correct call is:

    
    $("#transactions").on('rowselect', function(event) {
    	setDocumentAsSeen(event.args.row, 'document');
    	$(this).jqxGrid('updatebounddata');
    });
    
    function setDocumentAsSeen(row, section) {
    	$.ajax({
    		url : hostUrl + '/qs/setDocumentAsSeen/' + row.ormId + '/' + section
    	}).success(function(msg) {
    		if (msg == "success") {
    			row.seen = true;
    		}
    	});
    }
    

    Thanks.


    Emanuel
    Participant

    Hi Dimitar,

    thank you. Just updating the row field will call the cellsrenderer?

    I tried this:

    
    $("#transactions").on('rowselect', function(event) {
    	setDocumentAsSeen(event.args.row, 'document')
    });
    
    function setDocumentAsSeen(row, section) {
    	$.ajax({
    		url : hostUrl + '/qs/setDocumentAsSeen/' + row.ormId + '/' + section
    	}).success(function(msg) {
    		if (msg == "success") {
    			row.seen = true;
    		}
    	});
    }
    
    

    Setting the seen field to true does not call the cellsrenderer function. Am I missing something?

    Thanks again,
    Emanuel

Viewing 5 posts - 1 through 5 (of 5 total)