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
340
Mvc/Razor Grid Rebinding
posted

How do you rebind the data when a search button is clicked?

I setup the grid as follows:

@( Html.Infragistics().Grid<MVCMobile1.EF_Result>()
        .ID("Grid1")
        .AutoGenerateColumns(true)
        .Columns(column =>
        {
            column.For(x => x.EntryDate).DataType("date").HeaderText("Entry Date");
        })
        .DataSourceUrl(Url.Action("SPList"))                  
        .Width("90%")
        .Height("750px")
        .DataBind()
        .Render()

 

Parents
  • 340
    Offline posted

    I found a solution by not using the Helper function to create the grid but to recreate the grid in jquery every time the search button is clicked. I'm not sure if that is the correct way of doing it. Is there a way to send data to the grid that was created using the helper function?

    In the jquery code I am calling:

    $(

     

    '#Grid1').igGrid({ dataSource: '/Home/SPList/', ...

Reply Children