Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1015
Double Click on WebDataTree Node change the Scroll position
posted

I’ve got a similar Problem (as to what's posted here).

I’ve a WebDataTree that is higher then the browser window (the browser shows scrollbars.) I’m opening a popup menu when a node is right-clicked. When ever I click a node that is below the initial window (the tree is scrolled down) the popup menu is shown and the whole page is scrolled up. With the result that the popup menu is outside (below) the window.  

 

function Node_Click(tree, eventArgs) {

      lastNode = eventArgs.getNode();

      var menu = $find("<%= WdmPopup.ClientID %>");

 

...

        menu.showAt(null, null, eventArgs.get_browserEvent());

alert("test" + document.body.scrollHeight);

// here the position is still OK

}

 

I’m using Version 9.1, the page is using a master page and beside the “node click” I don’t use other client events. I have no clue “when” this is happening or why or how I could use the suggested solution. Any ideas?

 

The markup of the tree:

 

<ig:WebDataTree ID="WdtDiagrams" runat="server" DataSourceID="WebHierarchicalDataSourceFolders"

        DataMember="DefaultView" EnableConnectorLines="True" InitialExpandDepth="1" StyleSetName="Default"

        OnDataBound="WdtDiagrams_DataBound">

        <DataLoadingTemplate>

          Loading...

        </DataLoadingTemplate>

        <NoNodesTemplate>

          Keine Diagramme gefunden

        </NoNodesTemplate>

        <ClientEvents NodeClick="Node_Click" />

        <DataBindings>

          <ig:DataTreeNodeBinding DataMember="OdsTotalTree_DefaultView" TextField="Name" ImageUrlField="ItemImage"

            NavigateUrlFields="LinkText" ToolTipField="ToolTip" KeyField="DiagramId" ValueField="KeyId" />

        </DataBindings>

      </ig:WebDataTree>

Parents Reply Children