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

get_element bug

1 Answer 44 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 11 May 2011, 11:29 AM
In javascript, list.get_element() is returning a SPAN instead of the whole DOM element containing items.
If this is the intended behavior, how do I get the full DOM element?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 13 May 2011, 02:48 PM
Hello Jorge,

When the RadListView is rendered there are three html elements.

1) A div with class="listLayout" that is containing the rendered elements from RadListView
2) An Input with ID like "RadListView1_ClientState", that is used for storing client settings of the RadListView object.
3) The span with ID "RadListView1" that you are getting when you use get_element()

If "list" is the client object of your list view, to access the collection of all elements you could use:
list.get_element().previousElementSibling.previousElementSibling;

I hope this helps.

Kind regards,
Vasil
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ListView
Asked by
Jorge
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or