This is a migrated thread and some comments may be shown as answers.

Filter grid contents on calculation of two fields

0 Answers 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guy
Top achievements
Rank 1
Guy asked on 12 Jul 2012, 08:14 PM
I have tried the following:

var tourt = kendo.template('<tr><td>${TotalRegistration=MemberRegistrationCount+GuestRegistrationCount}</td></tr>');
var tourh = '<table id="tourg"><thead><tr><th># Registered</th></tr></thead></table>';

tourngrid = $('#tourg').kendoGrid({ rowTemplate: tourt }).data('kendoGrid');

$('#minUsers').kendoNumericTextBox();
$('#goFilter').click(function() {
            tourngrid.dataSource.filter({filter: { field:"TotalRegistration", operator:"ge", value:$('#minUsers').data('kendoNumericTextBox').value()}});
});

Amazingly the assignment in the row template still reports the correct number in the grid column.  But it does not execute the filter using that assigned variable defined in the template.

Is there a way to sum two columns and use the result in the grids filter?




No answers yet. Maybe you can help?

Tags
Grid
Asked by
Guy
Top achievements
Rank 1
Share this question
or