Wednesday 27 November 2013

How to give colour to grid view row in Kendo UI



In this article I will explain how to give colour to grid view row in Kendo UI

First we can identify dataview length; based on the length we can give colour to grid view row

if (dataView.length > 0) {
                            var k = 0;
                            for (k = 0; dataView.length > k; k++) {
                                var uid = dataView[k].uid;
                                $("#grid tbody").find("tr[data-uid=" + uid + "]").css("background-color", "Yellow");

                            }
                        }

No comments:

Post a Comment