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

radcombo mouse click style

2 Answers 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ben White
Top achievements
Rank 1
Ben White asked on 25 May 2010, 11:51 AM
Hi,

I'm so close to getting this control to look exactly how I need it but am stuck on one final element.

When I mouse over and click on the radcombo box input I get the required styles (I have set a new skin and image)

Then, when I move away from the input and mouse over the list items, the style of the input reverts back to default (ie. not selected)
Is there anyway of scripting this so that whilst the mouse is over the list items that the main input retains its hover state?

Thanks, in desparation.

2 Answers, 1 is accepted

Sort by
0
Ben White
Top achievements
Rank 1
answered on 25 May 2010, 12:29 PM
Ok, so I got a little bit close.

I have added in open and close client events and move my background image style into the html.

Now I have two functions that work as below. My problem now is that I do not want the closed style to kick in until the slider is fully retracted into the select input. Is there any to assess the state of the sliding content to check for full retraction before the style is set back to the default?

Thanks.

 

function OnClientDropDownClosing(comboBox, args) {

 

 

var a = $('.rcbSlide');

 

 

if ( !a.is(':visible') ) {

 

$(

'.RadComboBox_Regular .rcbInputCellLeft').css('background-position','0px -35px');

 

}

}

 

function OnClientDropDownOpened(comboBox, args) {

 

$(

'.RadComboBox_Regular .rcbInputCellLeft').css('background-position','0px -70px');

 

}

0
Kalina
Telerik team
answered on 27 May 2010, 03:14 PM
Hello Ben White,

I am afraid that the RadComboBox behaviour that you are trying to implement is not officially supported.

However you can obtain the state of the control dropdown by handling the OnClientDropDownClosed event – naturally it rises when RadComboBox dropdown is closed.
Alternatively you can check the client-side property comboBox.get_dropDownVisible().

More details about RadComboBox client-side events and properties you can find here.

All the best,
Kalina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Ben White
Top achievements
Rank 1
Answers by
Ben White
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or