Nov 11, 2014, 9:04 AM
aligning headeritems in gridpanel column
Hi,
I have a CheckColumn inside a columnmodel of a grid panel, like:
Secondly, I am using ImageCommandColumn in above code and that is also left aligned on the grid, and I am not getting any way make it center or right align as well.
Please help,
Thanks
I have a CheckColumn inside a columnmodel of a grid panel, like:
.ColumnModel
(
X.Column().Text("Name").DataIndex("Name"),
X.CheckColumn().Width(20).Text("IsEnabled").DataIndex("IsEnabled").StopSelection(false).Editable(false).Filterable(false)
.HeaderItems(
Html.X().Container()
.Items(
Html.X().Button()
.ID("BulkUpdate")
.Icon(Icon.GroupEdit)
.ToolTip("Bulk Update")
.Handler("bulkUpdate")
)
)
,
X.ImageCommandColumn().Commands
(
X.ImageCommand().CommandName("Edit").Icon(Icon.NoteEdit)
)
)
I just want to center align the button inside header items collection(above). Currently it is left aligned. How to do that?Secondly, I am using ImageCommandColumn in above code and that is also left aligned on the grid, and I am not getting any way make it center or right align as well.
Please help,
Thanks