[CLOSED] Javascript error in component column having textfield as component of gridpanel

  1. #1

    [CLOSED] Javascript error in component column having textfield as component of gridpanel

    Hi,

    I am using simple gridpanel with component columns having textfields as components.
    Following javascript error is displaying when I enter something in first textfield and pressing tab button.
    Click image for larger version. 

Name:	Exception.jpg 
Views:	20 
Size:	43.0 KB 
ID:	6463

    Following code might help you to reproduce the problem:

    View :
    @{
        ViewBag.Title = "RazorGrid";
    }
    
    @(Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig)) 
            @(Html.X().GridPanel()
                    .ID("Grid")
                    .PaddingSpec("1 1 1 1")
                    .Header(false)          
                    .Border(false)
                    .Store(Html.X().Store().ID("UserStore")   
                    .RemotePaging(true)
                    .PageSize(20)                       
                    .Model(Html.X().Model().ID("recModel") 
                    .Fields(
                                new ModelField("ID",ModelFieldType.Int),
                                new ModelField("FirstName", ModelFieldType.String),
                                new ModelField("LastName", ModelFieldType.String)                                     
                            )
                        )
                    .DataSource(Model)
                    )
                    .ColumnModel(
                                Html.X().Column().Text("Talent ID").DataIndex("TalentID").Flex(1).Hidden(true),
                                Html.X().Column().Text("First Name").DataIndex("FirstName"),
                                Html.X().Column().Text("Last Name").DataIndex("LastName"),
                                Html.X().ComponentColumn()                               
                                .Component(Html.X().TextField().Text("Component")),
                                Html.X().ComponentColumn()
                                .Component(Html.X().TextField().Text("Comment"))                            
                        )
                                    
                        .SelectionModel(Html.X().CheckboxSelectionModel()
                                                .Mode(SelectionMode.Multi).ID("SelectionBox")
                                                .CheckOnly(true)                                               
                                        )
                        .BottomBar(
                                    Html.X().PagingToolbar()                                                                                                 
                                             )
                 )
    Controller:
    public ActionResult RazorGrid() {
                return View(GridModel.GetAllDetails());
    }
    Model:
         public class GridModel
        {
            public static IEnumerable GetAllDetails()
            {
                return new object[]
                    {
                        new object[] { 1,"John","Player" },
                        new object[] {2,"Mic","Dsena"  },
                        new object[] { 3,"Linda","Daizy" }
                    };
            }
        }
    Last edited by Baidaly; Jun 27, 2013 at 11:35 PM. Reason: [CLOSED]
  2. #2
    Hi @alscg,

    Thank you for the report. We are investigating a possible fix.
  3. #3
    Hi
    Fixed in SVN

Similar Threads

  1. [OPEN] [#278] Hidden column editor cause java error
    By bayoglu in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 20, 2013, 12:41 AM
  2. Replies: 5
    Last Post: May 17, 2013, 4:54 PM
  3. Replies: 8
    Last Post: Feb 06, 2013, 6:27 PM
  4. Add Ext JavaScript Component to Component
    By geoffrey.mcgill in forum Examples and Extras
    Replies: 3
    Last Post: Mar 10, 2010, 12:38 PM
  5. Replies: 1
    Last Post: May 22, 2009, 7:38 AM

Posting Permissions