function approveClick(comboBox) { //Here i would like to get the checked nodes, //from the treeview and then to concatenate the nodes text value, //to the input field like: comboBox.set_text("node1;node2;node3"); comboBox.hideDropDown(); }<telerik:RadXmlHttpPanel runat="server" ID="xmlPanel" onservicerequest="Panel_ServiceRequest" Width="100%" Height="100%" Skin="Black"> <telerik:RadRotator ID="ItemRotator" RotatorType="CoverFlowButtons" runat="server" Height="200px" Width="400px" ItemWidth="100" ItemHeight="100"> <ItemTemplate> <div style="width:96px; height:96px; margin:2px; background-color: black; border:2px solid white;"> <asp:label ID="Label1" runat="server"><%#Eval("Caption")%> </asp:label> </div> </ItemTemplate> </telerik:RadRotator> <hr /> <asp:Repeater runat="server" ID="ItemRepeater"> <ItemTemplate> <div style="width:400px; height: 100px; background-color:Black;border:2px solid white; float:left; margin: 2px;"> <asp:Label runat="server"> <%#Eval("Caption") %></asp:Label> </div> </ItemTemplate> </asp:Repeater> </telerik:RadXmlHttpPanel>protected void Page_Load(object sender, EventArgs e) { String AbsoluteURL = ""; AbsoluteURL = "xmldata.aspx"; Data = DataFetcher.URLtoDataset(AbsoluteURL, DataFetcher.DataKind.RecordSet); ItemRotator.DataSource = Data; ItemRotator.DataBind(); ItemRepeater.DataSource = Data; ItemRepeater.DataBind(); }protected void Panel_ServiceRequest(object sender, RadXmlHttpPanelEventArgs e) { SelectedData = GetSelectedData(); ItemRotator.DataSource = SelectedData; ItemRotator.DataBind(); ItemRepeater.DataSource = SelectedData; ItemRepeater.DataBind(); }
String strJScript = "<script type=\"text/javascript\">alert('hello');</script>";
this.Page.RegisterClientScriptBlock("EditEvent",strJScript);
}
But then the AppointmentCreated() event was also fired where I added some code to customize the event tooltip.
protected void rsRadScheduler_AppointmentCreated(object sender, Telerik.Web.UI.AppointmentCreatedEventArgs e)
{
e.Appointment.ToolTip = GetTooltip(Convert.ToInt32(e.Appointment.ID));
_EventID = Convert.ToInt32(e.Appointment.ID);
}
Thing is the javascript was registered without errors but it did not execute. It was as good as nothing happened when I clicked on the appointment. Only that the tooltip was displayed...
In place of the alert method, I was originally trying to open a RADWindow (javascript) inside the AppointmentClick method. But since that didn't work when I tried it, I wanted to test if any javascript will be executed inside the method. Unfortunately, nothing happened.
How will I be able to open a RADWindow on AppointmentClick()? Do you have other suggestions or approach that could help me do this?
Thank you...
