Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Range filter for Kendo Grid with Razor Pages

I want to filter the Code ID's in one column, providing minimum and maximum values. I've seen a demo with dates here: Telerik Grid Filter

But I haven't been able to replicate this with a number column with Razor syntax. This is what I have so far:

@(Html.Kendo().Grid<MyViewModel>()
  .Name("grdMyGrid")
  .Sortable()
  .Selectable(s => s.Mode(GridSelectionMode.Multiple).Type(GridSelectionType.Row))
  .PersistSelection()
  .Events(events => events.Change("grdMyGridSelected"))
  .Scrollable()
  .Filterable(f => f.Mode(GridFilterMode.Row).Extra(false))
  .Width("100%")
  .ToolBar(x =>
  {
      x.Search();
  })
  .Columns(columns =>
  {
      columns.Bound(column => column.Code)
          .Title("Code").HeaderHtmlAttributes(new { @class = "font-weight-bold" })
          .Filterable(filterable => filterable.UI("betweenFilter"));
      columns.Bound(column => column.Description).Title("Title").HeaderHtmlAttributes(new {@class = "font-weight-bold"});
      columns.Bound(column => column.Category).Title("Category").HeaderHtmlAttributes(new {@class = "font-weight-bold"});
  })
  .DataSource(ds => ds.Ajax()
      .ServerOperation(false)
      .Read(r => r.Action("DocumentItem", "Admin", new {handler = "ReadList" })
      .Data("gridAdditionalData")
      .Type(HttpVerbs.Get))
      .Model(model => { model.Id(p => p.Code); })
      .PageSize(25)
  )
  .NoRecords(true)
  .Pageable(
      pager => pager.AlwaysVisible(true)
          .PageSizes(new[] {10, 25, 50, 100}))
  .Resizable(resize => resize.Columns(true))
  )

What I want is two input fields the user can provide the min and max values. The JavaScript code creates some HTML to inject here, but it's not happening. Any help would be very much appreciated.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!