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
175
Binding .MVC Grid to Grid objects using JSON on button click
posted

@(Html.Infragistics()
.Grid(Model)
.ID("Grid")
.Height("500px")
.Width("100%")
.AutoGenerateColumns(false)
.AutoGenerateLayouts(false)
.RenderCheckboxes(true)
.PrimaryKey("DEPT_CODE")
.Columns(column =>
{
column.For(x => x.DEPT_CODE).HeaderText("DEPT_CODE").Width("160");
column.For(x => x.DEPT_GRP).HeaderText("DEPT_GRP").Width("160");
column.For(x => x.DEPT_NAME).HeaderText("DEPT_NAME").Width("160");
column.For(x => x.DEPT_TYPE).HeaderText("DEPT_TYPE").Width("160");
column.For(x => x.LCTN_CODE).HeaderText("LCTN_CODE").Width("160");
})
.Features(feature =>
{
feature.Updating().ColumnSettings(cs =>
{
cs.ColumnSetting().ColumnKey("DEPT_CODE").ReadOnly(true);
cs.ColumnSetting().ColumnKey("DEPT_GRP").Required(true);
cs.ColumnSetting().ColumnKey("DEPT_NAME").Required(true);
cs.ColumnSetting().ColumnKey("DEPT_TYPE").Required(true);
cs.ColumnSetting().ColumnKey("LCTN_CODE").Required(true);
});
feature.Sorting().Mode(SortingMode.Single).ApplyColumnCss(true);
feature.Selection().MouseDragSelect(false).MultipleSelection(false).Mode(SelectionMode.Row);
feature.Selection().Activation(false);
feature.Sorting();
feature.Paging().PageSize(25);
feature.Filtering().Mode(FilterMode.Simple);
})
.ClientDataSourceType(ClientDataSourceType.JSON)
.DataSourceUrl(Url.Action("DeptIndex"))
.UpdateUrl(Url.Action("OrdersSaveData"))
.DataBind()
.DefaultColumnWidth("100px")
.Height("500px")
.Render()
)

Please help me to rebind the grid on button click event using jquery