RadComboBox + jQuery

by ASP.NET AJAX Team | Comments 3

Do you think that RadComboBox animations are boring? We can spice them up

with a little  help from jQuery.

Let's make the dropdown fade for example - This can be done very easily

using the fadeIn, fadeTo and fadeOut jQuery methods. You can download a

sample project for more details.

We can also animate the text of the items. All you need  to do is to

animate the padding-left css attribute of the item's DOM element. The

following script shows how the text can be moved when you hover over the

item:

$('.rcbItem')

.mouseover(function(){

         $(this).stop().animate({paddingLeft:"54px"}, {duration:500});

})

.mouseout(function(){

         $(this).animate({paddingLeft:"4px"}, {duration:500});

})

And the result is:

image

If you want to see more about our controls and jQuery you can refer to Vladimir Enchev's blog post about RadGrid  animation.

About the author

Iana Tsolova

Iana Tsolova

is Program Manager of Telerik’s ASP.NET AJAX division. She joined the company back in the beginning of 2008 as a Support Officer and has since occupied various positions at Telerik, including Senior Support Officer, Team Lead at one of the ASP.NET AJAX teams and Technical Support Director. Iana’s main interests are web development, reading articles related to geography, wild nature and latest renewable energy technologies.

3 Comments

Michael
I'd like to see an example that dynamically changes the width of the dropdown based on the widest item in the list using jQuery. That is one thing that is missing from the combo...
Brook
Are there plans to utilize JQuery to replace the animations used with Rad Comtrols?
Rosi F
Thanks for the great feedback, Michael. Although we don't think this could be easily done with jQuery we will log this request and consider it for implementation.

Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by ASP.NET AJAX Team - or - read latest articles in Developer Tools