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

RadDateInput - how to disable AutoComplete

2 Answers 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eduardo Dulanto
Top achievements
Rank 1
Eduardo Dulanto asked on 27 May 2010, 02:42 PM

Respected Developers,

I am looking for a way to disable the AutoComplete feature of a RadDateInput control.  I can't achieve it.  this is what I have tried:

 

<telerik:RadDateInput runat="server"
ID="DatePlanned"
AutoPostBack="false"
autocompletetype="Disabled"
OnTextChanged="LineDetailDatePlanned_TextChanged"
DateFormat="MM/dd/yyyy"
TabIndex="6"
style="width:105px;height:22px;border: 1px solid #80A0C0;font-family:Arial;font-size:10pt;padding:2px;color:Black;text-align:center;"
IncrementSettings-InterceptArrowKeys="false"
IncrementSettings-InterceptMouseWheel="false" />

 

 


Your help will be appreciatted.

Eduardo Dulanto

 

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 May 2010, 07:52 AM
Hello,

I guess you are referring to built-in date parsing mechanism of RadDateInput control. You could disable this feature by adding following client code on page as described in the forum.

client code:
 
<script type="text/javascript">  
    Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, baseDate)  
    {  
        if (new Date(value) != "NaN")  
            return new Date(value);  
        this.set_textBoxValue(value);  
    }  
</script> 

Regards,
Princy.
0
Eduardo Dulanto
Top achievements
Rank 1
answered on 01 Jun 2010, 02:12 PM
Dear princy,  Thanks for your reply.  After looking and looking for a solution, I found that what I was looking for was:

autocomplete

 

 

="off". This setting will suppress the aoto-complete feature.  This is different from regular asp:textboxes where the analogus property is: autocompletetype="Disabled".

 

 

 

 

 

 

 


Kind regards,

Eduardo Dulanto.

 

Tags
General Discussions
Asked by
Eduardo Dulanto
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Eduardo Dulanto
Top achievements
Rank 1
Share this question
or