[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 661
  • Last Modified:

How can I customise the AJAX rating control?

Hi,

I have developed an asp.net web application using visual studio 2008 that has a listview frontend and an sql server 2005 database backend. I am using a linq to sql datacontext to connect to my backend db.

Within the ItemTemplate of my listview control I have dropped an AJAX rating control (attached code). As you can see from my code I have bound the control to a backend database column. Is there anyway that I can alter the rating control to accept double float data type values, like 3.4, instead of round int values like 3?

Thanks.
<ajaxToolkit:Rating 
                                                            ID="Rating1" 
                                                            runat="server"
                                                            CurrentRating='<%# Eval("trader_overall_rating") %>'
                                                            MaxRating="5"
                                                            StarCssClass="ratingStar"
                                                            WaitingStarCssClass="savedRatingStar"
                                                            FilledStarCssClass="filledRatingStar"
                                                            EmptyStarCssClass="emptyRatingStar" 
                                                            ReadOnly="true">
                                                        </ajaxToolkit:Rating>

Open in new window

0
aspnet-scotland
Asked:
aspnet-scotland
  • 2
1 Solution
 
Amandeep Singh BhullarCommented:
0
 
aspnet-scotlandAuthor Commented:
Unfortunately I have already persued those events with the ajax rating control and hit a brick wall.
0
 
aspnet-scotlandAuthor Commented:
I was able to customise the below control to meet my needs...

http://imar.spaanjaars.com/410/building-a-simple-rating-control-for-aspnet-20
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now