mike2
|
Posted: 11/08/2004, 4:57 AM |
|
hello,
is it possible to make an scrollable AND editable grid??
mike
|
|
|
DonB
|
Posted: 11/08/2004, 9:32 AM |
|
Not exactly. A grid has no scrolling component, it displays a page at a
time. This is quite efficient for situations where there might be a lrge
number of items to display. A "scrolling" grid could be made from an
<IFRAME> block, which has scrollbars, and a grid with no Navigator (and
thus, only 1 page).
Unless you have a predictable and reasonable number of rows, this isn't a
really good way to build your application.
The IFRAME will need to be constructed and output using your own event code,
as CCS will not accept them as part of the HTML template file (because they
are actually separate document windows, which therefore will have their own
templates).
--
DonB
http://www.gotodon.com/ccbth
"mike2" <mike2@forum.codecharge> wrote in message
news:2418f6d1c6bfeb@news.codecharge.com...
> hello,
> is it possible to make an scrollable AND editable grid??
> mike
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
Tuong Do
|
Posted: 11/08/2004, 4:00 PM |
|
Hi Mike,
Swith to HTML and insert the <div> tag before and after the table tag
<div id="myscroll1" style="OVERFLOW: scroll; WIDTH: 384px; HEIGHT: 189px">
// <table class=bla >
...
...
// </table>
</div>
"mike2" <mike2@forum.codecharge> wrote in message
news:2418f6d1c6bfeb@news.codecharge.com...
> hello,
> is it possible to make an scrollable AND editable grid??
> mike
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
mike2
|
Posted: 11/09/2004, 3:44 AM |
|
thanks , Tuong Do
i've done it with the div tag..it works fine!!
thanks!
Quote Tuong Do:
Hi Mike,
Swith to HTML and insert the <div> tag before and after the table tag
<div id="myscroll1" style="OVERFLOW: scroll; WIDTH: 384px; HEIGHT: 189px">
// <table class=bla >
...
...
// </table>
</div>
"mike2" < mike2@forum.codecharge> wrote in message
news:2418f6d1c6bfeb@news.codecharge.com...
> hello,
> is it possible to make an scrollable AND editable grid??
> mike
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
peterr
Posts: 5971
|
Posted: 11/12/2004, 12:58 PM |
|
Interesting solution. I wasn't aware of this.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
DonB
|
Posted: 11/12/2004, 9:47 PM |
|
Hmm, had to take a closer look at this OVERFLOW: scrollable thing:
http://www.gotodon.com/examples/gridscroll.asp
Kind of neat how that works. I put the source files for this page up on the
download section of CCbth. Besides the scrollability part, you might find
that the CSS used on this page is interesting as well. Several display
elements are built up from two or more class elements, which I only recently
discovered was possible.
--
DonB
http://www.gotodon.com/ccbth
|
|
|
peterr
Posts: 5971
|
Posted: 11/12/2004, 11:07 PM |
|
Looks very neat, even with the standard grid.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
DonB
|
Posted: 11/13/2004, 7:59 AM |
|
Thanks Peter. I opted for a plain Grid for security purpose, but it makes
no difference as it's all HTML tweaking anyway. This means it's equally
applicable to any platform (not just ASP) which I happened to use because it
was convenient.
--
DonB
http://www.gotodon.com/ccbth
"peterr" <peterr@forum.codecharge> wrote in message
news:24195b2b70a55d@news.codecharge.com...
> Looks very neat, even with the standard grid.
> _________________
> Peter R.
> YesSoftware Support Representative
> http://support.codecharge.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
peterr
Posts: 5971
|
Posted: 11/13/2004, 9:08 AM |
|
Cool. There also may be questions related to browser compatibility. There is some info on that at http://www.quirksmode.org/css/overflow.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
Tuong Do
|
Posted: 11/14/2004, 3:43 PM |
|
<div id="myscroll1" style="OVERFLOW: scroll; WIDTH: 384px; HEIGHT: 189px">
// <table class=bla >
...
...
// </table>
</div>
How do you make the scroller to scroll to the row that you want when to the
page is loaded?
Solution
At the end of the HTML page before the </body> section
<script>
var myscroll = document.getElementById("scroll1");
myscroll.scrollTop+= {label1};
</script>
And
Add a label call label1 to the page
Set the value of this label1 according in the before show event of the page
"mike2" <mike2@forum.codecharge> wrote in message
news:2418f6d1c6bfeb@news.codecharge.com...
> hello,
> is it possible to make an scrollable AND editable grid??
> mike
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|