Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a web page which inside have a div. Inside the div I have placed a gridview which actual shows the data which the user has requested for. Now im thinking of doing something like this. When the user clicks on button which will show the gridview, I would like my gridview to slide in and then show the result. So basically I need to slide in the div right. But I dnt know how to archive this...Looking for helps.. Then from there the gridview can use its pagging property to show the remaining data.

Thanks
Posted
Updated 27-Nov-12 14:59pm
v2

1 solution

XML
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
  $("#slidin").click(function(){
     var div=$("div");
     div.animate({width:'10px'},"slow");
    });

  $("#slidout").click(function(){
    var div=$("div");
    div.animate({width:'300px'},"slow");

   });

});
</script>
</head>

<body>
<button id="slidout">Out</button>
<button id="slidin">IN</button>


<div style="background:#98bf21;height:100px;width:10px;position:absolute;">
     //put our grid here
</div>
</body>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900