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

Re rate after post back

5 Answers 48 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Rick asked on 30 May 2011, 02:43 PM
I can re rate after a post back just fine, the second I throw it in an update panel no more re rating. 

This does not seem like it should be, as I would think submitting a rating with an ajax request would be common.

What am I missing?

5 Answers, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 31 May 2011, 01:29 PM
Hello Rick,

Please, review the attached sample page with a RadRating control within an UpdatePanel. The counter below the rating will display the number of rated events executed. Please, compare this implementation with then one that you have on your side and check what may be going wrong.
Also make sure there are no JavaScript errors on the page, as they may prevent the proper working of the controls.

Hope this helps.

Regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Rick
Top achievements
Rank 1
answered on 31 May 2011, 05:47 PM
I was trying to use the radajax panel and it wasn't working.

I used the traditional asp update panel and all seems to be working.

Also any issues with having this functionality work within a repeater?

I can't seem to have it fire.
0
Niko
Telerik team
answered on 02 Jun 2011, 02:30 PM
Hello Rick,

Please, find attached an updated version of the previous attachment with incorporated RadRating within repeaters and within RadAjaxPanel. Please, review the sample and test it on your end and check if there is still an error.

Let me know of the outcome.

Regards,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Rick
Top achievements
Rank 1
answered on 02 Jun 2011, 03:01 PM
Okay that works but what I was wanting to do is have each item within the repeater have it's own update so I didn't need to rebind the repeater after each possible rating.

Thanks for the support on this, really helpful to be able to communicate with the developers.
0
Niko
Telerik team
answered on 02 Jun 2011, 04:19 PM
Hello Rick,

Now I see what setup are you trying to accomplish. I tried to recreate it and it appears to be working correctly. Maybe the point that you have been missing is to prevent the data-binding of the repeat if the request is a postback. Please, find attached the next iteration of changes (note that the changes are incorporated in the outsideRepeater only).

Hope this will resolve your issues.

All the best,
Niko
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Rating
Asked by
Rick
Top achievements
Rank 1
Answers by
Niko
Telerik team
Rick
Top achievements
Rank 1
Share this question
or