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

[Solved] Give rowTemplate and detailTemplate for Grid

1 Answer 203 Views
Grid
This is a migrated thread and some comments may be shown as answers.
crazy05
Top achievements
Rank 1
crazy05 asked on 05 Mar 2015, 03:56 PM
Hello,

If I give both rowTemplate and detailTemplate, the columns are pulling to the left making the expand collapse button invisible.

I want textbox in rowTemplate. How can I use both without any errors. Here is my code

function BindGrid(dataSource) {
    $("#grid").kendoGrid({
        dataSource: dataSource,
        pageable: false,
        scrollable: false,
        detailTemplate: kendo.template($("#template").html()),
        detailInit: detailInit,
        dataBound: function () {
             this.expandRow(this.tbody.find("tr.k-master-row").first());
        },
        columns: [
           { field: "Id", hidden: true },
           { field: "Name", title: "Name" },
           { field: "Read", title: "Read" } 
        ]
    });
}

1 Answer, 1 is accepted

Sort by
0
crazy05
Top achievements
Rank 1
answered on 05 Mar 2015, 04:07 PM
Got the answer

http://stackoverflow.com/questions/11387607/how-to-use-rowtemplate-and-detailtemplate-together-in-kendoui
Tags
Grid
Asked by
crazy05
Top achievements
Rank 1
Answers by
crazy05
Top achievements
Rank 1
Share this question
or