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

script to enable / disable RadRating

2 Answers 60 Views
Rating
This is a migrated thread and some comments may be shown as answers.
bobby
Top achievements
Rank 1
bobby asked on 24 Dec 2009, 02:59 PM
hello !
How to enable a RadRating client object ?
I have try "set_readOnly(false)" and "_enabled = true"  but  nothing happed.


2 Answers, 1 is accepted

Sort by
0
bobby
Top achievements
Rank 1
answered on 24 Dec 2009, 03:07 PM
I have just found the method to do this.

ratingObj._enableRatingControl(ratingObj)

Thank you !
0
Svetlina Anati
Telerik team
answered on 24 Dec 2009, 03:31 PM
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.
Tags
Rating
Asked by
bobby
Top achievements
Rank 1
Answers by
bobby
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or