script to enable / disable RadRating

3 posts, 0 answers
  1. bobby
    bobby avatar
    2 posts
    Member since:
    Jun 2009

    Posted 24 Dec 2009 Link to this post

    hello !
    How to enable a RadRating client object ?
    I have try "set_readOnly(false)" and "_enabled = true"  but  nothing happed.


  2. bobby
    bobby avatar
    2 posts
    Member since:
    Jun 2009

    Posted 24 Dec 2009 Link to this post

    I have just found the method to do this.

    ratingObj._enableRatingControl(ratingObj)

    Thank you !
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 24 Dec 2009 Link to this post

    Hello bobby,

    Indeed, the method you have found will do the trick but I strongly recommend to use the public set_enabled method - it has some additonal custom logic in it that will handle all the scenarios. Furthermore it is always recommended not to use private methods but only public ones for reliability because the private ones are considered for internal use and could be modified, refactored, etc in a manner that might cause troubles in future upgrades if they are used while we always keep the public ones backwards compatible. I want also to inform you that we are currently working on improving the RadRating documentation and adding javascript intellisense for all RadControls in order to save our clients time and efforts in such cases.

    Regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top