[CLOSED] c#/razor gridpanel with locked column will make other non-locked columns vanishes.

  1. #1

    [CLOSED] c#/razor gridpanel with locked column will make other non-locked columns vanishes.

      .ColumnModel(
                    //Html.X().RowNumbererColumn().Width(45).Lockable(false).Locked(true),
                    Html.X().Column().DataIndex("UID").Width(55).Locked(true)
                    //.Lockable(false).Locked(true)
                    .Text(@Resources.Quotation.uiQuotationGridHeaderText_0).Renderer("anchorRenderer").CellCls("quolinktext"),
                    Html.X().ImageCommandColumn().Locked(true)
                        .Commands(
                            @*Html.X().ImageCommand()
                                .CommandName("editQuotation")
                                .Cls("editQuotationBtn")
                                .Text(@Resources.Quotation.uiBtnEditQuotation)
                            ,*@
                            Html.X().ImageCommand()
                                .CommandName("reopenQuotation")
                                .Cls("reopenQuotationBtn")
                                .Text(@Resources.NewQuotation.uiBtnReNegotiate)
                        )
                        .Width(55)
                        .Listeners(listener => { 
                            //listener.Command.Handler = "#{DirectMethods}.QuotationCommand(command, record.data.UID, dateFormatRenderer(record.data.CreateDate));"; 
                            listener.Command.Handler = "QuotationCommand(command, record);";
                        })
                        .PrepareCommand("prepareCommand")//.Lockable(false).Locked(true)
                    ,Html.X().Column().Locked(false).DataIndex("Status").Width(150).Text(@Resources.Quotation.uiQuotationGridHeaderText_1).ID("gcol1"),
                    Html.X().Column().DataIndex("FileNbr").Width(80).Text(@Resources.Quotation.uiQuotationGridHeaderText_2),
                    Html.X().Column().DataIndex("ModelNbr").Width(80).Text(@Resources.Quotation.uiQuotationGridHeaderText_ModelNbr),
                    Html.X().Column().DataIndex("Description").Width(250).Text(@Resources.Quotation.uiQuotationGridHeaderText_3),
    blah blah blah..
    and it results like that
    Attached Thumbnails Click image for larger version. 

Name:	2015-02-04 11_24_43-SOIM - Product Quotation - Summary.png 
Views:	5 
Size:	16.1 KB 
ID:	20241  
    Last edited by Daniil; Feb 17, 2015 at 12:38 PM. Reason: [CLOSED]
  2. #2
    The same snippet works fine before.Click image for larger version. 

Name:	2015-02-04 11_27_28-SOIM - Product Quotation - Summary.png 
Views:	2 
Size:	31.0 KB 
ID:	20251
  3. #3
    Click image for larger version. 

Name:	2015-02-04 15_38_59-SOIM - Product Quotation - Summary.png 
Views:	1 
Size:	92.9 KB 
ID:	20331
    As you can see, the vanished column's html is squeezed under the gridpanels' region
    why?
    because the gridpanel divided into locked and unlocked panels. and both of them Click image for larger version. 

Name:	2015-02-04 15_43_56-Developer Tools - http___localhost_55613_POPP_Quotation.png 
Views:	2 
Size:	63.4 KB 
ID:	20341applies 1430 width
    Last edited by ceihk; Feb 04, 2015 at 6:46 AM.
  4. #4
    Hi @ceihk,

    Please provide a full runnable test case. Also it might be worth to read the Forums Guidelines.

Similar Threads

  1. Replies: 1
    Last Post: Jan 06, 2015, 11:18 AM
  2. Replies: 1
    Last Post: Dec 22, 2014, 1:20 PM
  3. [CLOSED] Gridpanel columns move with locked = true
    By PoloTheMonk in forum 2.x Legacy Premium Help
    Replies: 10
    Last Post: Aug 12, 2014, 2:41 PM
  4. [CLOSED] Column gridPanel locked
    By tactime10 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 24, 2012, 9:17 AM
  5. [CLOSED] [1.0] Can not select row in locked columns of GridPanel
    By jchau in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 12, 2010, 4:41 PM

Posting Permissions