PDA

View Full Version : [CLOSED] Grid group text



bayoglu
Apr 26, 2013, 3:28 PM
Hi,

I have a question about grouping feature. I am trying to set a condition for specifying group text with no luck.

The one I tried is as below:



<Features>
<ext:Grouping ID="AssignedUsersGrouping" runat="server" HideGroupedHeader="true" StartCollapsed="false" GroupHeaderTplString='{[name == true ? "Inherited" : "Assigned"]} user rights: ({rows.length} User{[values.rows.length > 1 ? "s" : ""]})' />
</Features>


The '{[name == true ? "Inherited" : "Assigned"]} ' part does not work. The grouping field is of type 'Boolean'. What is the correct syntax for deciding the text to be printed depending on the grouing fields value? If I write just {name} it displays true / false values. I tried checking true, false, 'true', 'false' but none of them match the 'name' value.

Thanks.

Daniil
Apr 26, 2013, 6:15 PM
Hi @bayoglu,

Please use:

GroupHeaderTplString='{[values.name ? "Inherited" : "Assigned"]} user rights: ({children.length} User{[values.children.length > 1 ? "s" : ""]})'

bayoglu
Apr 26, 2013, 9:02 PM
Thank you Daniil, please close the thread.