Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
238 views
Hello,

I have a scheduler and it has the following properties:

<telerik:RadScheduler runat="server" ID="Scheduler"
GroupBy="Date,JobTitle"
GroupingDirection="Vertical"
DataKeyField="ID"         
DataSubjectField="Subject"
DataStartField="Start"
DataEndField="End"
SelectedView="MultiDayView"
ShowAllDayRow="false"           
ShowHeader="false"
ShowFooter="false"
ShowFullTime="true"
MinutesPerRow="60"
MultiDayView-ColumnHeaderDateFormat="dddd"
StartInsertingInAdvancedForm="true"
StartEditingInAdvancedForm="true"
OverflowBehavior="Expand"

My scheduler displays 8 days at a time, so it is quite long (OverflowBehavior="Expand"). When I press delete button of appointment, the confirmation dialog appears. And it appears at the center of scheduler, so user have to scroll the page down. This is very confusing and I need your help to find a workaround solution...
Waqas
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
315 views
hi dear telerik admin,
please see this thread : 
RadComboBox Advanced Multiple Selection

and this is my RadComboBox :

<telerik:RadComboBox ID="radcbFrom" runat="server" DataSourceID="sdsFrom_WebSites"
    DataTextField="From_WebSite" DataValueField="From_WebSite" EnableEmbeddedSkins="false"
    Skin="BlackByMe" ValidationGroup="A" Width="240px" LoadingMessage="Loading ..."
    CausesValidation="False" MaxHeight="150px" AppendDataBoundItems="True" HighlightTemplatedItems="true"
    OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosing="OnClientDropDownClosing"
    OnClientSelectedIndexChanging="OnClientSelectedIndexChanging" OnClientBlur="OnClientBlur">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="All" Value="-1" />
    </Items>
    <ItemTemplate>
        <asp:CheckBox runat="server" ID="CheckBox" onclick="checkboxClick();" Text='<%# DataBinder.Eval(Container, "Text") %>' />
    </ItemTemplate>
</telerik:RadComboBox>

all of my server and client side codes are like that example.
my problem is when my page is loaded there is no "All" text next it's check box. 
what is the problem and how can i fix? 
as you see my radcombobox is a little different from that example.
in my situation there is sql datasource and AppendDataBoundItems="True"

thanks in advance
Ivana
Telerik team
 answered on 20 Jun 2012
1 answer
172 views
hy,

I have a radcombobox and i am showing context menu on this control.I want highlight or show an image on the selected item of radcontextmenu.

I have tried like this
function RadContextMenu1_ItemClicked(sender, args) {
      args._item.set_selectedImageUrl("~/Images/Selected.png")
}

Help me
Princy
Top achievements
Rank 2
 answered on 20 Jun 2012
1 answer
132 views
Hi, I am trying to bind to a hierarchical grid using DetailTableDataBind with DataTable.Select as described here.

GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;
DataTable dt = (DataTable)e.DetailTableView.DataSource;
e.DetailTableView.DataSource = dt.Select("BQRef == '" + parentItem["BQRef"].Text + "'");

But upon binding, I've received an error, stating "Cannot find a cell bound to column name 'BQRef'". Any ideas? Thanks in advance.
Jayesh Goyani
Top achievements
Rank 2
 answered on 20 Jun 2012
0 answers
139 views
Hi All,

I have tried Telerik ASP.Net Ajax Component trial version, and I have development some simple application in visual studio and working well, but After I tried to publish and deploy in IIS, and try to call the application that I've developed before, the page /application not working properly, the page has showed but freeze, the ajax is not work. anoyone can help me?

nb:
I develop and publish in same machine (win server 2008 R2 64bit)

thanks,
Pantara
Rory
Top achievements
Rank 1
 asked on 20 Jun 2012
1 answer
80 views
Hello,

How could i change the following code in order to support multiple resources (ResourceType User cannot be concurrently to more than one ResourceType Room)?

using System.Web.UI;
using Telerik.Web.UI;
 
namespace Telerik.Web.Examples.Scheduler.Default
{
    public partial class DefaultCS : System.Web.UI.Page
    {
        private const int AppointmentsLimit = 1;
 
        private bool ExceedsLimit(Appointment apt)
        {
            int appointmentsCount = 0;
            foreach (Appointment existingApt in RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End))
            {
                if (existingApt.Visible)
                    appointmentsCount++;
            }
 
            return (appointmentsCount > AppointmentsLimit - 1);
        }
 
        private bool AppointmentsOverlap(Appointment appointment)
        {
            if (ExceedsLimit(appointment))
            {
                foreach (Appointment a in RadScheduler1.Appointments.GetAppointmentsInRange(appointment.Start, appointment.End))
                {
                    if (a.ID != appointment.ID)
                    {
                        return true;
                    }
                }
            }
 
            return false;
        }
 
