[CLOSED] Checkbox selection getting repeat after locking grid columns

  1. #1

    [CLOSED] Checkbox selection getting repeat after locking grid columns

    Hi,

    I am using Grid panel of Ext.net 2.1.
    I Want to lock some columns of grid.
    I have used Check box selection model in grid panel.
    When I apply lock for first three columns of grid then grid shows locked columns properly but showing Checkbox selection column again after locked columns.Click image for larger version. 

Name:	Grid.PNG 
Views:	199 
Size:	38.3 KB 
ID:	5584

     <%:Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig)%>
            <%:(Html.X().GridPanel()
                    .ID("ManageUserGrid")
                    .PaddingSpec("1 1 1 1")
                    .Header(false)
                    .Cls("x-grid-custom")
                    .Height(350)
                    .Border(false)
                    .Store(Html.X().Store()                
                    .Model(Html.X().Model()
                    .Fields(
                                new ModelField("TalentID"),
                                new ModelField("FirstName", ModelFieldType.String),
                                new ModelField("LastName", ModelFieldType.String),
                                new ModelField("EmailID1", ModelFieldType.String),
                                new ModelField("IsActive", ModelFieldType.String),
                                new ModelField("OrgnizationLevel", ModelFieldType.String),
                                new ModelField("Department", ModelFieldType.String),
                                new ModelField("Position", ModelFieldType.String),
                                new ModelField("Grade", ModelFieldType.String),
                                new ModelField("Role", ModelFieldType.String),
                                new ModelField("Created_TS", ModelFieldType.String),
                                new ModelField("Updated_TS", ModelFieldType.String)                          
                            )
                        )
                    .DataSource(Model[0])
                    )
                    .ColumnModel(
                                Html.X().Column().Text("Talent ID").DataIndex("TalentID").Flex(1).Hidden(true),
                                Html.X().Column().Text("First Name").DataIndex("FirstName").Renderer("updateUser").Cls("custom-header").Locked(true),
                                Html.X().Column().Text("Last Name").DataIndex("LastName").Renderer("updateUser").Cls("custom-header").Locked(true),
                                Html.X().Column().Text("EmailID1").DataIndex("EmailID1").Renderer("updateUser").Cls("custom-header").Locked(true),
                                Html.X().Column().Text("Status").DataIndex("IsActive").Cls("custom-header"),
                                Html.X().Column().Text("Orgnization Level").DataIndex("OrgnizationLevel").Cls("custom-header").MinWidth(130),
                                Html.X().Column().Text("Department").DataIndex("Department").Cls("custom-header").Locked(true),
                                Html.X().Column().Text("Position").DataIndex("Position").Cls("custom-header"),
                                Html.X().Column().Text("Grade").DataIndex("Grade").Cls("custom-header"),
                                Html.X().Column().Text("Role").DataIndex("Role").Cls("custom-header"),
                                Html.X().DateColumn().Text("Created_TS").DataIndex("Created_TS").Cls("custom-header"),
                                Html.X().DateColumn().Text("Updated_TS").DataIndex("Updated_TS").Cls("custom-header")
                                
                        ).Listeners(ls => ls.Render.Fn="test")
                                    
                        .SelectionModel(Html.X().CheckboxSelectionModel()
                                                .Mode(SelectionMode.Multi).ID("SelecttonBox")
                                                .CheckOnly(true)
                                                .Listeners(ls =>ls.Select.Fn = "GetCheckedRecords")
                                                .Listeners(ls => ls.Deselect.Fn = "GetCheckedRecords")                                                    
                                        )
                        .BottomBar(Html.X().PagingToolbar().PaddingSpec("15 10 25 10").BorderSpec("1 0 0 0").ID("PageBar")) 
                        .TopBar(
                                 Html.X().Toolbar().Cls("top-bar").BorderSpec("0 1 0 1").PaddingSpec("10 10 10 10").ID("TopBar").Items(
                                 Html.X().Button().ID("btnClone").Text("Clone").Cls("btn-clone btn").Disabled(true),
                                 Html.X().Button().ID("btnDelete").Text("Delete").Disabled(true).Cls("btn-delete btn").Listeners(ls => ls.Click.Handler = "Ext.Msg.confirm('Delete','Are you sure you want to delete the record(s)?It will delete all data associated with it.',function(btn) { if (btn == 'yes') deleteCheckedRecords(); });"),
                                 Html.X().Button().ID("btnEmail").Text("Email").Cls("btn-email btn"),
                                 Html.X().Button().ID("btnPrint").Text("Print").Cls("btn-print btn"),
                                 Html.X().Button().ID("btnEdit").Text("Edit Columns").Cls("btn-edit btn"),
                                 Html.X().TextField().ID("txtSearchBox").Cls("txt-searchbox").Width(200).Height(30) ).MarginSpec("0 0 0 -2px"))
                   
                 )%>
    Thanks,
    alscg
    Last edited by Daniil; Feb 14, 2013 at 4:48 AM. Reason: [CLOSED]
  2. #2
    Hi @alscg,

    Thank you for the report.

    Yes, I was able to reproduce it with v2.1 release.

    But the issue doesn't appear with the latest Ext.NET sources from the SVN trunk. So, it has been fixed.
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @alscg,

    Thank you for the report.

    Yes, I was able to reproduce it with v2.1 release.

    But the issue doesn't appear with the latest Ext.NET sources from the SVN trunk. So, it has been fixed.
    Hi Daniil,

    I have taken updated ext.net dlls from SVN trunk. Above issue is resolved but new issue occured i.e.
    I am trying to open jquery popup on button click or from grid row click.
    It was woking fine with older ext.net dlls but after adding new ext.net dlls I am getting error for ext.fly() and popup is not functioning well.
    Please refer image : Click image for larger version. 

Name:	jquery_errors.jpg 
Views:	82 
Size:	82.5 KB 
ID:	5654
  4. #4
    As far as I can see the errors occur in jQuery. It is difficult to say something concrete.

    If you provided a sample to reproduce, we would be happy to investigate.

    But, please, start a new forum thread since it is another topic.

Similar Threads

  1. Replies: 1
    Last Post: Mar 11, 2012, 3:03 AM
  2. [CLOSED] Build Dynamic grid with checkbox selection in div
    By imaa in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 25, 2012, 5:31 PM
  3. Replies: 2
    Last Post: Dec 01, 2011, 1:00 PM
  4. [CLOSED] Grouping Grid AND Locking Columns...
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 21, 2010, 6:53 PM
  5. grid with grouping and checkbox selection
    By [WP]joju in forum 1.x Help
    Replies: 1
    Last Post: Sep 30, 2009, 11:05 AM

Posting Permissions