Slickgird : Add empty row with message “No results found”

Posted by RAY.D
2015. 4. 27. 15:00 Web/Slickgrid
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.




In the end I hacked it a bit like the following (data is loaded via ajax following the example they have at "example6-ajax-loading.html"):

loader.onDataLoaded.subscribe(function (e, args) {
 // check if there's any data in the data array
 .... 

 if (!anyData) {
    grid.invalidateAllRows();
    $('.grid-canvas').html('<div>No Data.</div>');
    return;
 }

}





내 경우에는 쿼리를 날려서 받아온 item.length 로 결정하였음.







'Web > Slickgrid' 카테고리의 다른 글

MVC3에서 slickgrid 쓰임새  (0) 2015.04.27
[slickgrid] How to loop through rows which are outside canvas?  (0) 2015.04.27