This is a migrated thread and some comments may be shown as answers.

newbie getting nowhere with grid

2 Answers 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Help
Top achievements
Rank 1
Help asked on 04 May 2017, 02:44 PM

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 Answers, 1 is accepted

Sort by
0
Help
Top achievements
Rank 1
answered on 04 May 2017, 06:46 PM
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.
0
Help
Top achievements
Rank 1
answered on 04 May 2017, 08:00 PM
Figured it out...
Tags
Grid
Asked by
Help
Top achievements
Rank 1
Answers by
Help
Top achievements
Rank 1
Share this question
or