Hello!
I'm trying to customize RadTabStrip tab's appearance using the TabTemplate property. But it looks like this property doesn't work at all. I implemented a class to be used as a template:
Then when I'm trying to use it as a TabTemplate
it doesn't work.
I've tried to test if the TestTabTpl class works using RadGrid:
And it works like a charm!
Could you please verify if I'm using this property correctly or confirm that it can not be used from code?
Thank you!
I'm trying to customize RadTabStrip tab's appearance using the TabTemplate property. But it looks like this property doesn't work at all. I implemented a class to be used as a template:
public class TestTabTpl : ITemplate{ public void InstantiateIn(Control container) { // TODO: Implement this method Label lblCtrl = new Label(); lblCtrl.Text = "Text message"; container.Controls.Add(lblCtrl); }}Then when I'm trying to use it as a TabTemplate
protected void Page_Load(object sender, EventArgs e){ foreach (RadTab tab in RadTabStrip1.Tabs) { tab.TabTemplate = new TestTabTpl(); }}I've tried to test if the TestTabTpl class works using RadGrid:
protected void Page_Load(object sender, EventArgs e){ foreach (GridBoundColumn col in RadGrid1.Columns) { col.FilterTemplate = new TestTabTpl(); }}And it works like a charm!
Could you please verify if I'm using this property correctly or confirm that it can not be used from code?
Thank you!