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

[Solved] new data in a grid

0 Answers 8 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ana
Top achievements
Rank 1
Ana asked on 02 Nov 2010, 12:56 PM
Hi, 
could anyone helpme? I need to put the return of <%  = intrahelper.labeltitulacion("id_titulacion", (int)lib.id_titulacion) %> inside the column Carredesc
 inside the column Carredesc but I don't know how to do it, with this code it appears before the grid.

Thanks!




<%     
       Html.Telerik().Grid(Model)
       .Filterable()
       .Name("listar")
       .Pageable(settings => settings.PageSize(20))
       .Sortable()
       .Columns(columns =>
      {
          columns.Bound(o => o.id_lista).Title("lista");
          columns.Bound(o => o.id_peli).Title("peli");
          columns.Bound(o => o.titulo).Title("Titulo");
          columns.Command(o =>
          {%>
          <% foreach (var lib in this.Model)
          {%>
               <%  = intrahelper.labelpeli("id_peli", (int)lib.id_peli) %>
           <%} %>
           
          <%}).Title("Carredesc");   
 
 
          columns.Template(o =>
          {%>           
             
               <%: Html.ActionLink("Más", "Details", new { @id = o.id_lista })%>
               <%: Html.ActionLink("Modificar", "Pledit", new { @id = o.id_lista })%>
          <% });          
      })
      .Render();
    %>
Tags
Grid
Asked by
Ana
Top achievements
Rank 1
Share this question
or