Prevent a specific button from performing postback

2 posts, 1 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 27 Sep 2012 Link to this post

    hii,
    I want to Prevent a specific button in RadToolBar from performing postback.How can I achieve this?

    regards
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Sep 2012 Link to this post

    Hi Sigma,

    You can set the PostBack property to false for the item for which you want to prevent postback.

    ASPX:
    <telerik:RadToolBar ID="" runat="server">
        <Items>
           <telerik:RadToolBarButton Text="RadToolBarButton1" ></telerik:RadToolBarButton>
           <telerik:RadToolBarButton Text="RadToolBarButton2" PostBack="false"></telerik:RadToolBarButton>
        </Items>
    </telerik:RadToolBar>

    Hope this helps.

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top