Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1150
How to render Button for each row in a grid
posted

Hi,

Just started using igGrid here, and was wondering what would be the best approach to show a button for each row of data in igGrid ? for instance, I want to have a 'Copy' button for each row of data.

I've been looking around and found something called rowTemplate, but the jQuery js file kept throwing error, below is the code snippet:

@(Html.Infragistics().Grid<Matrix>()
.AutoGenerateColumns(false)
.ID("testGrid")
.RenderCheckboxes(true)
.Columns(column =>
{
column.For(x => x.ID).HeaderText(" ").Width("80");
column.For(x => x.Description).DataType("string").HeaderText("Description");
column.For(x => x.Status).DataType("string").HeaderText("Status");
column.For(x => x.EffectiveFrom).DataType("date").HeaderText("Effective From");
column.For(x => x.EffectiveTo).DataType("date").HeaderText("Effective To");
column.For(x => x.CreatedBy).DataType("string").HeaderText("Created By");
})
.RowTemplate("<tr><td>test</td><tr>")
.JQueryTemplating(true)