2 questions

G

Guest

1) how to make a grid view cell scrollable ?
2) how to access that cell or any other control from Java Script code ?

Thanx a million in advance !
 
T

Tasos Vogiatzoglou

1) Use a css property overflow:scroll

2) Either by setting the cells id somehow and then using
document.getElementById or by traversing the DOM of the tree to get the
cell you want.

var tbl = document.getElementById('idOfTable');
for (var i=0;i<tbl.rows.Length;i++){
for (var x=0;x<tbl.rows.cells.Length;x++){
if (tbl.rows.cells[x].innerText=='your condition')) {
return tbl.rows.cells[x];
}
}
}

Regards,
Tasos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top