Hi,
Is it possible to make this column with checkbox frozen (to have it always visible when we scroll)?
Thanks,
Aliaksei
Hello Aliaksei,
I am just following up if need any further assistance on this scenario. If so, don't hesitate to contact me again.
In order to fix a non-data column such as the checkboxes column is needed to set the FixNondataColumns setting to true:
@(Html.Infragistics().Grid<igGrid_Sample.Models.Product>().ID("grid1")
…
.Features(features => {
features.Selection();
features.RowSelectors().EnableCheckBoxes(true).EnableRowNumbering(false);
features.ColumnFixing().FixNondataColumns(true);
})
.Render())
I have attached the whole sample for your reference.
If you have any further questions feel free to update this thread.
Hello,
Thanks for quick reply. Yes, I saw this example. But I'm asking about freezing column with checkbox which is appearing when we switching on:
GridRowSelectors.EnableCheckBoxes
Thank you for posting in our forum!
It is possible to freeze the igGrid columns by enabling the column fixing feature (see in bold below):
$("#grid").igGrid({
columns: [
{ headerText: "Customer ID", key: "ID", dataType: "string", width: "150px" },
{ headerText: "Company Name", key: "CompanyName", dataType: "string", width: "200px" },
],
features: [
{
name: "ColumnFixing",
fixingDirection: "left",
columnSettings: [
columnKey: "CompanyName",
isFixed: true,
allowFixing: false
},
]
}
});
A detailed sample regarding this feature might be found at the following resource: http://www.igniteui.com/grid/column-fixing
If you need any additional assistance regarding this scenario please let me know.