[CLOSED] Buffer issue when refreshing tree

  1. #1

    [CLOSED] Buffer issue when refreshing tree

    On the following example


    Scroll down to the middle of the height, and then, click on Refresh Button


    Items's rendering fails


    Even if you scroll to the top


    Related issue: http://forums.ext.net/showthread.php?51621

    Thanks in advance.

    <!DOCTYPE html>
    <html>
    <head runat="server">
        <script type="text/javascript">
            var Refresh = function () {
                App._trp.getRootNode().reload();
            }
        </script>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        <ext:TreePanel ID="_trp" Title="Ext.Net" RootVisible="false" Height="300" Width="500" runat="server">
            <Store>
                <ext:TreeStore runat="server">
                    <Proxy>
                        <ext:AjaxProxy Url="~/Example/LoadTreeFakeChildren">
                            <ActionMethods Read="POST" />
                            <Reader>
                                <ext:JsonReader RootProperty="data" />
                            </Reader>
                        </ext:AjaxProxy>
                    </Proxy>
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="Name" />
                                <ext:ModelField Name="Identifier" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:TreeStore>
            </Store>
            <Root>
                <ext:Node NodeID="0" Text="Root" />
            </Root>
            <ColumnModel>
                <Columns>
                    <ext:TreeColumn Text="Name" DataIndex="Name" Flex="2" runat="server" />
                    <ext:Column Text="Identifier" DataIndex="Identifier" runat="server" />
                </Columns>
            </ColumnModel>
            <Buttons>
                <ext:Button Text="Refresh" runat="server">
                    <Listeners>
                        <Click Handler="Refresh();" />
                    </Listeners>
                </ext:Button>
            </Buttons>
        </ext:TreePanel>
    </body>
    </html>
    namespace SandBox.Controllers
    {
        public class ExampleController : System.Web.Mvc.Controller
        {
            public ActionResult Index()
            {
                return View();
            }
    
            public StoreResult LoadTreeFakeChildren()
            {
                NodeCollection nodes = new NodeCollection(false);
    
                for (int index = 1; index < 300; index++)
                {
                    Node node = new Node
                    {
                        NodeID = index.ToString(),
                        Leaf = true
                    };
                    node.CustomAttributes.Add(new ConfigItem { Name = "Name", Value = node.NodeID, Mode = ParameterMode.Value });
                    node.CustomAttributes.Add(new ConfigItem { Name = "Identifier", Value = Guid.NewGuid().ToString(), Mode = ParameterMode.Value });
    
                    nodes.Add(node);
                }
    
                return new StoreResult { Data = nodes.ToJson() };
            }
        }
    }
    Attached Thumbnails Click image for larger version. 

Name:	bf001.png 
Views:	5 
Size:	6.5 KB 
ID:	20681   Click image for larger version. 

Name:	bf002.png 
Views:	5 
Size:	6.7 KB 
ID:	20691   Click image for larger version. 

Name:	bf003.png 
Views:	5 
Size:	2.6 KB 
ID:	20701   Click image for larger version. 

Name:	bf004.png 
Views:	5 
Size:	2.5 KB 
ID:	20711  
    Last edited by Daniil; Feb 10, 2015 at 5:05 AM. Reason: [CLOSED]
  2. #2
    Hi Raphael,

    Thank you for the report!

    I would rather tread it as the same issue rather than a related one:) Answered in the original thread.
    http://forums.ext.net/showthread.php...l=1#post246821
  3. #3
    Thank you Daniil
  4. #4
    The issue has been fixed with ExtJS 5.1.1 upgrade. It goes to the upcoming Ext.NET 3.2.0 release.

Similar Threads

  1. Replies: 14
    Last Post: Jun 26, 2015, 8:20 AM
  2. [CLOSED] Tree panel Loading display issue
    By mohan.bizbites in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 16, 2013, 8:05 PM
  3. Tree DefaultSelectionModel Issue
    By zhangjiagege in forum 1.x Help
    Replies: 4
    Last Post: Dec 08, 2011, 7:59 AM
  4. Replies: 0
    Last Post: Feb 07, 2011, 6:27 AM
  5. [CLOSED] gridpanel width/height refreshing issue
    By idrissb in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 02, 2009, 5:29 PM

Posting Permissions