Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
115 views
2007.2.1010.0
asp.net 2.0

hiya,


I have links on a site, some of them are to external sites.

I need to  prevent a user from opening an external browser window until they have read and acknowledged that it is an external site.

I was thinking of using a tooltip but then realised that the user might have clicked the link before  the tooltip kicks in.

Is it possible to disable the link and only allow the user to proceed when they've clicked "yes/no" within the tooltip?

Any suggestions?

It seems trickier than I first thought.

ta folks,

yogi



Tsvetie
Telerik team
 answered on 20 Nov 2007
1 answer
336 views
I have an asp:button with an OnCommand event.

In the code behind I'd like to Validate the page and return either the tooltip (and show it) or do some other processing.

How do I go about returning the tooltip and showing it ?

Tsvetie
Telerik team
 answered on 20 Nov 2007
2 answers
150 views
Is there a way to override the font used to display the content of the editor.  I'd like it to match the same font style i use for my textboxes.

I've tried applying various styles via my own stylesheet to override it while using the "Vista" skin overall but this doesn't work.  The font seems to default to a large one, noticeably larger than in my other fields on teh page.
George
Telerik team
 answered on 19 Nov 2007
2 answers
236 views
I have a RadMaskedTextbox that I would like to use for phone numbers, but a lot of the data in the database uses various formats.  Is there a field that has the bound value without the mask applied?  Numbers appear to be getting dropped from the Text property once the mast is applied.
Mike Dennis
Top achievements
Rank 1
 answered on 19 Nov 2007
1 answer
172 views
Hello,

i have a problem with RadEditor using cutom skins when opening some dialogs. For example when trying to open LinkManager the following error occures:

Telerik.Web.UI.Editor.ApplyClassDropDown with ID='LinkCssClass' was unable to find embedded skin with name 'Quisa'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

this also happens with some other dialog, for example table properties..

the code for the RadEditor this happens is:
<telerik:RadEditor ID="RadEditor1" runat="server" Skin="Quisa" EnableEmbeddedSkins="false" Width="1165" Height="600">
</telerik:RadEditor>

What can i do to fix this? thanks!
achim
Lini
Telerik team
 answered on 19 Nov 2007
2 answers
158 views

Under Resource and Resource Availability, I copied exact code to my system and here are the following problems.

using System;  
using System.Collections.Generic;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Telerik.QuickStart;  
using Telerik.Web.UI;  
 
namespace Telerik.Web.Examples.Scheduler.ResourceAvailability  
{  
    public partial class DefaultCS : XhtmlPage  
    {  
        private const string UsedResourcesSessionKey = "Telerik.Web.Examples.Scheduler.ResourceAvailability.DefaultCS";  
 
        private List<Resource> UsedResources  
        {  
            get  
            {  
                List<Resource> resources = Session[UsedResourcesSessionKey] as List<Resource>;  
                if (resources == null)  
                {  
                    resources = new List<Resource>();  
                    Session[UsedResourcesSessionKey] = resources;  
                }  
 
                return resources;  
            }  
        }  
 
        private void Page_Load(object sender, EventArgs e)  
        {  
            if (!IsPostBack)  
            {  
                UsedResources.Clear();  
            }  
        }  
 
        private void ReserveResources(ResourceCollection resources)  
        {  
            foreach (Resource res in resources)  
            {  
                if (!UsedResources.Contains(res))  
                {  
                    UsedResources.Add(res);  
                }  
            }  
        }  
 
        private void FreeResources(ResourceCollection resources)  
        {  
            foreach (Resource res in resources)  
            {  
                if (UsedResources.Contains(res))  
                {  
                    UsedResources.Remove(res);  
                }  
            }  
        }  
 
        protected void RadScheduler1_DataBound(object sender, EventArgs e)  
        {  
            foreach (Resource res in RadScheduler1.Resources)  
            {  
                res.Available = !UsedResources.Contains(res);  
            }  
 
            DisplayAvailableResources();  
        }  
 
        protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)  
        {  
            ReserveResources(e.Appointment.Resources);  
        }  
 
        protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)  
        {  
            ReserveResources(e.Appointment.Resources);  
        }  
 
        protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)  
        {  
            FreeResources(e.Appointment.Resources);  
            ReserveResources(e.ModifiedAppointment.Resources);  
        }  
 
        protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)  
        {  
            FreeResources(e.Appointment.Resources);  
        }  
 
        protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)  
        {  
            List<string> users = new List<string>();  
            foreach (Resource user in e.Appointment.Resources.GetResourcesByType("User"))  
            {  
                users.Add(user.Text);  
            }  
 
            Label assignedTo = (Label) e.Container.FindControl("AssignedTo");  
            if (users.Count > 0)  
            {  
                assignedTo.Text = "Assigned to: " + string.Join(", ", users.ToArray());  
            }  
            else  
            {  
                assignedTo.Text = "Not assigned.";  
            }  
 
            Resource room = e.Appointment.Resources.GetResourceByType("Room");  
            if (room != null)  
            {  
                Label location = (Label) e.Container.FindControl("Location");  
                location.Text = "Location: " + room.Text;  
            }  
        }  
 
        private void DisplayAvailableResources()  
        {  
            List<string> users = new List<string>();  
            foreach (Resource user in RadScheduler1.Resources.GetResourcesByType("User"))  
            {  
                if (user.Available)  
                {  
                    users.Add(user.Text);  
                }  
            }  
 
            AvailableUsers.Text = string.Join(", ", users.ToArray());  
 
            List<string> rooms = new List<string>();  
            foreach (Resource room in RadScheduler1.Resources.GetResourcesByType("Room"))  
            {  
                if (room.Available)  
                {  
                    rooms.Add(room.Text);  
                }  
            }  
 
            AvailableRooms.Text = string.Join(", ", rooms.ToArray());  
        }  
    }  
}  
 

AppointmentCreatedEventArgs and AppointmentUpdateEventArgs  are not part of the using Telerik.Web.UI;

and when I remove that part this error message shows up.

CS0117: 'Telerik.Web.UI.Resource' does not contain a definition for 'Available'

How would I update my sqldatasource with the scheduler?
Peter
Telerik team
 answered on 19 Nov 2007
1 answer
196 views
Hi,
I would like to have a different css (color, background) for each status of an appointment in my application: Booked, Confirmed, Rejected etc
How this can be achieved?
I've seen a demo on your website but is there another approach?
I mean on AppointmentCreated event can it be possible to custom code and retrieve a different css based on CSS file ?
    .RadScheduler_Default .Booked .rsTaskWrap
{
    border-bottom-style:double;
    border-bottom-color:Maroon;   
}

    .RadScheduler_Default .Confirmed .rsTaskWrap
{
    border-bottom-style:dashed;
    border-bottom-color:Orange;   
}

Thanks in advance,
Florin
Peter
Telerik team
 answered on 19 Nov 2007
1 answer
196 views
I am trying to replicate this example:
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/Ajax/TreeView/DefaultCS.aspx?product=treeview

but i am trying to use master pages and also to place the code in a control. Due to the fact that the RadAjaxManager1 is in the master page it cannot see the RadTreeView controls. Below is an extract from the example showing how it is done without using c# code:

<rada:AjaxSetting AjaxControlID="RadAjaxManager1">

<UpdatedControls>

<rada:AjaxUpdatedControl ControlID="tree2"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="tree1"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="dummy_label1" LoadingPanelId="LoadingPanel2"></rada:AjaxUpdatedControl>

<rada:AjaxUpdatedControl ControlID="dummy_label2" LoadingPanelId="LoadingPanel2"></rada:AjaxUpdatedControl>

</UpdatedControls>

</rada:AjaxSetting>

This issue has been driving me mad help would be much appreciated.

Thanks

Mark

Sebastian
Telerik team
 answered on 19 Nov 2007
