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

MVC Wrapper + Clientrowtemplate + rowspan?

0 Answers 222 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hugues
Top achievements
Rank 1
Hugues asked on 03 Apr 2013, 09:07 AM
EDIT: Solved my issue. I was using wrong attribute. Need colspan instead of rowspan. Can't believe I missed that.

Hi, using Asp.Net MVC Wrappers and .ClientRowTemplate, we are trying to replicate functionality here (http://demos.telerik.com/aspnet-mvc/grid/clientrowtemplate) where there are several columns that can be used for sorting and filtering. Is this currently supported in kendo ui or only the older mvc plugin?

With the current code, sorting and filtering works but we can't figure out a way to get the template to span all 3 columns. Is it possible? Thank you!

  Dim gridBuilder As Kendo.Mvc.UI.Fluent.GridBuilder(Of time_card) = _

        Html.Kendo().Grid(Of time_card)().Name("TimecardGrid")
    gridBuilder.DataSource(Function(c As DataSourceBuilder(Of time_card)) c.Ajax().Read(Function(r) r.Action("Cards_Read", "Home")))
    gridBuilder.Columns(Function(columns As GridColumnFactory(Of time_card)) columns.Bound(Function(o) o.tc_date))
    gridBuilder.Columns(Function(columns As GridColumnFactory(Of time_card)) columns.Bound(Function(o) o.tc_index))
    gridBuilder.Columns(Function(columns As GridColumnFactory(Of time_card)) columns.Bound(Function(o) o.billed_hours))
    gridBuilder.ClientRowTemplate("<tr><td rowspan='3'>#= tc_date #<br/>#= billed_hours #</td></tr>")
    gridBuilder.Render()

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Hugues
Top achievements
Rank 1
Share this question
or