Problem with RadTreeView on event _onNodeLoadingSuccess

3 posts, 1 answers
  1. Deni
    Deni avatar
    12 posts
    Member since:
    Aug 2010

    Posted 15 Dec 2010 Link to this post

    The following error occurs and I have made some initial research;

    Line: 1707 Error: 'get_element()' is null or not an object

    This occurs only when tree is not loaded and user clicks to go on other screen. I have made some analysis on this function and this is due to missing parameter attributes.
    When the error occurs the second parameter in this f-tion o in the in the _contex attribute in most of the values has nulls.
    In line 1670 all this values are transferred to variable e;

     

     

    var e=o.get_context();
    And finally in line 1707 when
    e.get_element() is called, function fails.

    I have noted that this event (
    onNodeLoadingSuccess) happens after TreeViewNodePopulating and before TreeNodePopulated and a possible solution is if I could check the context and cancel tree loading.

    I have tried it this way but seems like context element is locked because it only has value {..} but nothing else can be seen.

     

    function TreeViewNodePopulating(sender, eventArgs) {
    var _contextElement = eventArgs.get_context();

    Could you tell me how to access this context element and check it value and if it’s null I could cancel the whole tree loading process.
    Btw the tree loading is successful but after user press ok on this error and the tree reloads itself.

     

     

    Additional information:
    Tree view is client loaded trough web service
    Telerik version 2010.2.826.35

    Best Regards
    Deni Spasovski

     

     

  2. Deni
    Deni avatar
    12 posts
    Member since:
    Aug 2010

    Posted 15 Dec 2010 Link to this post

    update: in the variable e when error occurs there is additional attribute 
      _rendered = false

  3. Answer
    Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 20 Dec 2010 Link to this post

    Hi Deni,

    I have posted an answer on this question in the support ticket you opened.
    Please, check my answer there.


    Regards,
    Nikolay Tsenkov
    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.
Back to Top