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

Problem firing Rate event

1 Answer 77 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Joshua Pena
Top achievements
Rank 1
Joshua Pena asked on 17 Mar 2010, 06:23 PM
I have a very simple use of the RadRating control as follows :

            <asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional"
                <Triggers> 
                    <asp:AsyncPostBackTrigger ControlID="Rating1" EventName="Rate" /> 
                </Triggers> 
                <ContentTemplate> 
                    <div> 
                        <telerik:RadRating ID="Rating1" runat="server" Skin="Windows7" Precision="Item" OnRate="Rating1_Rate" AutoPostBack="true"  /> 
                    </div> 
                </ContentTemplate>
            </asp:UpdatePanel> 

The server side event handler just grabs the rating value and adds it to a database table. When the page loads, i initially load the RadRating control's value to display the average rating for the item being viewed. The problem i have is say the average rating is 4 exactly, and someone tries to give a rating of 4, the Rate even will not fire. If i rate anything else but 4, the rate event will fire and everything works fine, the problem only happens when trying to click the same rating that is being displayed. If someone rates the same value, i would still like to capture that value, but cannot do so because of this.


1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 23 Mar 2010, 01:09 PM
Hello Joshua Pena,
The current implementation of the rate server and rated client-side event of the rating control is the same as a value change event. From your explanation, I understand that you expect this event to be rather like a click event. I will log your suggestion and we will change the behavior for the first service pack.

I have updated your Telerik points for the suggestion.

Sincerely yours,
Tsvetie
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Rating
Asked by
Joshua Pena
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or