[CLOSED] Gridpanel column title disapears after click in a window problem

  1. #1

    [CLOSED] Gridpanel column title disapears after click in a window problem

    Hi,

    I have the following window :

    @model IEnumerable<ExtNetTest.Models.V_Fahrer>
    
    @(Html.X().Window()
        .ID("window_V_Fahrer_S3_S4")
        .Width(400)
        .Height(300)
        .Icon(Icon.Clock)
        .Title("Fahrer")
        .Padding(10)
        .X(100)
        .Y(100)
        .CloseAction(CloseAction.Destroy)
        .Items(witems => {
            witems.Add(
                Html.X().GridPanel()
                    .ID("gridPanel_fahrers3s4")
                    .Width(380)
                    .Height(290)
                    .ForceFit(true)
                    .Store(
                        Html.X().Store()
                        .Model(
                            Html.X().Model()
                            .Fields(
                                new ModelField("PS_ID", ModelFieldType.String),
                                new ModelField("PS_NR", ModelFieldType.Int),
                                new ModelField("PS_NAME", ModelFieldType.String)
                            )
                            )
                    .DataSource(Model)
                    )
                    .ColumnModel(
                        Html.X().Column().Text("ID").DataIndex("PS_ID"),
                        Html.X().Column().Text("Name").DataIndex("PS_NAME"),
                        Html.X().Column().Text("Nr.").DataIndex("PS_NR")
                    )
                    .DirectEvents(de =>
                    {
                        de.ItemDblClick.Url = Url.Action("DirectEventFahrerS3S4Clicked");
                        de.ItemDblClick.EventMask.ShowMask = true;
                        de.ItemDblClick.ExtraParams.Add(new Parameter("PS_ID", "record.get('PS_ID')", ParameterMode.Raw)
    
                        );
                    })  
                );
        })
    )
    When I click on a record, the column description disapears.

    What did I do wrong ? This happens on IE9 but not on Firefox and Opera .....

    Regards,
    Holger
    Attached Thumbnails Click image for larger version. 

Name:	beforeClicking.JPG 
Views:	50 
Size:	52.4 KB 
ID:	4957   Click image for larger version. 

Name:	afterClicking.JPG 
Views:	53 
Size:	54.6 KB 
ID:	4958  
    Last edited by Daniil; Oct 26, 2012 at 5:30 PM. Reason: [CLOSED]
  2. #2
    I found it.
    For IE9 you have to adjust the window size,
    until it fits.
    Then the problem is fixed.
    For me it was width of window 25 px greater than the gridpanel size,
    heigth 35 px greater.

    Regards,
    Holger

    PS: But the behaviour is definitely different in Firefox and Opera.
    I don't think, this is a feature ;)
  3. #3
    Hi Holger,

    I would set up
    .Layout("fit")
    for the Window. It should solve the problem.

Similar Threads

  1. [CLOSED] Expand panel when click on the title
    By RCN in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Jun 06, 2012, 12:11 PM
  2. Problem with direct Click from Dinamic window
    By Mauricio Rojas in forum 1.x Help
    Replies: 15
    Last Post: Feb 24, 2012, 3:40 PM
  3. Replies: 8
    Last Post: Apr 11, 2011, 12:55 PM
  4. Replies: 2
    Last Post: Nov 26, 2010, 6:30 PM
  5. Replies: 4
    Last Post: Sep 17, 2010, 10:33 PM

Posting Permissions