asp.net - How to Customize RadRating tooltip for each Star -


my question related customization of radrating tooltip each item. assinging value radrating in method. have show 1 star 2 values. e.g if value 6 3 stars should selected , have use 5 stars. code on server side assinging value radrating :

radratingcustomerup.value = (customer.rating != null) ? convert.todecimal(customer.rating / 2) : 0; 

while on markup :

<telerik:radrating id="radratingcustomerup" runat="server" precision="half" orientation="horizontal"                                          readonly="false">                                     </telerik:radrating> 

now how show tootip comes on hover of rating stars equal value. if value 7 3.5 stars selected , tooltip shows 3.5 want show tooltip according exact value (7) , if 2 stars selected tooltip must show 4 on hover

how can ?

the following client script override value displayed in tooltip of radrating. need place on page cusomized rating control.

    <script type="text/javascript">         var old_getitemvalue = telerik.web.ui.radrating.prototype._getitemvalue;          $telerik.$.extend(telerik.web.ui.radrating.prototype, {             _getitemvalue: function (item, checkoverparts) {                 var oldvalue = old_getitemvalue.apply(this, arguments);                 return oldvalue * 2;             }         });     </script> 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -