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

125
Views
Telerik Grid arbitrary fields

I need to be albe to edit multiple values in a grid

Say

"Type" is a combo "Size" is a float "Name" is a string

I need "Type", "Size", "Name" in the first column; and in the second I need a dropdown (Type), then a numeric editor (Size) and finally a text editor for the "Name".

I try to implement something similar to that

enter image description here

having heterogenous data in a column, so, impossible to have a template for the elements of the column

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It is enough to supply editors for cells that correspond to the field names that you have. For instance, if you have "Type", the Name of the DropDownList has to be "Type".

 @(Html.Kendo().DropDownList()
    .Name("Type")
    // other options
)

You could specify all of the needed editors in separate cshtml files inside the EditorTemplates folder and reference them via the EditorTemplateName option of the column:

columns.Bound(e => e.FieldName).EditorTemplateName("<<editor name goes here>>");

The grid will take care of the binding part. For the complex ones, you might have to specify "data-bind" attributes.

over 4 years ago · Santiago Trujillo Report
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!