Infragistics WebTab control is very versatile and offers rich server- and client-side model. Among client-side events are
SelectedIndexChanged
– fires after user has changed the tab to provide ways to interact with newly selected tabSelectedIndexChanging
– fires before user has changed the tab to provide ways to interact with currently selected tab and to give user a chance to cancel change.
Both work fine if user manually changes tabs by clicking on tab headers, but call to client-side set_selectedIndex()
function (which changes tabs programmaticaly) only fires SelectedIndexChanged
, skipping SelectedIndexChanging
altogether. But there’s a way to make it work.
Continue reading →