3
어떻게 자바 스크립트를 사용하여 클라이언트 브라우저에서 gridview 정렬을 수행 할 수 있습니까? inbuilt gridview 정렬 방법을 사용하지 않고. 정렬하는 동안 매번 DB에 gridview를 보내고 싶지 않습니다.asp.net 격자보기에서 자바 스크립트 정렬 구현
어떻게 자바 스크립트를 사용하여 클라이언트 브라우저에서 gridview 정렬을 수행 할 수 있습니까? inbuilt gridview 정렬 방법을 사용하지 않고. 정렬하는 동안 매번 DB에 gridview를 보내고 싶지 않습니다.asp.net 격자보기에서 자바 스크립트 정렬 구현
(이 page에 데모에서 수정)를 jQuery 플러그인 tablesorter
<script type="text/javascript" src="/path/to/jquery-latest.js"></script>
<script type="text/javascript" src="/path/to/jquery.tablesorter.js"></script>
....
<script type="text/javascript">
var aspxElements = {
theGrid: '<%= myGrid.ClientID %>' //I'm not entierly sure this is the id of the table or some container element
};
$(document).ready(function() {
$('#' + aspxElements.theGrid).tablesorter();
});
</script>
당신은 페이지 매김을 사용하는 경우이 이상한 얻을 것이다
참고하십시오.