전체 글
개발자 카이트입니다. 프로그램 관련 지식을 정리합니다.
-
function nvl(str){ if(typeof str == "undefined" || str == null || str == "") str = "" ; return str ; } 문자열을 받아와서 str의 타입유형이 undefined 인지 혹은 str이 null 또는 공백인지 판단하고 빈 문자열이라면 str을 공백을 리턴해준다.
[javascript] 문자열이 빈 문자열인지 체크, 기본 문자열 리턴 str checkfunction nvl(str){ if(typeof str == "undefined" || str == null || str == "") str = "" ; return str ; } 문자열을 받아와서 str의 타입유형이 undefined 인지 혹은 str이 null 또는 공백인지 판단하고 빈 문자열이라면 str을 공백을 리턴해준다.
2022.02.06 -
function nvl(str){ if(typeof str == "undefined" || str == null || str == "") str = "" ; return str ; } 문자열을 받아와서 str의 타입유형이 undefined 인지 혹은 str이 null 또는 공백인지 판단하고 빈 문자열이라면 str을 공백을 리턴해준다.
[javascript] 문자열이 빈 문자열인지 체크, 기본 문자열 리턴 str checkfunction nvl(str){ if(typeof str == "undefined" || str == null || str == "") str = "" ; return str ; } 문자열을 받아와서 str의 타입유형이 undefined 인지 혹은 str이 null 또는 공백인지 판단하고 빈 문자열이라면 str을 공백을 리턴해준다.
2022.02.06 -
messages: { display: "{0} - {1} of {2} items", // {0} is the index of the first record on the page, // {1} - index of the last record on the page, // {2} is the total amount of records 표현된 데이터의 총 개수를 출력 ex. display: "전체 데이터 수 : {2} 건" empty: "No items to display", page: "Page", of: "of {0}", //{0} is total amount of pages 페이지 총 수를 표현 itemsPerPage: "items per page", first: "Go to the first page",..
[kendo ui] message안에서 사용하는 속성들messages: { display: "{0} - {1} of {2} items", // {0} is the index of the first record on the page, // {1} - index of the last record on the page, // {2} is the total amount of records 표현된 데이터의 총 개수를 출력 ex. display: "전체 데이터 수 : {2} 건" empty: "No items to display", page: "Page", of: "of {0}", //{0} is total amount of pages 페이지 총 수를 표현 itemsPerPage: "items per page", first: "Go to the first page",..
2022.01.31 -
$("#grid").data("kendoGrid").dataSource.page(1);
[kendo ui] 그리드에서 페이지 '1'로 지정하는 방법$("#grid").data("kendoGrid").dataSource.page(1);
2022.01.30 -
c:if columns: [ { field:000}, c:each columns: [ { field: "${result.fieldId}", title: "${result.fieldNm}", width:"120px",sortable: false, attributes : { style : "text-align : center; " }, headerTemplate: "${result.fieldNm}" }, ],
[kendo ui] columns안에서 JSTL ( c:if / c:foreach ) 사용하기c:if columns: [ { field:000}, c:each columns: [ { field: "${result.fieldId}", title: "${result.fieldNm}", width:"120px",sortable: false, attributes : { style : "text-align : center; " }, headerTemplate: "${result.fieldNm}" }, ],
2022.01.29 -
columns: [ { width: "50px", sortable: false, headerTemplate: '', template: kendo.template($("#checkboxTemplate").html()) }, dataBound : function() { $("#checkAll").prop("checked",false); // 일괄체크/해제 $("#checkAll").on("click", function(){ if($(this).prop("checked")) { $('input:checkbox[name="checkBox"]').each(function(index) { $(this).prop("checked", true); }); } else { $('input:checkbox[name="che..
[kendo ui] 컬럼에 체크박스 구현 / 일괄 체크 여부columns: [ { width: "50px", sortable: false, headerTemplate: '', template: kendo.template($("#checkboxTemplate").html()) }, dataBound : function() { $("#checkAll").prop("checked",false); // 일괄체크/해제 $("#checkAll").on("click", function(){ if($(this).prop("checked")) { $('input:checkbox[name="checkBox"]').each(function(index) { $(this).prop("checked", true); }); } else { $('input:checkbox[name="che..
2022.01.28