Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
175
Upgrading from UltraWebTab to WebTab
posted

Hi,

My original code was using UltrawebTab

UserControls_GridControl gridUC = UltraWebTab.Tabs.FromKeyTab(tabItem.Key).ContentPane.UserControl as UserControls_GridControl;

Now I upgraded my code to use WebTab from Infragistics.Web.UI.LayoutControls
I have tried following wasy to get the usercontrol but everytime gridUC = null

UserControls_GridControl gridUC = webTab.Tabs.FindTabFromKey(tabItem.Key).FindControl(tabItem.ClientID) as UserControls_GridControl;

and

 string userControlUrl = tabItem.UserControlUrl;

UserControls_GridControl gridUC = webTab.Tabs.FindTabFromKey(tabItem.Key).FindControl(userControlUrl) as UserControls_GridControl;

           
I have been struggling to get this working. Appreciate your help

DK

 

Parents
  • 13438
    Suggested Answer
    posted

    Hello dKaul

    Please take a look at the attached sample. It is showing how to get WDG from the second tab of a WebTab. I see you are using custom controls and since i am not familiar with the code of your control i can not provide any suggestions why it does not work. If you have further questions please attach a sample code. I will have to reproduce the behavior on my own and see what could be causing it.

    WT_get_tab.zip
Reply Children
No Data