1 answer
146 views
Hi guys, first off the new controls seem great, however ima having a small snag with a RadDockZone inside a RadSplitter, the idea is that you have a radSplitter with two columns, in the left a sliding pane, and in the right, two RadDockZone controls, the Slider should overlap the dockzones however it seems like the z-index for the dockzone is way too high, is there a fix or can you guys shed any light, cheers guys, this is really putting a downer on my plans

Si

Petya
Telerik team
 answered on 19 Nov 2007
2 answers
184 views

  There is a MS Slider Extender used in my AdvancedInsertTemplate of the Scheduler. The finding indicates that the error messages ,the object reference is not an object execution instance, is always shown if enabling the Ajax feature of the Scheduler in RadAjaxManager. However, it is disappearred if removing the Ajax configuration.

  Could someone point me in the direction of how to solve this?

<AdvancedInsertTemplate> 
  <div style="position: relative; background: #E6E6E6; height: 100%; border: 1px solid #666666;">  
    <div style="margin-left: 10px; margin-top: 5px;">  
      Description:<br /> 
      <asp:TextBox ID="Field_Subject" Rows="5" Columns="20" runat="server" Text='<%# Bind("Subject") %>' Width="95%" TextMode="MultiLine"></asp:TextBox><br /> 
        <span style="width: 50px;">Start time:</span>&nbsp;  
        <radCln:RadDatePicker ID="Field_StartDate" runat="server" SelectedDate='<%# Bind("Start") %>'></radCln:RadDatePicker> 
        <radCln:RadTimePicker ID="Field_StartTime" runat="server" SelectedDate='<%# Bind("Start") %>'></radCln:RadTimePicker><br/>  
        <span style="width: 50px;">End time:</span>&nbsp;  
        <radCln:RadDatePicker ID="Field_EndDate" runat="server" SelectedDate='<%# Bind("End") %>'></radCln:RadDatePicker> 
        <radCln:RadTimePicker ID="Field_EndTime" runat="server" SelectedDate='<%# Bind("End") %>'></radCln:RadTimePicker><br/>  
        <span style="width: 100px;">Completed Ratio:</span>&nbsp;  
        <asp:TextBox ID="Field_CompletedRatio" runat="server"></asp:TextBox> 
        <asp:TextBox ID="Field_CompletedRatio_Value" runat="server" ReadOnly="true" Text="1" Width="25"></asp:TextBox>          <ajaxToolkit:SliderExtender ID="SliderExtender1" runat="server" Minimum="1" BoundControlID="Field_CompletedRatio_Value" TargetControlID="Field_CompletedRatio"></ajaxToolkit:SliderExtender><br/>  
        <span style="width: 100px;">Content Type ID:</span> 
        <asp:DropDownList ID="Field_ContentTypeID" runat="server" Width="204px"></asp:DropDownList><br/>  
        <span style="width: 100px;">Result Type ID:</span> 
        <asp:DropDownList ID="Field_ResultTypeID" runat="server" Width="204px"></asp:DropDownList><br/>  
        <span style="width: 100px;">Process Instance ID:</span> 
        <asp:DropDownList ID="Field_ProcessInstanceID" runat="server" Width="204px"></asp:DropDownList><br/>  
        <span style="width: 100px;">Workitem ID:</span> 
        <asp:DropDownList ID="Field_WorkitemID" runat="server" Width="204px"></asp:DropDownList>                     
        <div class="blueBox" style="margin-bottom: 5px; position: absolute; bottom: 0px">  
          <asp:LinkButton ID="InsertButton" runat="server" CommandName="Insert">  
            <asp:Image runat="server" ID="insertImage" ImageUrl="Images/Edit.gif" AlternateText="insert" /></asp:LinkButton> 
          <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"><asp:Image runat="server" ID="Image2" ImageUrl="Images/cancel.gif" AlternateText="cancel" /></asp:LinkButton> 
        </div> 
    </div> 
  </div> 
</AdvancedInsertTemplate> 
Joe Ma
Top achievements
Rank 1
 answered on 19 Nov 2007
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?