Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want this script to be written in percentage where the height and width declared in pixels.

XML
<script type="text/javascript">
                       $(document).ready(function ()
                       {
                            Scroll();
                       });

                       function Scroll() {

                           $('#<%=grdGridView.ClientID%>').Scroll({

                               width: 1320,
                               height: 350
                           });

                       }
                   </script>
Posted
Comments
ZurdoDev 5-Feb-15 9:41am    
I'm confused as to what you are asking.
Chrisraj 5-Feb-15 10:48am    
the width and height were given in pixels here. But i need to declare in Percentage.Sry for the confusion
ZurdoDev 5-Feb-15 10:52am    
Percentage is done the same way:

width: 50%
height: 30%
Chrisraj 5-Feb-15 11:20am    
Nice.. not working...
ZurdoDev 5-Feb-15 11:22am    
What does not working mean?

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