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

Rating Conflict with Subgurim

2 Answers 59 Views
Rating
This is a migrated thread and some comments may be shown as answers.
Lynn
Top achievements
Rank 2
Lynn asked on 29 May 2011, 11:17 PM
I am encountering a conflict between your Rating control (.NET/AJAX) and the Subgurim Google Map Control.  Both of the controls co-exist peacefully and work fine UNTIL I attempt to use the "OnClientRated" event on your Rating control.  When I try to use this event, the Subgurim control will NOT display a map.  I am been trying to isolate this issue for over an hour and have successfully (I believe) got this down to attempting to use the "OnClientRated" event.  I have not tried any other "OnClient..." events with the Rating control to see if they also have the same problem.

What happens is that the Subgurim control just doesn't display a map.  See screen captures attached.

Here is the code that prevents the map from being displayed:
<telerik:RadRating ID="AvgRatingValue" OnClientRated="OnClientxRated();" ReadOnly="true" runat="server" Visible="true" Precision="Half" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadRating>
 
    <script type="text/javascript">
        function OnClientxRated(sender, args) {
            alert('The rating value was updated');
        }
    </script>

The above code will prevent the map from displaying.  All I have to do to get the map to display is to remove the property on the Rating control OnClientRated="OnClientxRated();".  Then the map displays just fine.

Do you see any problems with the above code?

The Subgurim URL: http://en.googlemaps.subgurim.net/ .  This is a free control and I have had no other weird problems.  It is getting good reviews out there on the Internet.

Thanks in advance for any assistance! 

Lynn


2 Answers, 1 is accepted

Sort by
0
Accepted
Niko
Telerik team
answered on 30 May 2011, 09:16 AM
Hello Lynn,

Please, note that the event handler should be the name of the function, i.e. it should be evaluated as a function, not the execution of the function itself. Otherwise you will get a JavaScript error (please, check that you indeed get an error). Therefore the setup should look like this:

<telerik:RadRating ID="AvgRatingValue" OnClientRated="OnClientxRated" ReadOnly="true" runat="server" Visible="true" Precision="Half" EnableEmbeddedSkins="true" Skin="Default" ></telerik:RadRating>

Hope this helps.


Greetings,
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
Lynn
Top achievements
Rank 2
answered on 30 May 2011, 02:28 PM
Niko,

Thank you very much.  That corrected the issue perfectly!  I was hoping it was something I was doing.

Lynn
Tags
Rating
Asked by
Lynn
Top achievements
Rank 2
Answers by
Niko
Telerik team
Lynn
Top achievements
Rank 2
Share this question
or