jQuery UI Widgets Forums Navigation Tabs Dynamic Tabs + Paging

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 9 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Dynamic Tabs + Paging #60965



    I have a page where I have Tab with 3 fixed tabs and other Tabs I am adding based on recordId from Database.

    So it’s combination of Fixed tabs [Tab1, Tab2, Tab3] and I am adding Tabs dynamically between Tab1 and Tab 2
    i.e [Tab1,DynamicTab1,DynamicTab1,…., Tab2,Tab3]

    I am implementing JavaScript paging on the Form [First,Next,Pre,Last]

    So first time as per current Index and recordId , my page renders [Tabs and other controls on page] fine, but when I click on “Next”

    It looks like it;s get data from my service Ajax Calls, but I am getting exception on Tab rendering.

    Do I have to render my Tabs again?
    How I can check if Tab is already rendered i.e something like .IsJQXTab()?

    appreciate any help

    Code: $(‘#jqxFinalTabs’).jqxTabs({ width: ‘97%’, showCloseButtons: false, initTabContent: initFinalTabContents});
    ERROR: 0x800a138f – Microsoft JScript runtime error: Unable to get value of the property ‘0’: object is null or undefined
    Line in jqx-all.js file : this._contentWrapper[0].style.width=”100%”
    Version: 3.5


    Dynamic Tabs + Paging #61026


    Hello panky,

    You can create a flag variable (called, for example, isInitialized) and set it to true after the tabs initialization. You can check this variable when you need to know whether the tabs have been initialized. If this does not solve your issue, please provide more details and a code sample which illustrates it.

    Best Regards,

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.