get_element bug

2 posts, 0 answers
  1. Jorge
    Jorge avatar
    53 posts
    Member since:
    Jun 2009

    Posted 11 May 2011 Link to this post

    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!
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 13 May 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top