Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

128
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda