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

ax5grid addRow 했을시 여러개의 레코드가생성되는 현상이 발생합니다. 해결책 부탁드립니다. #144

Open
shknight76 opened this issue Apr 3, 2019 · 2 comments

Comments

@shknight76
Copy link

No description provided.

@shknight76 shknight76 changed the title ax5grid addRow 했을시 여러개의 레코드가생성되는 현상 ax5grid addRow 했을시 여러개의 레코드가생성되는 현상이 Apr 3, 2019
@shknight76 shknight76 changed the title ax5grid addRow 했을시 여러개의 레코드가생성되는 현상이 ax5grid addRow 했을시 여러개의 레코드가생성되는 현상이 발생합니다. 해결책 부탁드립니다. Apr 3, 2019
@shknight76
Copy link
Author

제목과 같이 addRow 를 한번 클릭했는데 아래와 같이여러개의 row 가 생성됩니다.
/* 버튼 이벤트 핸들러 */
$('[data-grid-control]').click(function () {
switch (this.getAttribute("data-grid-control")) {
case "row-add":
firstGrid.addRow($.extend({}, {__index: undefined}),"first");
break;
해결방법 부탁드립니다.

@thomasJang
Copy link
Member

함수가 2번실행되는지 확인 부터 하셔야 겠습니다.
함수안에서 console.log를 해보셔야 겠습니다.

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