i have a grid with with say 20 columns
when executed the grid gets converted to table
i need a div to be displayed in the column when the column header cell of that particular is clicked
i have a grid with with say 20 columns
when executed the grid gets converted to table
i need a div to be displayed in the column when the column header cell of that particular is clicked
The basic strategy is “when element A is clicked, display element B in element C.”
So you’re going to need to do the following:
But it’s entirely possible I misunderstood, so…
Question Time
a i dp have
<table id=“mytable” width=“200%” cellpadding=“0”>
<tr>
<td>name</td>– header cell
<td>age</td>– header cell
<td>add</td>– header cell
<td>desig</td>– header cell
<td>dep</td>– header cell
<td>salar</td>– header cell
<td>loca</td>– header cell
<td>ci</td>– header cell
<td>coun</td>– header cell
<td>road</td>– header cell
<td>11</td>– header cell
<td>12</td>– header cell
<td>13</td>– header cell
<td>14</td>– header cell
</tr>
<tr>
<td>1</td>–data cell
<td>2</td>–data cell
<td>3</td>–data cell
<td>4</td>–data cell
<td>5</td>–data cell
<td>6</td>–data cell
<td>7</td>–data cell
<td>8</td>–data cell
<td>9</td>–data cell
<td>10</td>–data cell
<td>11</td>–data cell
<td>12</td>–data cell
<td>13</td>–data cell
<td>14</td>–data cell
</tr>
</table>
<div id=“div1” runat=“server”>
when header cell is clicked ie suppose users click on heade cell dep a div shld be displaed
inline with that header cell
suppose users click on heade cell name a div shld be displaed
inline with that header cell
means a div shld be displaed in column name
i dont have a direct table as above . i have a grid in m design which when execued is displaed as above
i hope i am clear
currentl i have a javacript to get the column header cell name
More Questions
ya the div shld appear comming fm the clicked header cell
currently i have only one div which i am trying to position as per the clicked header cell cordinates
Sorry for the endless questions, but when you say “shld appear comming fm the clicked header cell”, does that mean animation? Can you maybe do some very quick visual mock-ups explaining the before and after of what you’re trying to do?
as i said i have a table with column name s & data rows
first i want that when the users click on any header cell a control(div) should be displayed in that clicked column with the control(div) top on the table cell header
hope i am clear
Still don’t quite get it, sorry. I drew some pictures of what I think you’re looking for (they’re attached in the post, as well as uploaded here and [url=http://i.imgur.com/gK0yk.png]here). Correct as necessary; also, posting the code that you do have (the HTML you’re working with, the JS you’ve tried) wouldn’t hurt.