[CLOSED] combo box does not fits in panel

  1. #1

    [CLOSED] combo box does not fits in panel

    Hi , I use ItemsFromAction() to load a partial page into a window. Every thing looks good except the combo box (see attached screen shot) How can I make the combo fit into the panel. (If I switch Combo to Button, it fits perfectly)

    This is Window.cshtml
    @(
     Html.X().DesktopModuleProxy()
            .Module(
                Html.X().DesktopModule()
                    .ModuleID(Model.GridID)
                    .Shortcut(
                        Html.X().DesktopShortcut()
                            .Name(Model.Title)
                    )
                    .Launcher(
                        Html.X().MenuItem()
                            .Text(Model.Title)
                            .Icon(Icon.ApplicationEdit)
                    )
                    .Window(
                        Html.X().Window()
                            .Icon(Icon.ApplicationEdit)
                            .Width(800)
                            .Height(500)
                            .Plain(true)
                            .Layout(LayoutType.Border)
                            .Title(Model.Title)
                            .Items(
                                    X.Panel()
                                        .ID("DimSelectorPanel" + Model.GridID)
                                        .Title("Dimension Filter Selector")
                                        .Region(Region.West)
                                        .Floatable(false)
                                        .Width(200)
                                        .Collapsed(true)
                                        .Split(true)
                                        .Collapsible(true)
                                        .BodyPadding(5)
                                        .ItemsFromAction("DemensionFilterSelectorPanel", "Grid", new { gridID = Model.GridIDInt }),
    
                                 X.Panel()
                                       .Region(Region.Center)
                                        .ID("GridWinID" + Model.GridID)
                                        .ItemsFromAction("DataGridPanel", "Grid", new { dataGridID = Model.GridIDInt })
                            ) // end items
                   )//end window
              ) //end module
    
    )
    
     public class GridController : Controller
        {
    
            public ActionResult DemensionFilterSelectorPanel(string gridID)
            {
                return PartialView("_DemensionFilterSelectorPanel", gridID);
            }
    
    
    
    _DementionFilterSelectorPanel.cshtml:
    
    @(X.Panel()
            .BodyBorder(0)
            .Layout(LayoutType.VBox)
            .LayoutConfig(new VBoxLayoutConfig { Align = VBoxAlign.Stretch })
            .TopBar(
                X.Toolbar()
                    .Items(
                        X.Button()
                            .Icon(Icon.Accept),
                        X.Button()
                            .Icon(Icon.DatabaseSave) ,
                        X.Button()
                            .Icon(Icon.Delete) ,
                        X.Button()
                            .Icon(Icon.Star)
                    )
            )
            .Items(
                    X.Panel()
                      .Title("Filters")
            .Layout(LayoutType.Fit)
            //.LayoutConfig(new VBoxLayoutConfig { Align = VBoxAlign.Left, Pack = BoxPack.Start })
                      .Collapsed(false)
                      .Collapsible(false)
                      .BodyBorder(0)
                      .Items(
                       // X.Button().Text("test"),
                        X.ComboBox()
                            .Items(
                                new ListItem("xxx", "be"),
                                new ListItem("yyy", "he")
                                )
                     ) ,
                X.Panel()
                 .Items (
                    X.TreePanel()
                    .Title("Online Users")
                    .RootVisible(false)
                    .Tools(X.Tool()
                        .Type(ToolType.Refresh)
                        .Handler("Ext.Msg.alert('Message','Refresh Tool Clicked!');")
                    )
                    .Root(X.Node()
                        .Text("Root")
                        .Children(
                            X.Node()
                                .Text("Friends")
                                .Expanded(true)
                                .Children(
                                    X.Node().Text("Jack").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Brian").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Jon").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Tim").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Brent").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Fred").Icon(Icon.User).Leaf(true),
                                    X.Node().Text("Bob").Icon(Icon.User).Leaf(true)
                                ),
    
                            X.Node()
                                .Text("Family")
                                .Expanded(true)
                                .Children(
                                    X.Node().Text("Kelly").Icon(Icon.UserFemale).Leaf(true),
                                    X.Node().Text("Sara").Icon(Icon.UserFemale).Leaf(true),
                                    X.Node().Text("Zack").Icon(Icon.UserGreen).Leaf(true),
                                    X.Node().Text("John").Icon(Icon.UserGreen).Leaf(true)
                                )
                        )// end childen
                    )//end root
                    )
            )// end items
        )
    Attached Thumbnails Click image for larger version. 

Name:	Extnet.png 
Views:	9 
Size:	42.2 KB 
ID:	15621  
    Last edited by Daniil; Oct 16, 2014 at 3:54 PM. Reason: [CLOSED]
  2. #2
    Hi @susanz,

    I cannot reproduce it.

    Please clarify what Ext.NET version are you using? Please try with the latest sources from SVN.
  3. #3
    Thanks Daniil, It works fine after I remove the site.css. Thanks!

Similar Threads

  1. [CLOSED] filter tree panel data using combo box like Quick Search
    By UT007 in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 20, 2013, 10:41 PM
  2. Replies: 1
    Last Post: Jun 28, 2012, 9:39 PM
  3. Replies: 3
    Last Post: Aug 10, 2011, 2:00 PM
  4. Editable Grid Panel with Combo box column
    By jigpatel06 in forum 1.x Help
    Replies: 1
    Last Post: Nov 03, 2010, 8:06 PM
  5. [CLOSED] Multiselect does not fits parent container
    By armadalabs in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 05, 2010, 3:32 PM

Posting Permissions