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

how to remove/hide row values in Grid

1 Answer 685 Views
Grid
This is a migrated thread and some comments may be shown as answers.
shankar parshimoni
Top achievements
Rank 1
shankar parshimoni asked on 07 Dec 2012, 02:13 PM
HI,
how to remove or hide specified row values(1 row,7th row,19 row) in kendoGrid.is this possible to remove..?

  $("#grid").kendoGrid({
                                width: 1500,
                                dataSource: data.d,
                                resizable: true,
                                rowTemplate: kendo.template($("#stTemplate").html()),
                                height: 790,
                                dataBound: stThruGrid,
                                selectable: true,
                                columns: [
                                                { title: 'Name', field: 'Name', width: '20%', sortable: true },
                                                { title: 'ActValue', field: 'ActValue', width: '12%', sortable: true },                                        
                                          ]
                            });

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 11 Dec 2012, 11:40 AM
Hello Parsanamoni,

In order to achieve this you can use the removeRow() method of Kendo UI Grid. For example: 
var grid = $("#grid").data("kendoGrid");
grid.removeRow(grid.tbody.find("tr")[6]);

Regards,

Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
shankar parshimoni
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or