Hi,
I want to achieve below functionality from both client side and server side.
I have registered TabClick event so that I can reload the data shown in a tab. But when I click on first tab then I don't want a post back on server i.e. that tab only contains static data for which I'll not like to have a server hit. I tired implementing OnClientTabSelecting event where in I wrote the code:
But the tab does not gets selected, the previous selected tab remains selected. Can someone help me out? If I remove the code then post back occurs which is not the required functionality.
Thanks and Regards,
Jaimin
I want to achieve below functionality from both client side and server side.
I have registered TabClick event so that I can reload the data shown in a tab. But when I click on first tab then I don't want a post back on server i.e. that tab only contains static data for which I'll not like to have a server hit. I tired implementing OnClientTabSelecting event where in I wrote the code:
var
selectedTabIndex = eventArgs.get_tab().get_index();
alert(
"tab index : " + selectedTabIndex);
if(selectedTabIndex == 0)
{
eventArgs.get_tab().set_selected = true;
eventArgs.get_tab().set_visible = true;
eventArgs.set_cancel(
true);
}//if
But the tab does not gets selected, the previous selected tab remains selected. Can someone help me out? If I remove the code then post back occurs which is not the required functionality.
Thanks and Regards,
Jaimin