Feb 18, 2016, 10:55 AM
check/uncheck checkbox in gridpanel can display in 4th column?
Hi,
Is it possible to display check/uncheck checkboxselectionmodel on gridpanel header in the 4th column instead of 1st column? using MVC razor view code.
Below is my code
Sundar G
Is it possible to display check/uncheck checkboxselectionmodel on gridpanel header in the 4th column instead of 1st column? using MVC razor view code.
Below is my code
@(Html.X().GridPanel()
.ID("GP_NORMAL")
.Width(1160)
.Height(250)
.Store(Html.X().Store()
.PageSize(10)
.ID("Store2")
.Model(Html.X().Model()
.Fields(
new ModelField("DETAIL_SNO", ModelFieldType.Int),
new ModelField("PART_CODE", ModelFieldType.String),
new ModelField("DESCRIPTION", ModelFieldType.String),
new ModelField("ISSUE", ModelFieldType.Boolean)
)
)
)
.ColumnModel(
Html.X().Column().Text("SN").DataIndex("DETAIL_SNO").Width(40),
Html.X().Column().Text("Part No").DataIndex("PART_CODE").Width(150),
Html.X().Column().Text("Description").DataIndex("DESCRIPTION").Width(160),
Html.X().CheckColumn().Text("ISSUE").ID("Chk").DataIndex("ISSUE").StopSelection(false).Editable(true).Width(40)
)
)
Thanks & Regards,Sundar G