preventing a page refresh with multiple radrating controls

2 posts, 0 answers
  1. ian lipsky
    ian lipsky avatar
    21 posts
    Member since:
    Apr 2006

    Posted 03 Feb 2012 Link to this post

    I have a .net listview in which i placed a radrating control. For each record in the listview a radrating control gets rendered. When someone clicks on the control to submit a rating, the whole page refreshes. I was wondering if anyone could suggest what i might be missing that's causing the whole page to refresh? I thought one of the great benefits of the telerik controls is that i just need to drop a scriptmanager on the page and it handles all the postback events.

    If there's an online tutorial which demonstrates this, please post the link. Otherwise I am open to any suggestions.

  2. Slav
    Slav avatar
    1359 posts

    Posted 08 Feb 2012 Link to this post

    Hello Ian,

    Please specify whether you want to use the Client-Side API or the Server-Side API of the RadRating control. To manage the rating control on the client, you can set its property AutoPostBack to false and use the methods, listed in this help article in order to implement the desired logic. If the RadRating's AutoPostBack property is set to true, the control will initiate postback every time one of its items is clicked and you will be able to use its server-side events.

    In case you want handle the RadRating on the server and to achieve dynamical functionality, you can AJAXify the control via RadAjaxManager, RadAjaxPanel or UpdatePanel. The following online demos show such setup:
     - Rating / RadRating in RadGrid;
     - Rating / First Look;

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top