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

How to access attributes when inputType = Text

1 Answer 51 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Glen
Top achievements
Rank 1
Glen asked on 09 Sep 2014, 05:37 PM
Is there a way to access the attributes when the input type is set to "Text" because I am getting an error when trying to retrieve an attribute using the sample code "alert(args.get_entry().get_attributes().getAttribute("attr"));"

I am getting a  JavaScript runtime error: Object doesn't support property or method 'get_entry' .... any thoughts would truly be appreciated.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 12 Sep 2014, 02:17 PM
Hello Glen,

The reason for the experienced error is the fact that the get_entry method does not exist in the Text InputType context, like described in the following documentation article :

http://www.telerik.com/help/aspnet-ajax/autocompletebox-onclienttextchanged.html

Regards,
Nencho
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AutoCompleteBox
Asked by
Glen
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or