473,623 Members | 2,790 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Really long list of items on the left side of a page and a short message on the right.

UJ
I have a long list of items that the user will be able to select from. When
they select an item, I'd like to have more detailed information appear on
the right side of the screen. I've already got a datagrid set up with the
clicking working correctly. Problem is, I'd like to have the list be
scrollable but leave the info on the right alone. What can I put around the
datagrid so that the entire thing becomes scrollable?

TIA - Jeff.
May 2 '06 #1
4 1753
I have a very similar setup in a webpage I'm working on... A flipping great
big tree on the left and PDFs on the right. I tried several different
methods of doing what you want, and ended up with two workable solutions.

Easiest is to use two frames. One on the left for the datagrid, one on the
right for the content. The only problem with this setup is that your
datagrid and details are on two different pages.

Hardest is to use a table with two cells, left and right. In the left cell
where your datagrid goes, you have to put a <div/> element with overflow set
to auto. You then have to create javascript functions that handle the
browser window's onResize and onLoad events that sizes the div to a specific
size. You cannot use percentages for the scroll div size, otherwise the
scroll div will just expand the table. Here's the javascript functions I use
to control size (you may have to change them slightly for your application):
// helper that gets an element by name
function getElement(elem entName){return document.all ?
document.all[elementName] : document.getEle mentById(elemen tName);}
// scales the table cell holding my navigation treeview
// the webpage has a header (div id=outerdiv), then a controls table below
(table id=icantdothisw ithcss), then a table with the treeview on the left in
a cell (td id=navCell) with a div (id = scrollDiv style="overflow :auto;") and
the contents in a cell on the right. The table is width:100% height:100%,
and the navCell width=30%
function scaleNav(){var div, header, controls;div =
getElement('scr ollDiv');navcel l = getElement('nav Cell');header =
getElement('out erDiv');control s = getElement('ica ntdothiswithcss ');if (div
&& header && controls && navcell){div.st yle.height = getWindowHeight () -
header.offsetHe ight - controls.offset Height - 8;div.style.wid th =
navcell.offsetW idth;}}

"UJ" wrote:
I have a long list of items that the user will be able to select from. When
they select an item, I'd like to have more detailed information appear on
the right side of the screen. I've already got a datagrid set up with the
clicking working correctly. Problem is, I'd like to have the list be
scrollable but leave the info on the right alone. What can I put around the
datagrid so that the entire thing becomes scrollable?

TIA - Jeff.

May 2 '06 #2
UJ
When you do frames, can you load .aspx pages? I thought I read somewhere it
had to be .html pages.

Could you post your code?

TIA - Jeff.
"William Sullivan" <Wi************ *@discussions.m icrosoft.com> wrote in
message news:C7******** *************** ***********@mic rosoft.com...
I have a very similar setup in a webpage I'm working on... A flipping
great
big tree on the left and PDFs on the right. I tried several different
methods of doing what you want, and ended up with two workable solutions.

Easiest is to use two frames. One on the left for the datagrid, one on
the
right for the content. The only problem with this setup is that your
datagrid and details are on two different pages.

Hardest is to use a table with two cells, left and right. In the left
cell
where your datagrid goes, you have to put a <div/> element with overflow
set
to auto. You then have to create javascript functions that handle the
browser window's onResize and onLoad events that sizes the div to a
specific
size. You cannot use percentages for the scroll div size, otherwise the
scroll div will just expand the table. Here's the javascript functions I
use
to control size (you may have to change them slightly for your
application):
// helper that gets an element by name
function getElement(elem entName){return document.all ?
document.all[elementName] : document.getEle mentById(elemen tName);}
// scales the table cell holding my navigation treeview
// the webpage has a header (div id=outerdiv), then a controls table below
(table id=icantdothisw ithcss), then a table with the treeview on the left
in
a cell (td id=navCell) with a div (id = scrollDiv style="overflow :auto;")
and
the contents in a cell on the right. The table is width:100% height:100%,
and the navCell width=30%
function scaleNav(){var div, header, controls;div =
getElement('scr ollDiv');navcel l = getElement('nav Cell');header =
getElement('out erDiv');control s = getElement('ica ntdothiswithcss ');if
(div
&& header && controls && navcell){div.st yle.height = getWindowHeight () -
header.offsetHe ight - controls.offset Height - 8;div.style.wid th =
navcell.offsetW idth;}}

"UJ" wrote:
I have a long list of items that the user will be able to select from.
When
they select an item, I'd like to have more detailed information appear on
the right side of the screen. I've already got a datagrid set up with the
clicking working correctly. Problem is, I'd like to have the list be
scrollable but leave the info on the right alone. What can I put around
the
datagrid so that the entire thing becomes scrollable?

TIA - Jeff.

May 2 '06 #3
UJ
Thanks that worked fine.

"UJ" <fr**@nowhere.c om> wrote in message
news:ea******** ******@TK2MSFTN GP03.phx.gbl...
When you do frames, can you load .aspx pages? I thought I read somewhere
it had to be .html pages.

