hi all,
i have placed the tab container in side a datagrid. tab container will appear in the item command of datagrid. if i set the active tab index as zero. i got some error.
57 line 17 char
argument out of range exception
1495 line 38 char
this.get_element().style is null or not an object.
if i remove that active tab index property tab container works fine.
how to close the tab container?
please help me
Balaji
Hi Balaji,Can you show me your relevant code so that I can reproduce your issue?
A stripped simpler version of your code would be better.
Looking forward to your reply.
hi,
here is my code snippet
protectedvoid dlHostels_ItemCommand(object source,DataGridCommandEventArgs e){
tabcontainer tbc=new tabcontainer();
tbc = (TabContainer)dlHostels.Items[e.Item.ItemIndex].FindControl("TabContainer1");Label lblInfo =newLabel();
TabPanel tp = new tabpanel();
tp.controls.add(lblinfo);
tbc.controls.add(tp);
//i have added three panels to this tabcontainer.
tbc.activetab=0; // problem with this tabindex. if i didnt mention anything then it works fine.
}
No comments:
Post a Comment