I generate the following client-side code to trigger the built-in expand functionality for the current item:
This expands just fine. However, I'd like to toggle the visibility of the row. I see a ._toggleExpand(this, event) method in the built-in Radgrid code:
Is there a way to harness ._toggleExpand(this, event) to toggle the item?
Or, is there a way that I can detect the state of the row to determine whether to use expandItem() or collapseItem()?
Thanks,
Ken
| There are 2 <a href='#' onclick='$find("ctl00_ContentPlaceHolder1_RadGrid1_ctl00").expandItem(0);return false;'>comments</a> on this post. |
This expands just fine. However, I'd like to toggle the visibility of the row. I see a ._toggleExpand(this, event) method in the built-in Radgrid code:
| <td class="rgExpandCol"><input type="button" name="ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00" value=" " onclick="$find("ctl00_ContentPlaceHolder1_RadGrid1_ctl00")._toggleExpand(this, event); return false;__doPostBack('ctl00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00','')" title="Expand" class="rgExpand" /></td><td> |
Is there a way to harness ._toggleExpand(this, event) to toggle the item?
Or, is there a way that I can detect the state of the row to determine whether to use expandItem() or collapseItem()?
Thanks,
Ken