Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142383 | Jan 31,2019 02:07 AM UTC | Feb 1,2019 04:51 AM UTC | ASP.NET MVC - EJ 2 | 3 |
![]() |
Tags: Tab |
@Html.EJS().Tab("ej2Tab").Items(@Viewbag.items).Selected("tabSelected").Render()
<script>
function tabSelected(e) {
if(e.selectedIndex === 2){ // check the selected Index
setTimeout(() => {
var chartEle = document.querySelector('.e-tab .e-content #e-content_' + ((e === undefined || e === null) ? 0 : e.selectedIndex) + ' .e-chart');
var chartObj = chartEle.ej2_instances[0];
chartObj.refresh(); // refreshed chart object on tab selection
}, 400);
}
}
</script> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.