Rating Conflict with Subgurim

3 posts, 1 answers
  1. Lynn
    Lynn avatar
    186 posts
    Member since:
    Sep 2006

    Posted 29 May 2011 Link to this post

    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. Answer
    Niko
    Admin
    Niko avatar
    387 posts

    Posted 30 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lynn
    Lynn avatar
    186 posts
    Member since:
    Sep 2006

    Posted 30 May 2011 Link to this post

    Niko,

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

    Lynn
Back to Top