newbie getting nowhere with grid

3 posts, 0 answers
  1. Help
    Help avatar
    9 posts
    Member since:
    Jun 2015

    Posted 04 May Link to this post

    Hi,

     

    I'm attempting to use a grid control, but I find that filtering does not work for me. I thought that maybe the problem was with script registration, but that was a guess. I really have no idea.

    Here's the grid:

    @Html.Kendo().Grid(Model).Name("JobsRecurringGridEx").DataSource(d => d.Ajax()
            .Model(m => m.Id(o => o.ID))      
            .Read(r => r.Action("GetJobsRecurringAll", "Home"))
            .Update(r => r.Action("UpdateJobsRecurring", "Home"))
            ).Columns(col =>
            {
                col.Bound(o => o.ID);
                col.Bound(o => o.JOB_NAME);
                col.Bound(o => o.DBID);

                col.Bound(o => o.PARAMETER_1).Hidden(true);
                col.Bound(o => o.PARAMETER_2).Hidden(true);
                col.Bound(o => o.PARAMETER_3).Hidden(true);
                col.Bound(o => o.PARAMETER_4).Hidden(true);
                col.Bound(o => o.PARAMETER_5).Hidden(true);
                col.Bound(o => o.PARAMETER_6).Hidden(true);
                col.Bound(o => o.PARAMETER_7).Hidden(true);
                col.Bound(o => o.PARAMETER_8).Hidden(true);
                col.Bound(o => o.PARAMETER_9).Hidden(true);
                col.Bound(o => o.PARAMETER_10).Hidden(true);

                col.Bound(o => o.START_RUN_DATE_TIME);
                col.Bound(o => o.LAST_RUN_DATE_TIME);
                col.Bound(o => o.NEXT_RUN_DATE_TIME);
                col.Bound(o => o.SEED_RUN_DATE_TIME);
                col.Bound(o => o.RUN_INTERVAL);
                col.Bound(o => o.ACTIVE);
                col.Bound(o => o.PAUSED);
                col.Bound(o => o.CREATED_BY);
                col.Bound(o => o.CREATED_DATE_TIME);
                col.Bound(o => o.CRON_SCHEDULE);
            }).Editable(e => e.Mode(GridEditMode.InCell)).ToolBar(tb => tb.Save()).Pageable().Sortable().Filterable()

     

    Some columns are initially hidden, to be shown later. That part works. But attempting to filter has no effect. I don't know how to begin to debug this.

     

    ???

  2. Help
    Help avatar
    9 posts
    Member since:
    Jun 2015

    Posted 04 May in reply to Help Link to this post

    I gather that the Read method must be called in order to get the filtered data. In that case, I wonder how to pass the filter info to this method so as to get back the filtered data.
  3. Help
    Help avatar
    9 posts
    Member since:
    Jun 2015

    Posted 04 May in reply to Help Link to this post

    Figured it out...
Back to Top