May 17, 2013, 12:58 PM
[CLOSED] Custom Grid Group Header Text
Hello,
I am trying to set grid group header text based on the group records' common values. In other words, let's say I am grouping the grid by an Event ID and I want to show a text derived depending on the Event ID whose details reside in another store. If I wanted to set a static text, I can do it using the Html tags of <GroupHeaderTpl ...><Html>Text Here</Html></GroupHeaderTpl> ... I also saw <Functions><ext:JFunction..../></Functions> which I hopefully thought might be helpful to do what I want.
Below is a sample configuration. Can you direct me to a sample where I can set GroupHeader text depending on its {name} property?
I am trying to set grid group header text based on the group records' common values. In other words, let's say I am grouping the grid by an Event ID and I want to show a text derived depending on the Event ID whose details reside in another store. If I wanted to set a static text, I can do it using the Html tags of <GroupHeaderTpl ...><Html>Text Here</Html></GroupHeaderTpl> ... I also saw <Functions><ext:JFunction..../></Functions> which I hopefully thought might be helpful to do what I want.
Below is a sample configuration. Can you direct me to a sample where I can set GroupHeader text depending on its {name} property?
<Features>
<ext:Grouping ID="Grouping1" runat="server" HideGroupedHeader="true" StartCollapsed="true">
<GroupHeaderTpl runat="server" Enabled="true">
<Functions>
<ext:JFunction Handler="return 'i do not know how to call and set html';" Name="testMe"></ext:JFunction>
</Functions>
<Html>
static text is ok
{testMe()} // ???????
</Html>
</GroupHeaderTpl>
</ext:Grouping>
</Features>
Thanks.
Last edited by Daniil; May 17, 2013 at 3:44 PM.
Reason: [CLOSED]