Feb 04, 2015, 2:26 AM
[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
Last edited by Daniil; Feb 17, 2015 at 12:38 PM.
Reason: [CLOSED]