Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
136 views

I'm still conflicted about how to load the advanced form and prepopulate custom controls on an existing appointment.

Currently my GetAppointments method will return a collection of Telerik Appointments which the scheduler can easily understand and render.
When I go to edit an existing appointment, I need to bind data to custom controls that the appointment class does not have.
I'm still not certain how this is acheived.

I've toyed with creating my own appointment class that derives from the telerik one but the web service provider method I am using will only allow implementing methods that use the telerik appointment.

The thing that I am missing is what happens when a user clicks on the existing appointment.
 Where does my custom data will come from?
I have the ID of my appointment in the telrik appointment object. Am I to make a DB call to get the extra info?

Here's an example of my provider.Get method. This method returns the appointments to the scheduler.

                List<Appointment> appointmentsList = new List<Appointment>();  
                List<MySpecificAppointment> appts = new List<MySpecificAppointment>();  
 
                using (AppointmentFacade af = new AppointmentFacade())  
                {  
                    appts = ocsf.GetSecureAppointments(HttpContext.Current.User.Identity.Name); //gets appts for user  
                }  
 
                foreach (var apt in appts)  
                {  
                    Telerik.Web.UI.Appointment appointment = new Appointment();  
                    appointment.Start = apt.Start;  
                    appointment.End = apt.End;  
                    appointment.Description = apt.Description;  
                    appointment.Subject = apt.Subject;  
                    appointment.RecurrenceState = apt.RecurrenceState;  
                    appointment.RecurrenceRule = apt.RecurrenceDescription;  
                    appointment.RecurrenceParentID = apt.RecurrenceParentID;  
                    appointment.ID = apt.Id;  
                    appointmentsList.Add(appointment);  
                } 

I can fill the telrik appointment with common objects but anything specififc to MySpecififcAppointment is lost. When a user goes to edit the existing appointment, when the advanced form is loaded only Telerik.Appointment properties will be properly prepopulated.

Any help would be fantastic. Cheers.

Peter
Telerik team
 answered on 03 Oct 2011
1 answer
186 views
I am trying to add a custom dialog for the RadEditor.  I added the code by following the example here http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx. But I am getting error Telerik.Web.UI.Editor.CommandList is null. I am using the version 2010.3.1325.
Princy
Top achievements
Rank 2
 answered on 03 Oct 2011
1 answer
82 views
Hi

I am trying to use radopen to present a RadWindow.

I have looked at your example at :

http://demos.telerik.com/aspnet-ajax/window/examples/radopen/defaultcs.aspx

However when my window appears none of the settings in my RadWindow definition are being used.

Here's my RadWindow defintion

 

 

<telerik:RadWindow ID="CustomClientDataViewRadWindow" runat="server"

 

 

 

Behaviors="Close,Maximize,Move,Resize"

 

 

 

Height="600px"

 

 

 

IconUrl="../Images/pencil.png"

 

 

 

Modal="True"

 

 

 

ReloadOnShow="True"

 

 

 

Title="Device > Custom View"

 

 

 

VisibleOnPageLoad="False"

 

 

 

VisibleStatusbar="False"

 

 

 

Width="985px">

 

 

 

</telerik:RadWindow>

This definition is contained inside a UserControl. 

Here's my radopen statement

 

radopen(

 

"CustomDataViewPage.aspx?FolderID=" + FolderID + " &NodeType=2&ApplicationType=1", "CustomClientDataViewRadWindow");

CustomDataViewPage.aspx is my own page with its own code behind.
The radopen call is made inside a function in a separate .js file, rather then in a script block.

Once again any help greatly appreciated.


Do I need to invoke the radopen in the context of the RadWindowManager

 

Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
52 views
Hi

 

div.RadScheduler_Sitefinity .rsMonthView .rsTodayCell
{
background-color: #CCFF00;
color: #000;
border: 1px solid #000;
}

I have set above in my stylesheet and was working very fine until In the Page_Load event
I added a line as below.

RadScheduler1.TimeZoneOffset =
TimeSpan.Parse(userSettingRow.UserTimeZone);

The TimeZone works fine, but I notice that the stylesheet no longer works and all cell have same background color (White).

-JD

 

Peter
Telerik team
 answered on 03 Oct 2011
1 answer
64 views
I get an error when trying to invoke a tooltip that .show() is an undefined method.  The specific code is:

var tooltip = $find('OrderToolTip');
tooltip.show();

