| View previous topic :: View next topic |
| Author |
Message |
slanza Newbie

Joined: 22 Jan 2007 Posts: 8 :
Items
|
Posted: Tue Mar 06, 2007 11:07 am Post subject: Scroll Bar |
|
|
Hi,
I'm very happy with datagrid v.4
Is possible to include a vertical/horizontal scroll bar into datagrid margins?
Cheers. |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
Posted: Tue Mar 06, 2007 12:01 pm Post subject: |
|
|
i did this by doing following:
inside my CSS file i have something like this:
#anav {
width:98%;
height:65%;
overflow:auto; //SET EITHER TO AUTO OR SCROLL
text-align:center;
padding:12px;
}
and where I call my grid:
<div>
//DATAGRID IMPLEMENT SCRIPT//
</div>
Greetings
Zewa |
|
| Back to top |
|
 |
slanza Newbie

Joined: 22 Jan 2007 Posts: 8 :
Items
|
Posted: Tue Mar 06, 2007 12:23 pm Post subject: Scroll Bar |
|
|
The Idea is to move records with a scrollbar. I mean, if I disable the footer or bottom paging, I need a scrollbar to move or go to the rest of records ...
Cheers, |
|
| Back to top |
|
 |
slanza Newbie

Joined: 22 Jan 2007 Posts: 8 :
Items
|
Posted: Tue Mar 06, 2007 12:30 pm Post subject: Scroll Bar |
|
|
Excuse me!
you have reason!!!
It's working. The only thing that I need to do is to show all records into datagrid and adjust the vertical scroll!!!.
Thanks a lot for your support.
Cheers, |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
Posted: Tue Mar 06, 2007 12:33 pm Post subject: |
|
|
yeah but that wouldn't be very useful because without paging you would need to load all entries at once to your datagrid...
this means if you have a great table with lot of entries it could last up to an enormous time to present them all.
@scroll
with the css you can do it too ... just show all and move up down with the browser native scrollbars ... but again ... its not very good to show all values at once
Greetings
Zewa |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
Posted: Tue Mar 06, 2007 12:36 pm Post subject: Re: Scroll Bar |
|
|
| slanza wrote: | Excuse me!
you have reason!!! |
you mean "You are right"
---
no need to excuse for something like this cause thats the purpose of this forum. Help and getting help.
Greetings
Zewa |
|
| Back to top |
|
 |
airputihdingin Newbie

Joined: 14 Mar 2007 Posts: 3 : Location: indonesia
Items
|
Posted: Fri Mar 23, 2007 9:37 am Post subject: |
|
|
| zewa666 wrote: | i did this by doing following:
inside my CSS file i have something like this:
#anav {
width:98%;
height:65%;
overflow:auto; //SET EITHER TO AUTO OR SCROLL
text-align:center;
padding:12px;
}
and where I call my grid:
<div>
//DATAGRID IMPLEMENT SCRIPT//
</div>
|
zewa,
could u explain it as long as u can? i can't get it. (sorry..newbie )
thx 2 u... |
|
| Back to top |
|
 |
zewa666 Site Moderator


Joined: 01 Feb 2007 Posts: 606 :
Items
|
Posted: Fri Mar 23, 2007 11:07 am Post subject: |
|
|
well this text simply puts the datagrid inside a div container to make it a fix size and let you scroll it.
its used when you have a fully build up page and just want a part to be used by datagrid. not more and not less.
as said make just a PHP file and bind Datagrid to it. Link a CSS file to the PHP file. the css should contain this:
| Code: |
#anav {
width:98%;
height:65%;
overflow:auto; //SET EITHER TO AUTO OR SCROLL
text-align:center;
padding:12px;
}
|
anav is just a name from me ... you can define what ever you want.
in the PHP file where you bind the datagrid just write before this:
div id="anav"
// Write this inside <> because this Forum threats it as Code insertion and doesnt lets me write it the right way
Than here is your datagrid bind and after this make the end of the div
</div>
Greetings
Zewa |
|
| Back to top |
|
 |
| |
|