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

[Solved] Restrict users to enter text in RadDropdown when on demand is implemented

1 Answer 88 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ram
Top achievements
Rank 1
Ram asked on 28 Nov 2009, 02:23 PM

Hi,

 

Following is my code for ondemand drop down implementation. This implementation allowing user to enter text in combobox. My requirement is user should not allow to enter text.


 

<telerik:RadComboBox ID="cmbUptiering" runat="Server" EnableEmbeddedSkins="true" ZIndex="500001" Skin="Default" AllowCustomText="false" EnableLoadOnDemand="true" EmptyMessage="ALL">

                                                                               
<WebServiceSettings Method="GetClient" />

                                                                           
</telerik:RadComboBox>

 

 

Please help.

 

Regards,

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 30 Nov 2009, 11:55 AM
Hi Ram,

Please handle the client-side Load event as shown below to achieve this:

function onLoad(sender) {
sender.get_inputDomElement().readOnly = "readonly";
}

Regards,
Simon
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
ComboBox
Asked by
Ram
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or