how to stop postback on tab selection/click

3 posts, 0 answers
  1. Shameem Jawed
    Shameem Jawed avatar
    6 posts
    Member since:
    Aug 2009

    Posted 30 Aug 2009 Link to this post

    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. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Aug 2009 Link to this post

    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.

  3. Shameem Jawed
    Shameem Jawed avatar
    6 posts
    Member since:
    Aug 2009

    Posted 01 Sep 2009 Link to this post

    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
Back to Top