Jan 28, 2015, 9:06 AM
I guess it might be a performance improvement in ExtJS 5.1. If a GridPanel is pre-hidden, there is a little bit different life cycle, that causes the difference in the behaviors between ExtJS 5.0 and 5.1.
As for a
1. Make the
2. Set the Store's AutoLoad to false to the GridPanel in Bin.
3. Change the OnClientClick to
I tend to guarantee that the decrease of the dll size doesn't affect on any functionality.
Also a small tip about code samples. It would be helpful for us if you post standalone test cases having this at the page's top:
it would allow us just to copy, paste and run your test cases without any changes.
As for a
.reconfigure()
call, I think it is sort of overkilling. Personally, I would recommend the following:1. Make the
grid2
variable strong typed.Dim grid2 As GridPanel = GetGridPanel("2")
2. Set the Store's AutoLoad to false to the GridPanel in Bin.
grid2.GetStore().AutoLoad = False
TabContainer.Bin.Add(grid2)
3. Change the OnClientClick to
.OnClientClick = String.Format("{0}.addTab({1}); {1}.getStore().load();", TabContainer.ClientID, grid2.ClientID)
By the way, it looks there is no need to call .setActiveTab()
, because .addTab()
does it by its own.
With the old version of dll, when it was 125MB (assembly version 3.0.0.37070) it was working as expected.
Also a small tip about code samples. It would be helpful for us if you post standalone test cases having this at the page's top:
<%@ Page Language="vb" %>
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
[Other code behind]
</script>
[Other markup]
it would allow us just to copy, paste and run your test cases without any changes.