Hi Michael,
Thanks for your update.
We have checked your provided code. In that, you have tried to get the value from hdn variable using “splice()” method and assign that to “hiddenItemIndex” property via setModel.When we assign same value to hiddenItemIndex property,the setModel will not be fired. So you can “slice()” jquery method instead using “splice()” method.Please find the code for the same:
<code>
<script type="text/javascript">
var tabObj,hdn
function onclick(args){
tabObj = $("#apiTab").data("ejTab");
hdn = tabObj.option("hiddenItemIndex");
var i=1;
var j=hdn.indexOf(i);
var val=hdn.slice(0,j);
tabObj.option("hiddenItemIndex",val);
tabObj.showItem(i);
}
</script>
</code>
We have modified the sample based on your requirement and it is available under the following link:
Regards,
Kasithangam