[CLOSED] Locking GridView error when reconfiguring store and gridpanel

  1. #1

    [CLOSED] Locking GridView error when reconfiguring store and gridpanel



    I have a gridpanel with locking gridview that needs to be reconfigured on the server side on initial load. This used to work with the LockingGridPanel extension in Ext 2.2.1 . Now, when I call GridPanel.Reconfigure, the clientside function creates a new normal ColumnModel always. I also tried GridPanel.Reconfigure(store, columnModel) but that generates an invalid script. Both look like bugs.

    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    
    <script runat="server">
        Private Sub Store1_RefreshData(ByVal sender As Object, ByVal e As Ext.Net.StoreRefreshDataEventArgs) Handles Store1.RefreshData
            Me.Store1.AddField(New Ext.Net.RecordField("Name"))
            Me.Store1.AddField(New Ext.Net.RecordField("Department"))
    
    
            Dim colModel = Me.GridPanel1.ColumnModel
            colModel.Columns.Add(New Ext.Net.Column(New Ext.Net.Column.Config() With {.Header = "Name", .DataIndex = "Name", .Width = 200}))
            colModel.Columns.Add(New Ext.Net.Column(New Ext.Net.Column.Config() With {.Header = "Department", .DataIndex = "Department", .Width = 400}))
    
    
            Me.GridPanel1.Reconfigure(Me.Store1.ClientID, colModel)
    
    
            Dim data = New Generic.List(Of Object)
            data.Add(New With {.Name = "Name1", .Department = "DepartmentA"})
            data.Add(New With {.Name = "Name2", .Department = "DepartmentB"})
            
            Me.GridPanel1.Store.Primary.DataSource = data
            Me.GridPanel1.Store.Primary.DataBind()
        End Sub
    </script>
    
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body style="margin:5px;">
        <form id="form1" runat="server">
        <ext:ResourceManager runat="server">
        </ext:ResourceManager>
        <br />
        <ext:GridPanel ID="GridPanel1" runat="server" StripeRows="true" Title="Locking Grid"
            TrackMouseOver="true" Width="500" Height="350">
            <Store>
                <ext:Store ID="Store1" runat="server">
                    <Proxy>
                        <ext:PageProxy>
                        </ext:PageProxy>
                    </Proxy>
                    <Reader>
                        <ext:JsonReader>
                        
                        </ext:JsonReader>
                    </Reader>
                </ext:Store>
            </Store>
            <ColumnModel ID="ColumnModel1" runat="server">
                <Columns>
                </Columns>
            </ColumnModel>
            <View>
            <ext:LockingGridView runat="server" ></ext:LockingGridView>
            </View>
            <SelectionModel>
                <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" />
            </SelectionModel>
        </ext:GridPanel>
        </form>
    </body>
    </html>
  2. #2

    RE: [CLOSED] Locking GridView error when reconfiguring store and gridpanel

    Hi,

    Fixed. Please update from SVN
    Vladimir Shcheglov
    Sr. Developer

Similar Threads

  1. [CLOSED] GridView - Locking and Multi Header
    By Technetium in forum 1.x Premium Help
    Replies: 1
    Last Post: Aug 08, 2012, 9:46 AM
  2. Replies: 1
    Last Post: Dec 14, 2011, 8:17 PM
  3. Replies: 2
    Last Post: Jul 16, 2010, 1:59 PM
  4. [CLOSED] [1.0] Locking Grid View JavaScript Error
    By jskibo in forum 1.x Premium Help
    Replies: 4
    Last Post: Jun 01, 2010, 11:09 PM
  5. Replies: 3
    Last Post: Oct 08, 2009, 11:57 AM

Posting Permissions