Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding a selection column to an Infragistics Jquery IGGrid
    primarykey
    data
    text
    <p>I would like to add a column to my iggrid which is used to display current users from my sqlserver db. As is typically done the row would appear as [ 'username' 'email' 'select' ] usinf the select to link to another mvc3 view which displays the users details. I could very easily do this using a table, however, my senior will only allow me to use the Infragistics Jquery IGGrid. And despite my research I'm at a loss. Any help would be greatly appreciated. My current code is the following:</p> <pre><code>@(Html.Infragistics().Loader() .ScriptPath(Url.Content("../../Scripts/Infragistics/js/")) .CssPath(Url.Content("../../Content/Infragistics/css/")) .Theme("infragistics") .Render() ) @(Html.Infragistics().Grid(Model.users) //.DataSourceUrl("MCMonthlyAcctTotal") .ID("grid").Width("auto").Height("500px") .LoadOnDemand(false) .AutoGenerateColumns(false) .Columns(column =&gt; { column.For(x =&gt; x.FirstName).HeaderText("First Name"); column.For(x =&gt; x.LastName).HeaderText("Last Name"); column.For(x =&gt; x.Email).HeaderText("Email"); column.For(x =&gt; x.Injected).HeaderText("Date Created"); column.For(x =&gt; x.UserName).HeaderText("Username"); column.For(x =&gt; x.Modified).HeaderText("Last Date Modified"); }) .Features(features =&gt; { features.Paging().Type(OpType.Local).VisiblePageCount(5).ShowPageSizeDropDown(true).PageSize(10).PrevPageLabelText("Previous").NextPageLabelText("Next"); features.Sorting().Mode(SortingMode.Single).ColumnSettings(settings =&gt; { settings.ColumnSetting().ColumnKey("CustomerID").AllowSorting(true); }); features.Selection().MouseDragSelect(true).MultipleSelection(false).Mode(SelectionMode.Row); }) .Width("auto") .DataBind() .Render() ) </code></pre> <p>I hope someone will be able to give me a hand.</p> <p>Thanks!!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload