I have a aggregate field with count
On the aggregate cell it is written as Count 10
How can I remove this Count and show only 10
and also I would like to change the background color of this cell only.
I have a aggregate field with count
On the aggregate cell it is written as Count 10
How can I remove this Count and show only 10
and also I would like to change the background color of this cell only.
If you obviously want to remove the aggregate label only for the certain field(s), then you need remove the PHP code in "Page_Load" server event above, and then make sure you have already included the row id of the field in the "Startup Script" code, for example:
// assume the table name is "table1" and the field name is "Jumlah1", adjust it to yours
$("td #elf_table1_Jumlah1 span").removeClass("ewAggregate");
$("td #elf_table1_Jumlah1 span").html("");
You can try to hide the the <span> with the aggregate class by the column field name.
For example, if the "Count: " is exists under the field "model" column, you can hide it by below code.
$('[data-name="models"]').find(".ewAggregate").hide();
[data-name="models"] will select all the TD of the model field.
.find(".ewAggregate") will get the <span> with class="ewAggregate" and hide it.