Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
91 views
hi

i faced some problem in rad editor flash filemanager.. while i am going to flash file manager... after upload i go for preview but my application its not working ... its not display... other file manger its working fine...  how can i solve this problem pls help me... i given all the path. viewpath,uploadpath eveithing... here by i past my code pls check it

client side code..

<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"}

karthik
Top achievements
Rank 1
 asked on 16 May 2009
4 answers
163 views
Hi
 I have created a custom attribute using

 

<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

Andrew
Top achievements
Rank 1
 answered on 16 May 2009
1 answer
121 views
Hi,

I am using the RadScheduler. I have also just upgrade our package from Q1 2008 to Q1 2009.
After the upgrade I got all sorts of script errors, and one of them is with the RadScheduler.
I have stripped the code to the minimal test it by reverting it back to Q1 2008, and the exact same code works in Q1 2008.
Here's my code:

            _theCalendar1 = new RadScheduler();
            _theCalendar1.ID = "Calendar1";
            _theCalendar1.DataKeyField = "ID";
            _theCalendar1.DataSubjectField = "Title";
            _theCalendar1.DataStartField = "Start";
            _theCalendar1.DataEndField = "End";
            this._mainUpdatePanel.Controls.Add(_theCalendar1);

And the error I got is "Object doesn't support this property or method." But the exact same code works for 2008.

Please advise.

Thanks,
Vincent


Peter
Telerik team
 answered on 16 May 2009
1 answer
147 views
Hi, I have a splitbutton on the toolbar that calls the following function:

  function ToolbarButtonClicked(sender, args)  
  {                
      ValidateFields(button.get_toolTip()) 
      args.set_cancel(true); 
  }   


As you can see I cancel the action in order to execute a javascript function instead of doing a postback. But once this function executes the dropdown menu for the splitbutton is still open. I've looked at the SDK documentation but I can't seem to find a way to close this menu client-side. Can you help me?

Thanks.
Peter
Telerik team
 answered on 16 May 2009
1 answer
113 views
Hello


I have a page that shows all the appointments in a grid, when the user clicks on one appointment in the grid, I would like to take them to a new page with the scheduler on it, pass in the Appointmentid to the sceduler and show it in AdvancedEditTemplate  view with all the details. At the moment it just goes to the month view and then they have to click again to go to the AdvancedEditTemplate  view.
Is this possible?


Thanks

Kati
Peter
Telerik team
 answered on 16 May 2009
1 answer
130 views
What we would like is a page with three sections.  A fixed-height header across the top, a fixed-height footer at the bottom, and a pair of panes with a vertical splitter bar between them in the middle.  That's easy enough to do.

The trick is getting this to adjust to the size of the browser window.  We'd like for the header and the footer to stay at the top and bottom of the window, and for all of the expansion to happen in the splitter panes.  The combined width of the two panes + the splitter should always match the width of the browser window.  The combined height of the panes and the header and footer should always match the height of the browser window.  If this works right, we should never see scroll bars at the browser window level.  Instead, we'd see scrollbars inside one or both of the splitter panes.

Right now, we're trying to sledgehammer this into working using javascript tied to window.onresize.  But I'm wondering if there isn't a way of making this work using css rules.

Idea?
Svetlina Anati
Telerik team
 answered on 16 May 2009
2 answers
129 views
How do I enable jQuery for Telerik controls? I am running a sharepoint site with Telerik.Web.UI dll in the GAC. And the approach on the following blog post here does not work since my DLL is in the GAC.

I can see that jQuery is automatically loaded but for some reason the following code will not run.

<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> 

If I do this, I get an error stating that it cannot find my Telerik DLL.

<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> 
 

But if I put it in the Bin folder it throws a conflict error because the DLL is in the GAC. So I am not sure what else to do here.





Stanimir
Telerik team
 answered on 16 May 2009
1 answer
101 views

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.

Svetlina Anati
Telerik team
 answered on 16 May 2009
3 answers
758 views
I am using the following client-side code to delete a node from a tree:
        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(); 
        } 

It successfully delete the node client-side but throws this exception in the console:

[Exception... "'Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "JS frame :: chrome://firebug/content/spy.js :: onHTTPSpyReadyStateChange :: line 497" data: no]

Also, the node does not get deleted server-side.  Running the project in debug mode, I never see where or how the exception get raised.  Is there any solution to this problem?

* I am using Q1 2009 SP1 controls



Simon
Telerik team
 answered on 16 May 2009
0 answers
55 views
Good day,
I've been trying to run ASPNET AJAX for almost the whole day now but seems like its not working for me.
Im using Visual Studion 2005, MS SQL SERVER 2005.  Is ASPNET AJAX Q1 2009 compatible with VS2005?
I already fallowed instructions from this document: "Adding RadControls for ASP.NET AJAX to an existing application"
http://www.telerik.com/help/aspnet-ajax/adding%20radcontrols%20prometheus%20to%20an%20existing%20application.html
Already installed ASP.NET AJAX and Configured my webconfig.
I've added ScriptManager and RadAjaxManager to my Masterpage and this error showed up.
Error 147 Type 'System.Web.UI.ScriptManager' is not defined.
on my Masterpage.master.designer.vb the 

Protected

 

WithEvents ScriptManager1 As Global.System.Web.UI.ScriptManager

 

has error.. What did I miss?..
Thanks in advance,
Ian



RJ
Top achievements
Rank 1
 asked on 16 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?