I configured the system, when the screen is smaller, format the grid, to have horizontal scroll bar, is working perfectly. But besides the scrollbar, I wanted a button or a link so that when the user clicked the grid it would move right. I tried that way, but it's not working:
<script type="text/javascript">
function move() {
document.getElementById('mobile').scrollLeft += 30;
}
</script>
Here I call the function:
<input name="btnImprimir" type="button" onclick="move();" value="ScrollLeft" />
And I put my GridView inside the div mobile.
@media only screen and (max-width: 414px) {
.mobile {
overflow-x: scroll;
width: auto;
height:300px;
}
}
But when I click the button, nothing happens.