Hi,
I am converting my Ultrawebtab to Webtab (2011 Vol1). I have a menu and a tab in a page. When i click on a menu i will open a new tab. I have created 5 dummy tabs for which the ContentURL is empty and it will be hidden when the page is loaded first. Depending on the menu item i click i will set the text, image and ContentURL for it in client-side. I have the following questions
1) I am able to set the values for the Text and ContentURL but i am not able to set imageurl in client-side. How to do it?
2) If i click on a menu item, i am first checking whether a tab for that Menu is already opened (or) not. If it is opened, then i will give focus to that tab by setting the value of selected index for that tab. When the focus is set to that tab, the content in that tab gets refreshed. This should not happen. How to avoid postback?.
3) How do i access the a text box value present within the tab control from the parent page where the tab is hosted?
Code:
<ig:WebTab ID="tabWO" runat="server" Height="100%" Width="100%" EnableAjaxViewState="False" DisplayMode="Scrollable">
<tabs>
<ig:ContentTabItem runat="server" Text="Sample" BorderStyle="None" ScrollBars="Hidden" ContentUrl="Sample.aspx" Font-Names="Verdana" Font-Size="8pt">
</ig:ContentTabItem>
<ig:ContentTabItem runat="server" Text="Sample1" BorderStyle="None" ContentUrl="Sample1.aspx" Font-Names="Verdana" Font-Size="8pt">
<ig:ContentTabItem runat="server" Text="" Hidden="true" BorderStyle="None" ScrollBars="Scroll" ContentUrl="" Font-Names="Verdana" Font-Size="8pt" >
<ig:ContentTabItem runat="server" Text="Dummy" Hidden="true" BorderStyle="None" ScrollBars="Scroll" ContentUrl="" Font-Names="Verdana" Font-Size="8pt" >
</tabs>
<PostBackOptions EnableLoadOnDemand="false" EnableReloadingOnTabClick="false" />
</ig:WebTab>
Thanks,
Raja.
Hi Raja,
1. It seems to me that imageUrl property is not present in the CSOM of WebTab.
2. To avoid the postback, set AutoPostBackFlags-SelectedIndexChanged="Off".
3. You can access a textbox inside of a ContentTabItem, using the following syntax:
((TextBox)WebTab1.Tabs[0].FindChildControl("TextBox1")).Text = "Text";
Thanks for the reply. By setting the AutoPostBackFlags-SelectedIndexChanged="Off" it's working. Is there a way to access the textbox inside a ContentTabItem in client side?
Raja