This topic contains 5 replies, has 2 voices, and was last updated by Todor 5 years, 5 months ago.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Grid › Tag aggregates
Tagged: #jqwidgets-grid, aggregates, javascript grid, jquery grid
This topic contains 5 replies, has 2 voices, and was last updated by Todor 5 years, 5 months ago.
Dear, I have a grid where I am showing a quantity of a column using:
aggregates: [‘count’]
all good, this shows me as a result in the statusbar
count: amount
The query is how I can tell you to just show me the amount and not the “count:” tag
From already thank you very much
Hello nostromo,
I would suggest you to review the following demo. It shows different kinds of aggregates.
Let us know if you need further assistance.
Best Regards,
Todor
jQWidgets Team
https://www.jqwidgets.com
understood, but my problem now goes by the count function, this gives me the total rows of the column, but I need to know the number of cells not empty in the column.
What would be the way to evaluate that?
Hello nostromo,
You could check in the demo that I’ve sent in my previous post how In Stock/Not In Stock aggregates are done. They show how many rows are checked and how many are not.
Best Regards,
Todor
jQWidgets Team
https://www.jqwidgets.com
Excellent, the code tells me the rows with data, but I still have the problem of how to remove the tag “In Stock:”
If I change to “”: I keep getting the : and the result.
I just need the result
aggregates: [{ ‘In Stock’:
function (aggregatedValue, currentValue) {
if (currentValue) {
return aggregatedValue + 1;
}
return aggregatedValue;
}
}]
Hello nostrom,
Please review the following example whether it fits your needs.
Let us know if you need further assistance.
Best Regards,
Todor
jQWidgets Team
https://www.jqwidgets.com
You must be logged in to reply to this topic.