[CLOSED] [#59] BeforeItemExpand is being raised just once

Page 2 of 4 FirstFirst 1234 LastLast
  1. #11
    Here is the Sencha thread.
    http://www.sencha.com/forum/showthread.php?226335

    Lets wait what they will answer.
  2. #12
    Sencha has opened a bug ticket.
  3. #13
    Thank you Danill, please keep me posted.
  4. #14
    Any update about this issue?
  5. #15
    Hi Raphael,

    Thank you for the update.

    Unfortunately, Sencha has not fixed it yet. I updated the thread.

    If it will stay unfixed, we will try to fix it ourselves.
  6. #16
    Thank you Daniil, please keep me posted
  7. #17
    Probably, my reminder forced ExtJS team to fix it.The message that it has been fixed in 4.1.4 Sprint 1 appeared.

    So, the fix will migrate to Ext.NET when we will upgrade our ExtJS sources to 4.1.4 release.
  8. #18
    Hello Raphael!

    This bug already fixed by ExtJS Team. I've tried with last sources from SVN and it works. Can you check it?
  9. #19
    Sure, i will retest and keep you posted.
  10. #20
    Using the following example, expand the first (unique) node and you will receive two alerts: Validating Expansion and Not Allowed. After you close both alerts, try to expand the node again and you'll note that the node is died but it is expected that the node expands successfuly.

    1 - View
    <!DOCTYPE html>
    <html>
    <head runat="server">
        <title>Index</title>
        <script type="text/javascript">
            var isFirstExpand = true;
            var beforeExpand = function (item, options) {
                alert('Validating Expansion');
                if (isFirstExpand) {
                    alert('Not Allowed');
                    isFirstExpand = false;
                    return false;
                }
                return false;
            }
        </script>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:TreePanel ID="TreePanel2" SelType="Checkbox" runat="server" Title="Tree" Height="700"
            Width="400" Margins="10" RootVisible="false" Border="false">
            <Listeners>
                <BeforeItemExpand Fn="beforeExpand" />
            </Listeners>
            <Store>
                <ext:TreeStore ID="TreeStore1" runat="server">
                    <Proxy>
                        <ext:AjaxProxy Url="/Example/loadNodeChildren">
                            <ActionMethods Read="POST" />
                            <Reader>
                                <ext:JsonReader Root="data" />
                            </Reader>
                        </ext:AjaxProxy>
                    </Proxy>
                    <Model>
                        <ext:Model runat="server">
                            <Fields>
                                <ext:ModelField Name="Task" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:TreeStore>
            </Store>
            <Root>
                <ext:Node NodeID="0" Text="Root" />
            </Root>
            <ColumnModel>
                <Columns>
                    <ext:TreeColumn ID="TreeColumn1" runat="server" Text="Task" Flex="2" Sortable="true"
                        DataIndex="Task" />
                </Columns>
            </ColumnModel>
        </ext:TreePanel>
    </body>
    </html>
    2 - Action
    public StoreResult loadNodeChildren()
    {
        StoreResult result = new StoreResult();
    
        NodeCollection nodes = new NodeCollection(false);
    
        Node no = new Node();
        no.NodeID = DateTime.Now.Second.ToString();
        no.CustomAttributes.Add(new ConfigItem { Name = "Task", Value = no.NodeID, Mode = ParameterMode.Value });
        nodes.Add(no);
    
        result.Data = nodes.ToJson();
    
        return result;
    }
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Replies: 3
    Last Post: Oct 26, 2009, 12:48 PM

Posting Permissions