Could you post your code?

TIA - Jeff.
"William Sullivan" <Wi************ *@discussions.m icrosoft.com> wrote in
message news:C7******** *************** ***********@mic rosoft.com...
I have a very similar setup in a webpage I'm working on... A flipping
great
big tree on the left and PDFs on the right. I tried several different
methods of doing what you want, and ended up with two workable solutions.

Easiest is to use two frames. One on the left for the datagrid, one on
the
right for the content. The only problem with this setup is that your
datagrid and details are on two different pages.

Hardest is to use a table with two cells, left and right. In the left
cell
where your datagrid goes, you have to put a <div/> element with overflow
set
to auto. You then have to create javascript functions that handle the
browser window's onResize and onLoad events that sizes the div to a
specific
size. You cannot use percentages for the scroll div size, otherwise the
scroll div will just expand the table. Here's the javascript functions I
use
to control size (you may have to change them slightly for your
application):
// helper that gets an element by name
function getElement(elem entName){return document.all ?
document.all[elementName] : document.getEle mentById(elemen tName);}
// scales the table cell holding my navigation treeview
// the webpage has a header (div id=outerdiv), then a controls table
below
(table id=icantdothisw ithcss), then a table with the treeview on the left
in
a cell (td id=navCell) with a div (id = scrollDiv style="overflow :auto;")
and
the contents in a cell on the right. The table is width:100%
height:100%,
and the navCell width=30%
function scaleNav(){var div, header, controls;div =
getElement('scr ollDiv');navcel l = getElement('nav Cell');header =
getElement('out erDiv');control s = getElement('ica ntdothiswithcss ');if
(div
&& header && controls && navcell){div.st yle.height = getWindowHeight () -
header.offsetHe ight - controls.offset Height - 8;div.style.wid th =
navcell.offsetW idth;}}

"UJ" wrote:
I have a long list of items that the user will be able to select from.
When
they select an item, I'd like to have more detailed information appear
on
the right side of the screen. I've already got a datagrid set up with
the
clicking working correctly. Problem is, I'd like to have the list be
scrollable but leave the info on the right alone. What can I put around
the
datagrid so that the entire thing becomes scrollable?

TIA - Jeff.


May 2 '06 #4
UJ wrote:
When you do frames, can you load .aspx pages? I thought I read somewhere it
had to be .html pages.


If you really read that somewhere; the one who wrote it doesn't know
what he/she is talking about.
May 2 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5477
by: David Ross | last post by:
I sometimes place a sidebar on a Web page, using the following: ..sideright { float: right; background-color: #fff; width: 40%; font-size: 90%; text-align: justify; margin-left: 1em; padding: 2% } ..sideleft { float: left; background-color: #fff;
6
35576
by: Stephen Miller | last post by:
Hi, How can I configure an ordered list so that the bullet is placed on the right hand side of the list item. ie: list item 1 * list item 2 * list item 3 * Thanks,
3
3111
by: Jeremy Owens-Boggs | last post by:
We are trying to implement a dual list box selection where you have two list boxes, You highlight items in the right side list box, click a button and this moves those items over to the left hand list box. The problem is that if there are many items selected (thousands), then removing the items from the right side list box takes for ever because we are removing them one at a time, which causes the listbox to re-index everything before we...
2
2962
by: George | last post by:
VS.NET 2002/VB Is there any way to right justify the items in a drop-down list? I have a list of fractions -- in 1/8 and 1/16 -- and they look kind of funky being left justified, especially since the 16's get wider and wider as you go down the list. I've tried padding the 1/8s with spaces to move them over a little, but spaces don't seem to hold in a list.
6
10678
by: Mark | last post by:
I have two dropdown lists. Both have autopostback set to true. In both dropdowns, when you select an item from the list, it redirects to the Value property of the dropdown. Nothing fancy. Let's say you select 1 of the items, and are properly redirected. You press the back button. I have three servers providing two different functionalities: 1. After pressing the back button, the item you selected in the dropdown is still selected.
4
3029
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual news group posts). Despite the trouble they cause, it is still tempting to use frames, occasionally, for instance for machine-generated pages that might have a large number of left-side navigation links. If you do use frames in that...
2
9948
by: sree reddy | last post by:
..cs using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls;
6
1105
by: Steve | last post by:
Hello all: I am working on a project that has two list boxes side-by-side on a form. What I want to happen is when a user clicks on an item in the list box on the left, the list box on the right displays information related to only that item. I would like to be able to connect to a SQL database to retrieve the items and possibly store them in an array and then loop through the array to populate the list box. ListBox1 ListBox2
3
2053
by: smokymtnman | last post by:
I have a drop down menu that has grown so long that I am afraid it will be hidden at the bottom of the page. I am using a ssi file for navigation. I was wondering if I can use the same code but break it into two columns. The site is: http://www.fabserv.com/ The code for navigation.ssi is pasted below:
0
8224
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8667
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8610
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7145
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1775
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1471
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.