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

How to avoid cursor in Rad Combo Box

2 Answers 56 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Palanivelrajan
Top achievements
Rank 1
Palanivelrajan asked on 17 May 2013, 01:25 PM
Dear All,

We are using the Rad Combo Box in our application. on click, It shows the cursor in the combobox which looks as if it is editable combo to the end user. Kindly guide me to remove/avoid cursor from the Rad Combo box.

With Regards
L.Palanivelrajan

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 May 2013, 04:13 AM
Hi,

The caret would not be shown only if the input is disabled. You could do that on the RadComboBox's input field, but then you would not get the drop down list opened when the input is clicked, it will only open when the arrow on the input's right side is clicked.
Please try the following javascript.
JS:
<script type="text/javascript">
function pageLoad()
 {
    var radcombo = $find("<%=RadComboBox1.ClientID %>");
    var input = radcombo.get_inputDomElement();
    input.disabled = "disabled";
 }
</script>

Hope this will help.
Thanks,
Princy.
0
Palanivelrajan
Top achievements
Rank 1
answered on 24 May 2013, 01:54 PM
Dear Princy

Thanks for the timely reply. it works for me. only thing is control background color becomes grey when click on arrow and vanish after selection. Once again thanks for timely reply.

With Regards
L.Palanivelrajan
Tags
ComboBox
Asked by
Palanivelrajan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Palanivelrajan
Top achievements
Rank 1
Share this question
or