prevent radpanelbar from refresh

4 posts, 0 answers
  1. Richard
    Richard avatar
    9 posts
    Member since:
    May 2013

    Posted 15 May 2013 Link to this post

    hi all,

    i have a radpanelbar bind with datasource during pageload. when i click on the item, the screen auto refresh again.

    how do i prevent the page from reload/refresh after clicked?

    appreciate any inputs. thanks!


  2. Kate
    Kate avatar
    1898 posts

    Posted 20 May 2013 Link to this post

    Hi Richard,

    Thank you for contacting us.

    In general a clicking of the RadPanelItem should not cause a postback of the page unless you attach the OnItemClick server side event. Can you please provide more details on your scenario or a very simplified runnable page so I can get the behavior that you have from my side? Thus I can inspect it locally and help you out in the most effective way.  

    Thank you in advance for your cooperation.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Sandy
    Sandy avatar
    3 posts
    Member since:
    Jun 2014

    Posted 04 Dec 2015 Link to this post

    Hi Kate,

    Even I am having the same issue, where rad panel bar has "OnItemClick" server side event.Is there any way to stop the post back on it item click.Please help on this.




  4. Ivan Danchev
    Ivan Danchev avatar
    2184 posts

    Posted 09 Dec 2015 Link to this post

    Hello Sandhya,

    If you don't want clicking on the PanelBar's items to initiate a postback do not subscribe to the server-side OnItemClick event. You can subscribe to the OnClientItemClicking and OnClientItemClicked client-side events:
    <script type="text/javascript">
        function OnClientItemClicked(sender, args) {
        function OnClientItemClicking(sender, args) {
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" OnClientItemClicked="OnClientItemClicked" OnClientItemClicking="OnClientItemClicking">
                <telerik:RadPanelItem Text="Item1" Value="1">
                        <telerik:RadPanelItem Text="Child1" Value="c1"></telerik:RadPanelItem>
                <telerik:RadPanelItem Text="Item2" Value="2">
                <telerik:RadPanelItem Text="Item3" Value="3">

    Ivan Danchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top