I am setting up my AutoComplete via MVC Wrappers. On a certain event, I want to be able to change the placeholder text for this autocomplete. However,
I am not sure where and how to set this. I've tried the following but doesn't work.
>> $('lsel_l3').data('kendoAutoComplete').options.placeholder = 'new value';
the value always shows up as "undefined" in the debugger with IE 9
The snippet below shows the setup.. Thanks in advance.
@(Html.Kendo().AutoComplete()
.Name("lsel_l3")
.DataTextField("Name")
.Filter("contains")
.Placeholder("District")
.MinLength(3)
.HtmlAttributes(new { style = "width:250px" })
.DataSource(source => {
source.Read(read =>
{
read.Action("LocationAutoComplete", "DcmSelectors", new { area = "" })
.Data(@<text>function(e) {return lsel.GetL3AutoCompleteParams(e,lsel);}</text>);
})
.ServerFiltering(true);
})
.Events(events => events.Select(@<text>function(e) {return lsel.OnL3AutoCompleteSelect(e,lsel);}</text>)
.Change(@<text>function(e) {return lsel.OnL3AutoCompleteChange(e,lsel);}</text>))
)