How to set the WebTab's selected index client side?
I got it worked.
Thank you very much Tsanna.
Hi Bala,
On button click the approach is similar. You just need to get reference to the WebTab object on the client, for instance: var tab = $find("WebTab1") and use the same method to set the selected index. If you need further assistance, please let me know.
Regards,
Tsanna
Dear Tsanna,
Thanks for your reply.
This code can be used to set the selected index for the first time.
But I want to set it on a button click event in javascript.
In UltraWebTab we use to set it as below:
igtab_getTabById('UltraWebTab1').setSelectedIndex(4);
I want something like this.
Please help me on the same.
Hello Bala,
You can set it on WebTab Initialize client-side event by accessing the set_selectedIndex method through the sender object, for instance:
function tab_init(sender, args) { sender.set_selectedIndex(1); }
If you need further assistance, please let me know.