We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Reload tabitem content

Hello,

How to reload the tabitem content by javascript? The content is loaded from an url.

Thanks!

3 Replies

AP Arun Palaniyandi Syncfusion Team November 20, 2015 10:36 AM UTC

Hi Jorge,

Thanks for contacting Syncfusion support,

Query:” How to reload the tabitem content by javascript? The content is loaded from an url.”

The content is loaded from the url by using the Url property that is set in the ej:tabitem tag. Thus, the tab content loaded from a url can be reloaded by using theShowReloadIcon property. When this property is set as true, then a refresh icon will appear in the tabitems and by clicking on it the contents will be refreshed.

Please find the attached sample,


http://www.syncfusion.com/downloads/support/forum/121220/ze/TabSamplenew-417130232


Regards,

Arun P.



JP Jorge Pampin November 23, 2015 08:02 AM UTC

Hello,

That is OK. But, I need refresh all or some tabs programmatically by javascript with a code like this: tabobject.items[12].refreshContent();

Thanks!


AP Arun Palaniyandi Syncfusion Team November 24, 2015 11:31 AM UTC

Hi Jorge,

Thanks for the update.


As mentioned earlier, content has been loaded from the given url by using Url property in the tab control. The tab content loaded from a url can be reloaded programmatically by using the javascript Ajax function and Tab ClientsideOnActive event. First, we got the Active index value through OnActive event, and then by button click event, the url value has been updated to the Tab contents, and thus the value of the particular tabitem is reloaded.


Please find the attached sample,

http://www.syncfusion.com/downloads/support/forum/121220/ze/TabSample1-448471572



Please let us know if you have further queries.


Regards,

Arun P


Loader.
Live Chat Icon For mobile
Up arrow icon