Jul 24, 2013, 2:16 PM
[CLOSED] gridpanel - css set in ViewReady handler functions not getting applied
Hi
I have a gridpanel which has group headers.
Through GroupHeaderTpl () we have set css class to them.
I further wanna apply css class to the container div of our tpl div.
for this we have i have written following javascript fucntion
But the css is not applied.
I have a gridpanel which has group headers.
Through GroupHeaderTpl () we have set css class to them.
X.Grouping().GroupHeaderTpl(X.XTemplate()
.Functions(fs => fs.Add(new JFunction() { Name = "isX", Fn = "isX" }))
.Html(@"<div <tpl if=""this.isX(groupValue, children)"">class=""clsnm""</tpl>>
Group: {name}
</div>")
)
it looks like (image 1)I further wanna apply css class to the container div of our tpl div.
for this we have i have written following javascript fucntion
function setHeader() {
$('.clsnm').each(function (i, obj) {
obj.parentNode.parentNode.className += ' parentclsnm';
});
}
and have called this function in VewReady and AfterRender listeners of gridpanel.But the css is not applied.
Last edited by Daniil; Jul 30, 2013 at 4:11 AM.
Reason: [CLOSED]