Aug 28, 2014, 12:53 PM
[CLOSED] [#550] GroupHeaderTpl not working when gridpanel has GroupCommands
Hi,
Mine is an Asp.Net MVC razor view application.
I have a gridpanel to which I have GroupCommands (see below markup)
Kindly provide your inputs
Mine is an Asp.Net MVC razor view application.
I have a gridpanel to which I have GroupCommands (see below markup)
Html.X().ImageCommandColumn()
.Hidden(true)
.GroupCommands(
Html.X().GroupImageCommand()
.CommandName("viewNotes")
.Icon(Icon.ApplicationViewDetail)
.RightAlign(true)
.Text(Master.ViewNotes)
)
.Listeners(ls =>
ls.GroupCommand.Fn = "onGroupCommand"
)
Further I need to use GroupHeaderTpl (see below markup) Html.X().Grouping()
.HideGroupedHeader(false)
.GroupHeaderTpl(
Html.X().XTemplate()
.Functions(fs => fs.Add(new JFunction() { Name = "fun1", Fn = "fun1"}))
.Html(@"<div <tpl if=""!this.SetClass123(groupValue, children)"">class=""false""</tpl>>
Group: {name}
</div>")
)
The fun1() function is not called when the above mentioned group command is added to gridpanel. Kindly provide your inputs
Last edited by Daniil; Sep 16, 2014 at 5:59 PM.
Reason: [CLOSED]