2 questions

  • Thread starter Thread starter Guest
  • Start date Start date
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 !
 
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

Back
Top