[개발] 프로그램 지식
-
dataBound : function() { // row index(순번) var rows = this.items(); $(rows).each(function () { var index = $("#행번호가 적용되는 그리드 이름").data("kendoGrid").dataSource.total() - $(this).index(); var rowLabel = $(this).find(".row-number"); $(rowLabel).html(index); }); } })
[kendo ui] 행번호 역순 코드dataBound : function() { // row index(순번) var rows = this.items(); $(rows).each(function () { var index = $("#행번호가 적용되는 그리드 이름").data("kendoGrid").dataSource.total() - $(this).index(); var rowLabel = $(this).find(".row-number"); $(rowLabel).html(index); }); } })
2023.02.10 -
white-space: nowrap;text-overflow: ellipsis; .k-grid td{ white-space: nowrap; text-overflow: ellipsis; }
[kendo ui] 셀 내용 많은 경우(overflow) 내용 생략(....) 방법 / Omit (....) method when there is a lot of cell content (overflow)white-space: nowrap;text-overflow: ellipsis; .k-grid td{ white-space: nowrap; text-overflow: ellipsis; }
2023.02.10 -
dataSource안에 pageSize: 10, grid 안에 pageable : { refresh: true, pageSizes : [ 5, 10, 20, 30, 40, 50, "all" ], buttonCount: 5 }, grid 안에 dataBound : function() { // row index(순번) var rows = this.items(); $(rows).each(function () { var index = $("#grid").data("kendoGrid").dataSource.total() - $(this).index() - ($("#grid").data("kendoGrid").dataSource.pageSize() * ($("#grid").data("kendoGrid").dataS..
[kendo ui] 페이징 관련 코드 (페이지) / Code related to paging (pages)dataSource안에 pageSize: 10, grid 안에 pageable : { refresh: true, pageSizes : [ 5, 10, 20, 30, 40, 50, "all" ], buttonCount: 5 }, grid 안에 dataBound : function() { // row index(순번) var rows = this.items(); $(rows).each(function () { var index = $("#grid").data("kendoGrid").dataSource.total() - $(this).index() - ($("#grid").data("kendoGrid").dataSource.pageSize() * ($("#grid").data("kendoGrid").dataS..
2023.02.10 -
$("#00 #00").kendoDropDownList({ dataTextField: "00_NM", dataValueField: "00_CD", value: "", dataSource: 0000.dataSource, filter: "contains", suggest: true, index:0 });
[kendo ui ] 드롭다운 검색 kendo dropdownlist search 방법 // drop down search$("#00 #00").kendoDropDownList({ dataTextField: "00_NM", dataValueField: "00_CD", value: "", dataSource: 0000.dataSource, filter: "contains", suggest: true, index:0 });
2023.02.10 -
column이랑 template열의 수가 맞지않아서 생긴 오류..!
[kendo ui] Uncaught TypeError: Cannot read properties of undefined (reading 'locked') error column이랑 template열의 수가 맞지않아서 생긴 오류..!
2023.02.10 -
$("#btnSearch2").kendoButton({ icon: "search", click: function(e) { var searchGwamok = $("#searchGwamok").val(); searchGwamok = searchGwamok.replace(/ +/g, "");//공백제거 if(searchGwamok == null || searchGwamok == '' || typeof searchGwamok == 'undefined'){ $("#gridList").data("kendoGrid").setDataSource(newDataSource); alert("검색할 입력해주세요."); }else{ $("#gridList").data("kendoGrid").setDataSource(dataSo..
[kendo ui] 처음 진입 시 조회 막기, 데이터소스 2개, newDataSource / setDataSource // Block lookup on first entry$("#btnSearch2").kendoButton({ icon: "search", click: function(e) { var searchGwamok = $("#searchGwamok").val(); searchGwamok = searchGwamok.replace(/ +/g, "");//공백제거 if(searchGwamok == null || searchGwamok == '' || typeof searchGwamok == 'undefined'){ $("#gridList").data("kendoGrid").setDataSource(newDataSource); alert("검색할 입력해주세요."); }else{ $("#gridList").data("kendoGrid").setDataSource(dataSo..
2023.02.10