바운드 행의 존재 여부를 판별하는 가장 좋은 방법은 무엇입니까? 더 나은 방법이있을 가지고Telerik ASP.NET MVC Grid에서 0 행 감지
gridDataBound: function (event)
{
var rows = $('tbody tr:has(td)', this);
if (rows.length == 0 || (rows.length == 1 && rows[0].innerText == "No records to display'))
$('#GridSection').hide("slow");
}
:
현재, 나는 다음과 같은 클라이언트 측 OnDataBound 이벤트 및 코드를 사용하고 있습니다!
if ($(this).find(".t-no-data").length) {
$("#GridSection").hide("slow");
}
를 더 레코드가없는 경우를 제외하고. 이 경우'data'는 정의되지 않았습니다. – kdawg