Disable Filter and Sort for an Individual Column
New DiscussionFor my ID column I show a button to do an action on the row instead of the ID. I don’t want them to be able to Filter or Sort on this column. How can I disable the filter and sort for that column?
Here is my helper call:
@(Html.Infragistics()
.Grid(Model)
.ID("grdPallets")
.Width("100%")
.Height("500px")
.PrimaryKey("Pallet_ID")
.AutoGenerateColumns(false)
.AutoGenerateLayouts(false)
.Columns(column =>
{
column.For(model => model.Pallet_ID).HeaderText("").Template("<input type='button' class='btnPrintPackingSlip' value='Print Packing Slip' data-id='${Pallet_ID}' onclick='printPackingSlip(this)' />");
column.For(model => model.Pallet_Number).HeaderText("Number");
column.For(model => model.Pallet_Quantity).HeaderText("Quantity");
column.For(model => model.Pallet_DateShipped).HeaderText("Date Shipped");
})
.Features(features =>
{
features.Sorting().Type(OpType.Remote);
features.Paging().Type(OpType.Remote);
features.Filtering().Type(OpType.Remote);
})
.DataSourceUrl(Url.Action("GetPallets"))
.Render()
)
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
3 Created On
Feb 14, 2014 Last Post
12 years, 1 month ago