You need to write a JavaScript function that expands the grids.
Then you need to specify that this JS function should be called during the window.onload event.
For example, say you have the following JavaScript function that expands all of the rows in the grid:
-
<script type="text/javascript>
-
//<![CDATA[
-
function ExpandAll() {
-
var allRowElements = document.getElementsByTagName("tr");
-
var numElements = allRowElements .length;
-
for (var i = 0; i < numElements; i++) {
-
allRowElements [i].style.display = "table-row";
-
}
-
}
-
function CollapseAll() {
-
var allRowElements = document.getElementsByTagName("tr");
-
var numElements = allRowElements .length;
-
for (var i = 0; i < numElements; i++) {
-
allRowElements [i].style.display = "none";
-
}
-
}
-
//]]>
-
</script>
-
You would call that function during the window.onload event like:
-
<script type="text/javascript">
-
//<![CDATA[
-
if(window.attachEvent){
-
window.attachEvent("onload",ExpandAll);
-
}else{
-
window.addEventListener("load",ExpandAll);
-
}
-
//]]>
-
</script>