how can i check whether a panel or Datagrid exists or not using javascript
i have to hide a datagrid if the datagrid exists . otherwise no action
can anyone help me
thanksThere are a couple of ways, but this is the simple way
try{
var elemGrid = document.getElementById("theGridId");
//do whatever
}
catch(e){
//else grid is not here
}
EricHi eric,
thanks alot for the answer.............
it is working perfectly
thanks alot
Rajesh
i have to hide a datagrid if the datagrid exists . otherwise no action
can anyone help me
thanksThere are a couple of ways, but this is the simple way
try{
var elemGrid = document.getElementById("theGridId");
//do whatever
}
catch(e){
//else grid is not here
}
EricHi eric,
thanks alot for the answer.............
it is working perfectly
thanks alot
Rajesh