or
if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;__doPostBack('gvLoginDetail$ctl00$ctl02$ctl00$ExportToCsvButton','')if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;
protected void radGridUnits_OnPreRender(object sender, EventArgs e) { // Select the last selected value if (Session["filteredByPendingAction"] != null) foreach (GridHeaderItem h in radGridUnits.MasterTableView.GetItems(GridItemType.Header)) { ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).FindItemByValue(Session["filteredByPendingAction"].ToString()).Selected = true; ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).DataBind(); break; } }
GetRadWindow().add_activate(OnClientActivate);function OnClientActivate(sender, e) { alert('I should only see this once when the window is brought to the front');}