        private void RegisterScript()
        {
            Label1.Text = "Invalid move! There are appointments arranged for this time period.";
            ScriptManager.RegisterClientScriptBlock(this, GetType(), "LabelUpdated",
                    "$telerik.$('.lblError').show().animate({ opacity: 0.9 }, 2000).fadeOut('slow');", true);
        }
 
        protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
        {
            if (ExceedsLimit(e.Appointment))
            {
                e.Cancel = true;
                RegisterScript();
            }
        }
 
        protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e)
        {
            if (AppointmentsOverlap(e.ModifiedAppointment))
            {
                e.Cancel = true;
                RegisterScript();
            }
        }
 
        protected void RadScheduler1_RecurrenceExceptionCreated(object sender, RecurrenceExceptionCreatedEventArgs e)
        {
            if(AppointmentsOverlap(e.ExceptionAppointment))
            {
                e.Cancel = true;
                RegisterScript();
            }
        }
    }
}


This is how did i try to give a solution to this problem:

protected bool ExceedsLimit(Appointment apt)
    {
        
        foreach (Appointment existingApt in RadScheduler1.Appointments.GetAppointmentsInRange(apt.Start, apt.End))
        {
            foreach (Resource existingRes in existingApt.Resources.GetResourcesByType("User"))
            {
 
                if (((apt.Resources.GetResource(existingRes.Type, existingRes.Key)) != null))
                {
                         
                        return true;
                }
            }
        }
     
        return false;
    }
 
    private bool AppointmentsOverlap(Appointment appointment)
    {
        
            foreach (Appointment a in RadScheduler1.Appointments.GetAppointmentsInRange(appointment.Start, appointment.End))
            {
                 
 
                    if (ExceedsLimit(appointment) && a.ID != appointment.ID)
                    {
                        return true;
                    }
                
            }
       
 
        return false;
    }
 
 
    protected void RadScheduler1_AppointmentInsert(object sender, Telerik.Web.UI.SchedulerCancelEventArgs e)
    {
        if (ExceedsLimit(e.Appointment))
        {
            Messages.Text = "This resource has already been scheduled for this time slot.";
            e.Cancel = true;
            
 
 
             
        }
    }
 
    protected void RadScheduler1_AppointmentUpdate(object sender, Telerik.Web.UI.AppointmentUpdateEventArgs e)
    {
        if (AppointmentsOverlap(e.ModifiedAppointment))
        {
            Messages.Text = "This resource has already been scheduled for this time slot.";
            e.Cancel = true;
 
 
 
        }
    }

  Thank you very much.
Plamen
Telerik team
 answered on 20 Jun 2012
3 answers
81 views
Hi, I'm working with RadGrid in different pages of my website, usually those pages have headers controls and other buttons like Save, Close etc.

When the user is inserting or updating an item in the grid they usually don't see the checkmark button in the edit line and try to click others buttons in the page to save or commit changes.

I was wondering if it's possible to gray out all the page but the edit line inside the grid until the user save or cancel the changes using the grid line buttons, similar to the Radwindow behavior. this could be done using some radcontrols or there is any tweak to the radgrid to accomplish that?

Thanks a lot.
Shinu
Top achievements
Rank 2
 answered on 20 Jun 2012
6 answers
194 views
Good morning,

I have been trying to setup a RadScheduler using VS2010 and .NET 4.0 While trying to add the AdvancedForm.js

<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="AdvancedForm.js" />
        </Scripts>
    </asp:ScriptManagerProxy>

I get an error: ASP:Net tags: ASP.net tag asp:ScriptManagerProxy not registered

Any ideas?
Svetlozar
Telerik team
 answered on 20 Jun 2012
3 answers
163 views
Hi all I am having my textbox designed as follows

<telerik:RadMaskedTextBox Mask="###-##-####" runat="server" ID="txtSSN" Width="200px" AutoPostBack="true" OnTextChanged="ssnchanged">
        </telerik:RadMaskedTextBox>

On my server side code I code as follows

protected void ssnchanged(object sender, EventArgs e)
   {
       if (txtSSN.Text.Length != 9)
       {
          RadWindowManager1.VisibleOnPageLoad = true;
           string scriptstring = "radalert('You must save Employee Information to proceed further..', 250, 80,'Information');";
           ScriptManager.RegisterStartupScript(this, this.GetType(), "radalert", scriptstring, true);
       }
   }

But unable to load the Window can some one help me..
Shinu
Top achievements
Rank 2
 answered on 20 Jun 2012
3 answers
1.1K+ views
how to get the "Rad Editor" Control Content  value at the ClientSide (java Script), without postback.

Thanks & Regards
Srinivas
vishwa
Top achievements
Rank 1
 answered on 19 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?