I am not using jQuery in the application, so can I use the client-side tool tip API without it?  I've had a tool tip working on another project in the past, which also didn't use jQuery, but I no longer have the code.

Marin Bratanov
Telerik team
 answered on 03 Oct 2011
6 answers
286 views
I am trying to cancel the postback of an onItemClick command inside of an onClientItemClick command.

 <script type="text/javascript">  
        function onMenuItemClicked(sender, eventArgs) {  
            alert("Testing");  
            return false;  
        }  
</script> 
 
<telerik:RadContextMenu ID="menuContextMenu" runat="server" OnClientItemClicked="onMenuItemClicked" 
                                        onitemclick="menuContextMenu_ItemClick">  
    <Items> 
       <telerik:RadMenuItem Text="Add Sub Menu" Value="1"></telerik:RadMenuItem> 
       <telerik:RadMenuItem Text="Remove" Value="2"></telerik:RadMenuItem> 
    </Items> 
    <Targets> 
       <telerik:ContextMenuTagNameTarget TagName="menuNode" /> 
    </Targets> 
</telerik:RadContextMenu> 

The javascript runs properly as I get the alert but the post back still occurs even though the function returned false.

I have also tried changing the OnClientItemClicked to  "return onMenuItemClicked();" but this breaks the RadContextMenu all together and I get errors on the page due to improper syntax.

I have also tried adding "window.event.returnValue = false;" to the javascript but have also had no luck with that.

Any help would be greatly appreciated.
Piyush
Top achievements
Rank 1
 answered on 03 Oct 2011
4 answers
401 views
Hi,

I'm using RAD Q3 2009, I have an open window which include some controls (textbox and rad combo), I need to do the following when a user click a close button (asp.net button):
1. return a url to the parent page.
2. redirect parent page to the new url.
3. close the window.

Thank you.
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
1 answer
39 views
When choosing an Thumbnail image in the ImageManager the last row  Open in a new window
is "hidden" for Google Crome. When resizing the font size (ctrl + or -) one can see the last row again.

   
Rumen
Telerik team
 answered on 03 Oct 2011
7 answers
188 views
There is a bewildering number of options that can be placed on list boxes when it comes to drag-and-drop.

It there a combination of options that I can set that enforces the following:

  - Items can be copied from lstAvailableFiles to lstAssignedFiles, either by dragging or by button presses
  - Items can not be dragged in any way from lstAssignedFiles to lstAvailableFiles
  - lstAvailableFiles
 cannot be reoordered
  - Once an item is in lstAssignedFiles, items can be reoordered or removed

I have tried various options, but I cannot seem to make lstAvailableFiles a drag source without making it a drop target as well.

I've enclosed an image of the controls, and here is the current code.

<tr>
   <td>
      <Telerik:RadListBox
          ID="lstAssignedFiles"
          runat="server"
          Width="100%"
          Rows="20"
          SelectionMode="Multiple"
          Height="250px" 
          EnableDragAndDrop="true"
          AllowTransferDuplicates="true"
          AllowReorder="True"
          AllowTransfer="False"
          AllowDelete="True"
          ButtonSettings-Position="Left"
          ButtonSettings-ShowTransfer="False"
          ButtonSettings-ShowTransferAll="False" />
 
   </td>
   <td>
      <Telerik:RadListBox
          ID="lstAvailableFiles"
          runat="server"
          Width="100%"
          Rows="20"
          SelectionMode="Multiple"
          AllowTransfer="true"
          AllowTransferDuplicates="true"
          EnableDragAndDrop="true"
          TransferMode="Copy"
          TransferToID="lstAssignedFiles"
          ButtonSettings-Position="Left"
          Height="250px"  />
   </td>
</tr>



Ricardo Pinto
Top achievements
Rank 1
 answered on 03 Oct 2011
4 answers
118 views
I am using a very simple example I got from your website that loads the radwindow on pageload using the VisibleOnPageLoad property.  It works in firefox and ie8 but not in ie9.  I tried turning off  the "pop-up blocker" but still no luck.  Also I am using the 2009.02.0701.35 version of your library.  Any help would be appreciated.
<telerik:RadScriptManager ID="ScriptManager" runat="server" />
    <telerik:RadWindow
        ID="RadWindow1"
        runat="server"
        Width="350"
        Height="350"
        Behaviors="Default"
        VisibleOnPageLoad="true"
        NavigateUrl="http://www.google.com" />
Marin Bratanov
Telerik team
 answered on 03 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?