tui.grid
tui.grid copied to clipboard
datePicker 사용시 format 오류로 생각됩니다.
tui grid 사용중 {header:'Order Date', name: 'ORDER_YMD', width:130, align:'center', sortable: true, filter: {type:'date', options: {format:'yyyy-MM-dd'}} , editor:{type:'datePicker', options:{format:'yyyy-MM-dd'}} },
형식으로 사용시 data가 "2022-05-16" 형식으로 그리드에 표현도 잘 되고 필터도 정상적으로 작동합니다.
하지만 {header:'Order Date', name: 'ORDER_YMD', width:130, align:'center', sortable: true, filter: {type:'date', options: {format:'yyyyMMdd'}} , editor:{type:'datePicker', options:{format:'yyyyMMdd'}} },
형식으로 변경하고 data가 20220516 형식으로 적용될 경우 그리드에는 정상적으로 표현되지만 필터가 정상동작하지 않습니다. 이벤트를 살펴봐도 그리드의 데이터값은 "20220516" 으로 나오고 필터(datePicker)에서 반환되는 값도 "20220516"으로 나오지만 같은 값으로 인식되지 않아 필터(eq) 에서 제외됩니다.
데이터 형태 문제인지 날짜를 구분자 없이 숫자형태로만 표현할 경우 같은값으로 인식하지 못하는것 같습니다.
검토 부탁드립니다.
@JongHyeonKimDev Depending on the implementation of TOAST UI DatePicker, the format that Date which is the JavaScript built-in object cannot parse does not work properly. I'll fix it. Thank you!
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!
This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!