<script type="text/javascript">
$(function () {
$("#Grid").ejGrid({
…………………………………………
dataBound:"ondatabound",
columns: [
………………………
]
});
});
function ondatabound(){
this.getScrollObject().setModel({
thumbEnd: "scroll",
wheelStop: "scroll"
})
}
var flag = true;
function scroll(){
if(this.model.scrollLeft == 0 && flag){
alert("Hit");
flag = false;
}
setTimeout(function () {
flag = true;
},0)
}
</script> |