Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

그리드 json 전송 예제가 필요합니다. #156

Open
kbkim-qw opened this issue Mar 24, 2020 · 1 comment
Open

그리드 json 전송 예제가 필요합니다. #156

kbkim-qw opened this issue Mar 24, 2020 · 1 comment

Comments

@kbkim-qw
Copy link

kbkim-qw commented Mar 24, 2020

안녕하세요 ax5 그리드 사용해보려고 하는데
ajax를 이용하여 json 형태로 백엔드에서 데이터를 받아와서
그리드에 뿌려주고 제어하고 싶습니다.

하지만 json통신 형태나 받아온 json 파일을 어떤 함수에
넣어서 데이터를 갱신하는지 예제를 좀 알고싶습니다

도움주시면 감사하겠습니다.

@kbkim-qw kbkim-qw changed the title 안녕하세요 그리드 json 전송 예제가 필요합니다. Mar 25, 2020
@aeei
Copy link
Member

aeei commented Mar 25, 2020

setData함수를 사용하시면 될 것 같습니다.
json의 형태는 하기 링크에서 확인해 보세요!

http://ax5.io/ax5ui-grid/demo/index.html

$.ajax({
            method: "GET",
            url: API_SERVER + "/api/v1/ax5grid",
            success: function (res) {
                secondGrid.setData(res);
            }
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants