nested datagrid problem
-
i have parent datagrid and a child datagrid nxt row of everydataitem. when i click the expand button in parent dg the child dg will be shown. my problem is when i clicked edit button or any button in child datagrid my parent datagrid collapse. how can i maintain the expanded child datagrid? this is my code snippet
function expandcollapse(obj){ var div = document.getElementById(obj); var img = document.getElementById('img' + obj); if (div.style.display == "none"){ div.style.display = "block"; img.src = "images/collapse.gif"; img.alt = "Close to view sub menus"; }else{ div.style.display = "none"; img.src = "images/expand_blue.gif"; img.alt = "Expand to show sub menus"; } } [](javascript:expandcollapse\('div<%# Eval\() style="display:none;position:relative;left:25px;OVERFLOW: auto;WIDTH:98%;" >
thanks in advance.