473,785 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

invisible table columns

Hi,
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help

Aug 30 '07 #1
5 7295
my************* @gmail.com wrote:
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help
This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.

--
Joe Attardi
ja******@gmail. com
Aug 30 '07 #2
On Aug 30, 3:49 pm, Joe Attardi <jatta...@gmail .comwrote:
my.shabby.sh... @gmail.com wrote:
I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help

This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.

--
Joe Attardi
jatta...@gmail. com
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that. Here is the code for the jsp page.
</script>
<style type="text/css">
body {
margin: 1em;
margin-top:.5em;
}
#reportPane {
width: 100%;
}
#histBox table { overflow: auto; }
#buttonTable {
margin-top: 8px; margin-bottom: 8px;
}
</style>
</head>
<body onload="init()" onkeydown="doKe y()">
<fieldset id="histBox" >
<legend>Selec t version(s):</legend>
<div id="histories" class="tableCon tainer">
<t:newTable model='<%=
pageContext.fin dAttribute("his tories") %>' key="RSN" multiple="true" >
<t:column name="user.name " label="User"/>
<t:column name="type" label="Report Type"/>
<t:column name="date" label="Update Time" format="MM/
dd/yyyy kk:mm"/>
<t:column name="netBodyCh ars" label="Chars Changed"
format="###,### " className="java .lang.Integer"/>
<t:column name="reportHTM L" label="report"
invisible="true " />
</t:newTable>
</div>
</fieldset>

Thanks...

Aug 30 '07 #3
my************* @gmail.com wrote:
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that.
I'm not sure what the JSP tag library is that you're using, and what
options the <t:columntag gives you, but in straight HTML you can give
the <tra 'style' attribute, like
<tr style="display: none;"... </tr>

or define an 'invisible' CSS class:

..invisible { display: none; }

and give the <tra 'class' of 'invisible':

<tr class="invisibl e"... </tr>

Looks like you will have to work within the limitations of your JSP
taglib though.
--
Joe Attardi
ja******@gmail. com
Aug 30 '07 #4
my************* @gmail.com said the following on 8/30/2007 4:01 PM:
On Aug 30, 3:49 pm, Joe Attardi <jatta...@gmail .comwrote:
>my.shabby.sh.. .@gmail.com wrote:
>>I want to do the following. I want to make a table column invisible
to the screen, but I still want to be able to get the innertext that
would have been stored in the cell for certain operations. What would
be the best way to do this.
I currently added an invisible attribute to the column tag. Please
help
This is more of a CSS solution than JavaScript, but you could set the
style to "display: none". That would hide the column from the screen but
it would still exist in the DOM.
Thats not a bad idea but I not to familiar with style sheets.
comp.infosystem s.www.authoring.stylesheets

For the Usenet impaired:
<URL:
http://groups.google.c om/group/comp.infosystem s.www.authoring .stylesheets/topics?hl=en&lr =&ie=UTF-8>
Since in a table of 5 columns only one would be invisible how would I do
that. Here is the code for the jsp page.
Don't post your server side JSP code, post the resulting HTML/Script/CSS
generated by the JSP code.
</script>
I hope that isn't the first line of code your JSP produces.
<style type="text/css">
I thought you weren't familiar with styles?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Aug 30 '07 #5
On Aug 30, 4:46 pm, Joe Attardi <jatta...@gmail .comwrote:
my.shabby.sh... @gmail.com wrote:
Thats not a bad idea but I not to familiar with style sheets. Since
in a table of 5 columns only one would be invisible how would I do
that.

I'm not sure what the JSP tag library is that you're using, and what
options the <t:columntag gives you, but in straight HTML you can give
the <tra 'style' attribute, like
<tr style="display: none;"... </tr>

or define an 'invisible' CSS class:

.invisible { display: none; }

and give the <tra 'class' of 'invisible':

<tr class="invisibl e"... </tr>

Looks like you will have to work within the limitations of your JSP
taglib though.

--
Joe Attardi
jatta...@gmail. com
Thanks for your help. I tried your method and it works ok, but is
there a way for the row to not only be not displayed, but to not
appear at all?
thanks...

Aug 31 '07 #6

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

Similar topics

3
1883
by: Igor Mendizabal | last post by:
Hello, We're doing our own datagrid based on the System.windows.forms.datagrid control, and are having some problems with horizontal scrolling. In general, we construct our datagrid adding a tablestyle and gridcolumnstyles to that tablestyle. If we have invisible columns, we add the gridcolumnstyle with Width = 0 (couldn't find any other way to do it, because there is no Visible property available...).
1
2540
by: Susan Geller | last post by:
I have a table server control (System.Web.UI.WebControls.Table) on my form that has three columns. Sometimes I need the second column to be invisible, sometimes the third. How can I set a column to be invisible in code? There appears to not be a programmatic way to work with columns in the way that there is rows. Thanks. --Susan
3
2163
by: Richard | last post by:
After printing a userlist to a Datagrid i want some names not to be shown. I want to know how i can make a entire datagrid row invisible. I suspect its something with the OnItemDatabound but i am kinda stuck there. but this is basicly what i want. if Username = "Deleted_User" then 'make entire table row invisible. End if
15
3765
by: John Blair | last post by:
Hi, Code attached but the line that gives me an error is MyDataGrid.Columns(2).Visible = False It actually gives me an error for any value instead of 2 even when 9 bound columns of data exist. How do i hide a column? Thanks. MyConnection = New SqlConnection("server=(local);database=pubs;Trusted_Connection=yes") MyCommand = New SqlDataAdapter("select * from Authors",
3
1847
by: david | last post by:
I have posted my question before. It seems that I can not find the solution. The question: I have datasource, say, ds which is bounded to a datagrid, dg. Assume that ds have 5 columns, c0,c1,c2,c3,c4. In some case, say, case 1, I want to display columns c0, c1,c2 in dg and use c3 and c4 in code behind. In case 2, I want to display column c0, c3, and c4, and use c1 and c2 in code behind. The following Possible solution do not work:
5
4008
by: bbawa1 | last post by:
I have a GetData methd which is returning a table using
9
4793
by: Mel | last post by:
I have 10 columns total. 3 of them are invisible. The rest are read- only BoundFields, 3 of which are editable fields using TemplateFields. Upon editing, I want to validate what the user enters against one of those invisible columns. How do I accomplish this? The code below that I attempted just returns an empty string when I try to retrieve the invisible column data: gvParts.Rows(e.RowIndex).Cells(8).Text
4
2988
by: zhshqzyc | last post by:
Hi, I am using the paging skills for my page. I'm doing manual databinding (that is, setting the DataSource property, and then calling DataBind()) instead of automatic databinding. So I manually handle events for paging. But the page is invisible. Thanks for your help. protected void GridView_PageIndexChanging(object sender, GridViewPageEventArgs e) { DataSet myDataSet = new DataSet(); ...
0
1334
by: Joel Ryan | last post by:
hello, I'm currently working with a xamdatagrid, this grid is bound to a dataset as its source, and what im trying to do is, based on the column name(or the field name as the xamdatagrid calls it i think) i want to make that field invisible but every time ive tried it says object not referenced to an instance of an object. heres the code im working with, i figure if i can figure it out here i can use it in another program Imports...
0
9645
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
10341
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...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
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
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
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
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
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.