| Service_Desk_SQL data; |
| RadChart RadChart1; |
| ChartSeries empData; |
| ChartSeries stackEmpData; |
| stackEmpData = new ChartSeries(); |
| data = new Service_Desk_SQL(); |
| empData = new ChartSeries(); |
| RadChart1 = new RadChart(); |
| RadChart1.ChartTitle.TextBlock.Text = "Time Breakdown by Employee"; |
| RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.Visible = false; |
| RadChart1.RemoveAllSeries(); |
| RadChart1.Width = 800; |
| RadChart1.Height = 800; |
| RadChart1.SeriesOrientation = ChartSeriesOrientation.Horizontal; |
| RadChart1.RemoveAllSeries(); |
| RadChart1.AddChartSeries(empData); |
| if (styleDropDown.SelectedValue.ToString().ToLower() == "stacked %") |
| RadChart1.AddChartSeries(stackEmpData); |
| UpdatePanel1.ContentTemplateContainer.Controls.Add(RadChart1); |
I have 2 RadAjaxPanels, one panel consists of drop down and another panel consists of text box, scheduler and radgrid. when the user enters text in the text box and clicks search button, another radwindow opens with all names and he can select any name given in the child radwindow and the child radwindow closes and the parent radwindow is reloaded. What I want is I dont want to reload the entire page, I dont want to change the selected values which are there in the drop down, I just want to reload the controls in the second panel.
For that purpose I replaced some code in the javascript
function CloseAndReload()
{
var oWnd = GetRadWindow();
//oWnd.BrowserWindow.location.href=oWnd.BrowserWindow.location.href;
oWnd.BrowserWindow.RadAjaxPanel2.href=oWnd.BrowserWindow.RadAjaxPanel2.href;
oWnd.Close();
}
If the above code is written the content radwindow javascript, now after selecting the name from the child radwindow, the sessions are repopulated but the controls are not bound and refreshed.However the value of the dropdown in the first panel remains the same, which I want.
Any suggestions?

Dim
editCMD As New DockCommand
editCMD.Name =
"editCMD"
editCMD.Text =
"Edit"
editCMD.CssClass =
"pullEditImage"
editCMD.AutoPostBack =
True
aDock.Commands.Add(editCMD)
AddHandler aDock.Command, AddressOf dock_Command
here is the handler from where I want to open a radwindow.
Sub dock_Command(ByVal sender As Object, ByVal e As DockCommandEventArgs)
If e.Command.Name = "editCMD" Then
'open window to edit
Dim nw As New RadWindow
nw.ID =
"asdfasdfsd"
nw.NavigateUrl =
"./previews.aspx?show=DDLPropertiesCTL&i=a"
nw.VisibleOnPageLoad = True
Dim rwm As RadWindowManager = CType(Page.FindControl("RadWindowManager1"), RadWindowManager)
rwm.Windows.Add(nw)
End If
End Sub
I am trying to do it this way but this is not working. Please can someone help me out here.
Thanks
| <asp:LinkButton ID="InsertEvent" runat="server">New Event</asp:LinkButton> |
| Protected Sub InsertEvent_Click(ByVal sender As Object, ByVal e As EventArgs) Handles InsertEvent.Click |
| RadScheduler1.ShowAdvancedInsertForm(DateTime.Now) |
| End Sub |