Hi, I have a Panel Bar on a page that will display different errors for different reasons (from a query string).
I want to tell the Panel Bar (On Page Load - a protected void will be called) to Expand or Enable certain RadPanelItem(s).
Code Behind:
It doesn't work - is there any way I CAN get that to work?
I want to tell the Panel Bar (On Page Load - a protected void will be called) to Expand or Enable certain RadPanelItem(s).
Code Behind:
protected void LoadPanelItems(){ RadPanelItem expired = rdPnlStatusError.FindItemByValue("ExpiredPassword"); RadPanelItem locked = rdPnlStatusError.FindItemByValue("AccountLocked"); RadPanelItem invalid = rdPnlStatusError.FindItemByValue("InvalidLogin"); RadPanelItem forgot = rdPnlStatusError.FindItemByValue("ForgotPassword"); var errCode = GetError(Request.QueryString["eCode"]); switch (errCode) { case "ValidExpired": expired.Expanded = true; locked.Enabled = false; invalid.Enabled = false; forgot.Enabled = false; break; case "AccountLocked": locked.Expanded = true; expired.Enabled = false; invalid.Enabled = false; forgot.Enabled = false; break; case "Invalid": invalid.Expanded = true; locked.Enabled = false; expired.Enabled = false; forgot.Enabled = false; break; case "ForgotPassword": forgot.Expanded=true; invalid.Enabled = false; locked.Enabled = false; expired.Enabled = false; break; }It doesn't work - is there any way I CAN get that to work?