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

radcombox issue

1 Answer 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prab
Top achievements
Rank 1
Prab asked on 06 Feb 2012, 10:30 AM
 <telerik:RadComboBox ID="RadcboCourse" AllowCustomText="false" EnableTextSelection="false" runat="server" Width="186px" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged" />




how to hide cursor inside combobox....

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 06 Oct 2012, 09:18 AM
Hi Prab,

The cursor is controlled only by the browser. The only way to hide it is to disable the input of the RadComboBox as follows.

ASPX:
<telerik:RadComboBox ID="RadcboCourse" AllowCustomText="false" EnableTextSelection="false" runat="server" Width="186px" DataSourceID="SqlDataSource1" DataTextField="text">
</telerik:RadComboBox>

JS:
<script type="text/javascript">
    function pageLoad() {
        var combo = $find("<%= RadcboCourse.ClientID %>");
        var input = combo.get_inputDomElement();
        input.disabled = "disabled";
    }
</script>

Hope this helps.

Regards,
Princy.
Tags
General Discussions
Asked by
Prab
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or