How to get column no of table??

Greetings,

Is their a way to get corresponding column number on which we have clicked  from table

in REACTIVE WEB APP??

thanks in advance....

Hi Anand,

If i understand correctly-

add on click event and use javascript-

document.getElementById('table1').rows[0].cells.length

It will return table cells count.


Reagrds

Rahul

Solution

Hi Anand,

Why you need column number. You can use event property of cells (Header and Record) to perform desired action.

Even if you need column number you can use same event. Just select header cell and record cell and define event and event handler. and you can use same or different event handlers based on your requirement.

 Please let me know if you need more help.\


thanks,

saifee

Solution

Rahul Sahu wrote:

Hi Anand,

If i understand correctly-

add on click event and use javascript-

document.getElementById('table1').rows[0].cells.length

It will return table cells count.


Reagrds

Rahul

 

 thank you very much Rahul:)
is their any inbuilt method for column which can give current column number

like we have for (rows) rowNumber??

Abdul quadir Saifee wrote:

Hi Anand,

Why you need column number. You can use event property of cells (Header and Record) to perform desired action.

Even if you need column number you can use same event. Just select header cell and record cell and define event and event handler. and you can use same or different event handlers based on your requirement.

 Please let me know if you need more help.\


thanks,

saifee

 

 thank u Abdul :)

anand kumar wrote:

Abdul quadir Saifee wrote:

Hi Anand,

Why you need column number. You can use event property of cells (Header and Record) to perform desired action.

Even if you need column number you can use same event. Just select header cell and record cell and define event and event handler. and you can use same or different event handlers based on your requirement.

 Please let me know if you need more help.\


thanks,

saifee

 

 thank u Abdul :)

 Always welcome Anand. Happy to help you..