Giter Club home page Giter Club logo

Comments (2)

LDEV4966 avatar LDEV4966 commented on September 22, 2024

@doheez

궁금한거 있으면 말해줘

from web-dicom-management.

doheez avatar doheez commented on September 22, 2024

프론트엔드 문제점

현재 메타 데이터 테이블은 MUI 프레임워크에서 제공하는 client-side pagination을 사용한다. 전체 메타 데이터를 한 번에 로드한 후, 프론트엔드 단에서 전체 데이터 개수를 가지고 paging하는 방식이다.

따라서 프론트에서 기존 pagination 방식을 변경하지 않고 페이지별로 데이터를 불러온다면, 한 페이지 안에 포함되는 데이터가 (실제로는 전체 메타 데이터의 일부일 뿐인데도) 메타 데이터의 전부인 것으로 인식되어 다음 페이지로 이동하는 버튼 자체가 보이지 않게 된다.

해결 방법

Option 1

UI 프레임워크를 사용하지 않고 직접 테이블을 구현한다. 테이블 행 선택, 정렬, 필터링, Collapsible 행 등 다양한 기능을 포함해야 하므로 일일이 코드를 작성하는 것은 매우 어렵고 시간상 불가능할 것 같다.

Option 2

메타 데이터의 lazy loading을 구현하기 위해 Devextreme에서 제공하는 Data Grid의 Remote Virtual Scrolling 기능을 사용한다. 이를 통해 메타 데이터 테이블을 server-side pagination 방식으로 변경할 수 있을 것이라 생각한다. 이를 위해 우선 Devextreme Data Grid로 테이블 리팩토링이 선행되어야 한다. 추후 pagination 방식을 변경하기 위해 참고 문서를 기록해둔다.

Reference

[1] https://supportcenter.devexpress.com/ticket/details/t1001940/datagrid-how-to-add-server-side-paging
[2] https://js.devexpress.com/Documentation/ApiReference/UI_Components/dxDataGrid/Configuration/remoteOperations/#paging
[3] https://js.devexpress.com/Demos/WidgetsGallery/Demo/DataGrid/RemoteVirtualScrolling/React/Light/

from web-dicom-management.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.