<telerik:RadEditor ID="RadEditor1" runat="server" ImageManager-EnableImageEditor="false" EnableEmbeddedSkins="true" Width="98%" AllowScripts="true" height="560px" ToolsFile="../UserControls/EditorTools.xml" OnClientLoad="OnClientLoad">
<content>Your Code Here</content>
</telerik:RadEditor>
server side code..
RadEditor1.MediaManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName
RadEditor1.FlashManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName
RadEditor1.ImageManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName
RadEditor1.DocumentManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName
RadEditor1.TemplateManager.ContentProviderTypeName = GetType(ServerContentProvider).AssemblyQualifiedName
RadEditor1.MediaManager.UploadPaths = New String() {ClientName & "/Objects/Media", ClientName & "/Objects/" & WebSiteName & "/Media"}
RadEditor1.FlashManager.UploadPaths = New String() {ClientName & "/Objects/Flash", ClientName & "/Objects/" & WebSiteName & "/Flash"}
RadEditor1.ImageManager.UploadPaths = New String() {ClientName & "/Objects/Images", ClientName & "/Objects/" & WebSiteName & "/Images"}
RadEditor1.DocumentManager.UploadPaths = New String() {ClientName & "/Objects/Documents", ClientName & "/Objects/" & WebSiteName & "/Documents"}
RadEditor1.TemplateManager.UploadPaths = New String() {ClientName & "/Objects/Templates", ClientName & "/Objects/" & WebSiteName & "/Templates"}
RadEditor1.MediaManager.ViewPaths = New String() {ClientName & "/Objects/Media", ClientName & "/Objects/" & WebSiteName & "/Media"}
RadEditor1.FlashManager.ViewPaths = New String() {ClientName & "/Objects/Flash", ClientName & "/Objects/" & WebSiteName & "/Flash"}
RadEditor1.ImageManager.ViewPaths = New String() {ClientName & "/Objects/Images", ClientName & "/Objects/" & WebSiteName & "/Images"}
RadEditor1.DocumentManager.ViewPaths = New String() {ClientName & "/Objects/Documents", ClientName & "/Objects/" & WebSiteName & "/Documents"}
RadEditor1.TemplateManager.ViewPaths = New String() {ClientName & "/Objects/Templates", ClientName & "/Objects/" & WebSiteName & "/Templates"}
<AppointmentTemplate>
<asp:Label ID="lblTitle" runat="server"><%# Eval("customTitle") %></asp:Label>
</AppointmentTemplate>
I call various function that popluate this field wiht various pieces of text. I use the following code
RadScheduler1.DataKeyField =
"ID";
RadScheduler1.DataStartField =
"Start";
RadScheduler1.DataEndField =
"End";
RadScheduler1.DataSubjectField =
"Subject";
RadScheduler1.DataRecurrenceField =
"RecurrenceRule";
RadScheduler1.DataRecurrenceParentKeyField =
"RecurrenceParentID";
PupilManagementPupilsService pmpService = new PupilManagementPupilsService();
using (TList<PupilManagementPupils> pmpList = pmpService.GetAll())
{
foreach (PupilManagementPupils pmpItem in pmpList)
{
DateTime dteDOBDateTime;
string txtDate;
string[] arrayDateTime;
if (!String.IsNullOrEmpty(pmpItem.TxtDob.ToString()))
{
txtDate = pmpItem.TxtDob.ToString();
arrayDateTime = txtDate.Split(
' ');
txtDate = arrayDateTime[0].ToString();
dteDOBDateTime =
DateTime.Parse(pmpItem.TxtDob.Value.ToShortDateString());
Appointment appointment = new Appointment("DOB_" + pmpItem.TxtSchoolId.ToString(), dteDOBDateTime, dteDOBDateTime, "none found");
appointment.Attributes[
"customTitle"] = "Interview : ";
appointments.Add(appointment);
}
}
}
RadScheduler1.DataSource = appointments;
RadScheduler1.DataBind();
and it doesnt show anything in the customTitle field, even when i hardcode text in.
Do you have any ideas why it would do this? Is there a limit to the number of customfields allowed ?
It works for a few functions correctly but for some reason this one doesnt do anything. I have done a trace and its getting into the function correctly etc..just not populating the custom field
Thanks
Greg
| function ToolbarButtonClicked(sender, args) |
| { |
| ValidateFields(button.get_toolTip()) |
| args.set_cancel(true); |
| } |
| <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> |
| <script type="text/javascript"> |
| (function($) { |
| $(document).ready(function() { |
| alert("home"); |
| // Tabs |
| var param1 = $.getURLParam("tab"); |
| $('#example').tabs({ |
| load: function(event, ui) { |
| $('a', ui.panel).click(function() { |
| $(ui.panel).load(this.href); |
| return false; |
| }); |
| } |
| }); |
| }) |
| })($telerik.$); |
| </script> |
| </telerik:RadCodeBlock> |
| <telerik:RadScriptManager Runat=server id="RadScriptManager1"> |
| <Scripts> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> |
| <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
I have been able to get RadToolTipManager working in one project, creating everything dynamically, but when I port that code to another more complex project it doesn't seem to work. I think I'm missing something simple.
In the first project I have an asp:UpdatePanel with a PlaceHolder.
In my Page_Init I initialize a RadToolTipManager, and set AjaxUpdate as follows:
tipManager.AjaxUpdate += new ToolTipUpdateEventHandler(tipManager_AjaxUpdate);
One or more asp:ImageButton controls are "tooltipified" by adding them using this:
tipManager.TargetControls.Add(ControlID , Value , IsClient);
Then the manager is added to the Controls collection of the PlaceHolder.
Mouseover events properly fire over the controls, the handler is invoked, and the panel is properly loaded with a defined user control.
I take that code to a project with a master page, a content page, and dynamically loaded user controls.
When a user control is initialized, a PlaceHolder is populated with the RadToolTipManager.
I have a single asp:Button that I'm trying to tooltipify.
The PlaceHolder is on an asp:Panel which is ajaxified at PreRender time using this:
AjaxManager.AjaxSettings.AddAjaxSetting(PanelX , PanelX);
At PreRender time I also reset the text of the TargetControls based on the status of the page, and (not sure if this helps or hurts), I ajaxify each RadToolTipManager I find in the Placeholder:
AjaxManager.AjaxSettings.AddAjaxSetting(btnMyButton,tipManager);
I don't know why but a mouseover on the button will show a .ToolTip value which was added directly to the control, but the AjaxUpdate event isn't fired on the RadToolTipManager.
I've also set the ajax manager to update the container panel whenever the button is updated:
AjaxManager.AjaxSettings.AddAjaxSetting(btnMyButton,PanelX);
Is you can see, I'm trying to ajaxify everything to figure out what triggers the manager's AjaxUpdate event, but haven't had any luck. I don't know if we need to ajaxify just the panel containing the placeholder, the placeholder, the manager, each ToolTipTargetControl in the manager...?
Thanks for your patience.
| function tvNavigation_ClientNodeDropping(sender, args) { |
| var elem = args.get_htmlElement(); |
| if(elem==null || elem.id != "TrashCan") { |
| args.set_cancel(true); |
| return; |
| } |
| var tree = $find('<%= tvNavigation.ClientID %>'); |
| tree.trackChanges(); |
| try { |
| var sourceNode = args.get_sourceNode(); |
| var parent = sourceNode.get_parent(); |
| parent.get_nodes().remove(sourceNode); |
| } |
| catch(ex) { console.log(ex); } |
| tree.commitChanges(); |
| } |
Protected
WithEvents ScriptManager1 As Global.System.Web.UI.ScriptManager
has error.. What did I miss?..