Hi,
We are upgrading from Infragitics NetAdvantage 2010.2 to Infragistics NetAdvantage 2013.1. In previous version,
UltraWebTab was used and now we need to use WebTab as UltraWebTab is obslete.
1) Below is RoundedImage tag for UltraWebTab in our project
<RoundedImage FillStyle="LeftMergedWithCenter" HoverImage="[ig_tab_winXP2.gif]" LeftSideWidth="7"
NormalImage="[ig_tab_winXP3.gif]" RightSideWidth="6" SelectedImage="[ig_tab_winXP1.gif]"
ShiftOfImages="2" />
How to define RoundedImage tag for WebTab.
2) We have Default.aspx page which has WebTab and on one tab usercontrol is added using below code.
<ig:WebTab ID="UltraWebTab1" runat="server" Height="100%" Width="100%" OnDataBinding="UltraWebTab1_DataBinding" EnableViewState="True" OnSelectedIndexChanged="UltraWebTab1_OnSelectedIndexChanged">
<AutoPostBackFlags SelectedIndexChanged="On" />
<Tabs>
<ig:ContentTabItem runat="server" Text="Reports" Key="Reports" UserControlUrl="ReportList.ascx"></ig:ContentTabItem>
</Tabs>
<PostBackOptions EnableLoadOnDemandUrl="True" EnableAsyncUpdateAllTabs="True" EnableReloadingOnTabClick="True"></PostBackOptions>
< TabItemCssClasses CssClass="webTabStyle" ActiveCssClass="defaultTabStyle" SelectedCssClass="selectedTabStyle"></TabItemCssClasses>
</ig:WebTab>
Now, usercontrol has various controls like grid, textbox and method related to these grid.
Usercontrol CDF has a method A() and has grid named ABC
void A()
{
ABC.Datasource = CreateDataSource();
ABC.DataBind();
}
public CDF[] CreateDataSource()
...
and this A() method has to be called on Default.aspx page. When i was using UltraWebTab this usercontrol method was accessed as below
CDF aCDF = UltraWebTab1.SelectedTabObject.ContentPane.UserControl as CDF;
aCDF.A();
But with WebTab how it has to used. Tried with below method but controls are null.
CDF aCDF = UltraWebTab1.Tabs[0].Controls[0].Controls as CDF;
How do. Please guide.
Hello Renuka ,
I’m just following up to see if you’ve been able to resolve your issue. If you have any questions or concerns or if you need further assistance please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://www.infragistics.com/support
Have you had the chance to test the sample I’ve previously attached?
If the project does not work correctly, this indicates either a problem possibly specific to your environment, or a difference in the DLL versions we are using.
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Or, if this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.
Developer Support Engineer II
http://es.infragistics.com/support
On the default page, i just want all user control get initialized and i am able to access usercontrol specified method. Currently getting null in the usercontrol when tired with above line of code. Please guide
check with UserControl, still getting error of object cant be mapped.
Hello,
“WebUserControl” in the case of the attached sample is the name of the user control that you can find in the attachment: WebUserControl.ascx
So the following code gets the instance of the User Control, casts it to the related type, which is the name of the user control, and then calls a method specific to that user control:
WebUserControl c = (WebUserControl)this.WebTab1.Tabs[0].Controls[0].Controls[0];
c.CustomMethod();
Please open the attached sample, test it on your side and let me know if you have any questions.