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

preventing a page refresh with multiple radrating controls

1 Answer 52 Views
Rating
This is a migrated thread and some comments may be shown as answers.
ian lipsky
Top achievements
Rank 1
ian lipsky asked on 04 Feb 2012, 05:12 AM
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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 08 Feb 2012, 04:10 PM
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;

Greetings,
Slav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Rating
Asked by
ian lipsky
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or