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

findItemByAttribute "ID"

2 Answers 77 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Martin Roussel
Top achievements
Rank 1
Martin Roussel asked on 10 Jan 2013, 03:00 PM

Hi, I just wanted to know if it's normal that the client-side function findItemByAttribute() cant find any items when we use "ID" (Capitalization doesnt matter) as the Attribute name? If it is, any references that documents this?

this works:
var foundItem = menu.findItemByAttribute("MenuID", "1");

but not this:
var foundItem = menu.findItemByAttribute("ID", "1");


TIA


Martin




2 Answers, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 15 Jan 2013, 03:49 PM
Hi Martin,

Unfortunately with custom attributes you are not allowed to use an HTML reserved word like ID in your case. Please take a look at the following help article that is valid for all of the Telerik controls - Custom Attributes

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Martin Roussel
Top achievements
Rank 1
answered on 15 Jan 2013, 05:24 PM
That's what I assumed. Thanks for the clarification Kate.

Martin
Tags
Menu
Asked by
Martin Roussel
Top achievements
Rank 1
Answers by
Kate
Telerik team
Martin Roussel
Top achievements
Rank 1
Share this question
or