Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

301
Vistas
Add indentation for long text in the kendo multiselect dropdown to differentiate that its a single record

I need to add an indentation while displaying the data in the kendo multiselect dropdown.

Below is the code:

@(Html.Kendo().MultiSelect()
  .Name("OrderSelection")
  .DataTextField("OrderData")
  .DataValueField("OrderId")
  .AutoClose(false)
  .Placeholder("Select Orders...")
  .Height((wndHeight - 260))
  .Events(e =>
            {
              e.Select("onOrderSelect").Deselect("onOrderDeselect");
              e.Open("validateDates");
              
            })
  .DataSource(source =>
                {
                  source.Read(read =>
                                {
                                  read.Action("ReadOrderItemsByDate", "CustomNotes").Data("orderSelectionReuestData");
                                })
                  .ServerFiltering(false);
                })
)

enter image description here

In the above image I want to add a space before the text skills so the user will know that it's not a separate record but one single record.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

That might be hard to do. Regardless, I think you need to use an ItemTemplate. This is equivalent to what you get by default and just renders the data item:

.ItemTemplate("#= data #")

You can put whatever html you want in there though. For example wrap it in a div with a class:

.ItemTemplate("<div class='add-border'>#= data #</div>")

You can then target that class with css to add a border, padding, highlighting or a background color to the div. Or just add styling inline if you wish. That is my suggestion, add some kind of border or background to distinguish each item.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda