This is a migrated thread and some comments may be shown as answers.

how to stop postback on tab selection/click

2 Answers 249 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Shameem Jawed
Top achievements
Rank 1
Shameem Jawed asked on 30 Aug 2009, 10:42 PM
Hi,
I am assigning all the fields from the property of an object in my rad tab pages, and I am doing it on the load of the page. When I click on the tab, it does postback and the whole page refreshes, which is not required, as I am not sending any value to DB or any other control. Please let me know how to avaid such a autopostback or page reload on tab selection on the radtab control.

Its very urgent, please do reply soon....

Thanks,
Shameem

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Aug 2009, 06:02 AM
Hi Shameem,

Have you attached TabClick event to RadTabStrip? If so remove that and see whether it is not post-backing on clicking the tab. In my scenario, When I add TabClick event, postback is performed even if you set the AutoPostBack to False.

-Shinu.

0
Shameem Jawed
Top achievements
Rank 1
answered on 01 Sep 2009, 12:01 PM
Hi Shinu,

Thanks a lot for your reply... Yes I am subscribing to that click event. I tried by unsubscribing the same with autopostback false.. It worked.

BUT I have another issue which is caused by this... Earlier I was reseting the values of respective tabs on the basis of the tab index value which I used to get on the tab click... Please let me know in this case how to get the tab index value when I am not subscribing to that event anymore...

Any quick help will be deeply appreceated!!!!

Many Thanks,
Shameem
Tags
TabStrip
Asked by
Shameem Jawed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Shameem Jawed
Top achievements
Rank 1
Share this question
or