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

AXgrid deleteItem 질문입니다. #990

Open
YeonHoLee opened this issue Feb 17, 2017 · 0 comments
Open

AXgrid deleteItem 질문입니다. #990

YeonHoLee opened this issue Feb 17, 2017 · 0 comments

Comments

@YeonHoLee
Copy link

grid에서 데이터를 삭제하고 select를 하여 json을 받아 grid를 relode를 하려합니다.
deleteItem: function (index) {

            var item =  this.target.list[index];
        	var test = Object.values(item)[1];

        	 $.ajax({
        	        type : "POST"
        	      ,  url : "./admin/memDelete.jsp?mem_email="+test
        	  , dataType : 'json'
        	   , success : function(data) {
        		   var jsonStr = JSON.stringify(data);

                      //grid div를 reload 하는 부분
                      1번 방법
        		   $('#AXGridTarget').html(jsonStr);
                      2번 방법
                       grid.target.setList(jsonStr, null, "reload");
        	    		}
        	    , error : function() {
        	    	    	alert("error");
        	    	    }
        	    	});
   	 	},

Ajax를 통해서 div를 reload를 하려고 합니다.
그런데 그리드는 초기화가 되지만 데이터가 나타나지 안습니다..
json에 데이터도 잘 출력이 되고하는데 제가 무엇을 빠트려서 데이터가 출력이 안되는지 알려수ㅕㅆ으면 합니다..

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

1 participant