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

[Solved] Using get_attributes() example?

3 Answers 357 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Trevor
Top achievements
Rank 1
Trevor asked on 11 Jan 2008, 09:56 PM
Hi all,

Could someone please provide me with an example on how to use the get_attributes collection on the client?  I'm trying to retrieve the attributes that I set on the server and can't find a demo or documentation that shows how to do that.

Thanks for the help,

Greg

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 14 Jan 2008, 12:10 PM
Hello Greg Dickie,

Attached, please find a sample project on the matter.

Download the files and give them a go.

Hope this helps.

Sincerely yours,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Trevor
Top achievements
Rank 1
answered on 14 Jan 2008, 09:43 PM
Thanks Nick, that works great.

I have another question to do with the client-side API for the new controls.  I'm noticing some inconsistancies with how methods are named when using the new suite.  For instance in the example you gave me you retrieve the attributes using get_attributes(), but then you retrieve a single attribute using getAttribute().  Why does get_attributes have the underscore and getAttribute not?  Also why is get_attributes all in lower case while getAttribute has a mix?

Just looking for some understanding, I'm not trying to nitpick or anything.

Thanks,

Greg
0
Nikolay
Telerik team
answered on 15 Jan 2008, 11:02 AM
Hello Greg Dickie,

According to the AJAX conventions, we called the get_attributes method using a small "a" as there is an underscore between the "get" and "attributes" parts, whereas the "getAttribute" method is a single word.

For more information about the changed properties and methods you can refer to the following article:
Migrating RadComboBox Classic to RadComboBox Prometheus

Hope this helps.

Regards,
Nick
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ComboBox
Asked by
Trevor
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Trevor
Top achievements
Rank 1
Share this question
or