What I am trying to achieve is a row template(Each row might have 20+ fields).
It needs be one row a page and I need NEXT and PREVIOUS to see other records.
I am trying to achieve this using the row template and here s my code
If I add pagable() it wont render the template rows itself.
Also it woyld be great if u can help me on making an inline edit in this.
@(Html.Kendo().Grid<CatagoryViewModel>()
.Name("grid")
.HtmlAttributes(new { style = "width: 750px;height:430px;" })
.Columns(columns =>
{
columns.Template(e => { }).ClientTemplate(" ").Width(140).Title("Catagory Details");
}).Pageable()
.ClientRowTemplate(
"<tr data-uid='#: CatagoryId #'>" +
"<td class='details'>" +
"<span >#: CatagoryName #</span>" +
"<span >#: Catagorydescription #</span>" +
"</td>" +
"</tr>"
)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetAllCatagory", "Home")
)
))
It needs be one row a page and I need NEXT and PREVIOUS to see other records.
I am trying to achieve this using the row template and here s my code
If I add pagable() it wont render the template rows itself.
Also it woyld be great if u can help me on making an inline edit in this.
@(Html.Kendo().Grid<CatagoryViewModel>()
.Name("grid")
.HtmlAttributes(new { style = "width: 750px;height:430px;" })
.Columns(columns =>
{
columns.Template(e => { }).ClientTemplate(" ").Width(140).Title("Catagory Details");
}).Pageable()
.ClientRowTemplate(
"<tr data-uid='#: CatagoryId #'>" +
"<td class='details'>" +
"<span >#: CatagoryName #</span>" +
"<span >#: Catagorydescription #</span>" +
"</td>" +
"</tr>"
)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("GetAllCatagory", "Home")
)
))