Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
89 views
Dear All,

I´m pretty new to Telrik controls and have the following question.
I want to Update in real time my radSchedular when clicking on RadCalendar like illustrated in this sample:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/overview/defaultcs.aspx,
The radSchedulat doesn't synchronise when i click to a date on RadCalendar date: Could you help me to find the source of the issue please?
Source code:
 <telerik:radscheduler runat="server" id="RadScheduler1"
                    DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" DataDescriptionField="Description"
                    DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentId" DataReminderField="Reminder"
                    OnAppointmentDataBound="DiaryRadScheduler_AppointmentDataBound" OnAppointmentCommand="DiaryRadScheduler_AppointmentCommand"
                    AllowDelete="false" AllowEdit="false" AllowInsert="false" EnableDescriptionField="true"
                    EnableRecurrenceSupport="false" EnableResourceEditing="false" EnableExactTimeRendering="false"
                    DayStartTime="08:00:00" DayEndTime="20:00:00" WorkDayStartTime="09:00:00" WorkDayEndTime="18:00:00"
                    WeekView-DayStartTime="08:00:00" WeekView-DayEndTime="20:00:00" WeekView-WorkDayStartTime="09:00:00" WeekView-WorkDayEndTime="18:00:00" WeekView-EnableExactTimeRendering="true"
                    MultiDayView-DayStartTime="08:00:00" MultiDayView-DayEndTime="20:00:00" MultiDayView-WorkDayStartTime="09:00:00" MultiDayView-WorkDayEndTime="20:00:00" MultiDayView-NumberOfDays="5" MultiDayView-EnableExactTimeRendering="true"
                    AppointmentStyleMode="Auto" SelectedView="AgendaView"
                    StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true"
                    ShowHeader="true" ShowFooter="true" ShowAllDayRow="false" ShowDateHeaders="true" ShowFullTime="false" OverflowBehavior="Expand"
                    RowHeight="25px" RowHeaderWidth="50px" MinutesPerRow="30" TimeLabelRowSpan="2"
                    FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" HoursPanelTimeFormat="HH:mm tt">
                    <DayView HeaderDateFormat="d" UserSelectable="true" />
                    <WeekView HeaderDateFormat="d" UserSelectable="true" />
                    <MonthView HeaderDateFormat="d" UserSelectable="true" />
                    <AgendaView HeaderDateFormat="d" UserSelectable="true" />
                    <TimelineView UserSelectable="false" />
                    <MultiDayView UserSelectable="false" />
                    <AdvancedForm Modal="true" />
                    <AppointmentTemplate>
                        <%# Container.Appointment.Resources.GetResourceByType("Type").Text%><br /><%# Eval("Subject") %><br /><%# Eval("Description") %>
                        <div>
                            <asp:Button runat="server" ID="BtnExport" CssClass="rsExportButton" ToolTip="Export to iCalendar" CommandName="Export" OnClientClick="Export(this, event); return false;" style="border: none; cursor: pointer;" />
                        </div>
                    </AppointmentTemplate>
                </telerik:radscheduler>
Code Behind:
RadScheduler1.DataSource = DataSourceRadSchedular;


Thanks in advance for your help.
Martin Gartmann
Top achievements
Rank 2
 answered on 19 Apr 2016
1 answer
39 views
I  have one scenario where I have to find the index of ROW which is invisible?

How to check if the row in the rad grid is visible or not?
Eyup
Telerik team
 answered on 19 Apr 2016
17 answers
378 views
I develop a product which uses RadScheduler, and initially, our product was used in one Time Zone (GMT) and we didn't need to care about any other Time Zones.  We did not apply any Time Zone offset or configuration to the RadScheduler, and generally, everything just worked.

All appointments were stored in the database in "wall clock" time (from the user's point of view), and so even across DST changes, recurring appointments worked, e.g. if you create a recurring appointment that occurred between 9am-5pm every day from 20-Mar-2012 to 28-Mar-2012, and the clocks went forward by 1 hour on 25-Mar-2012, this would all display correctly.

However, the next version of our product does need to be Time Zone aware.  To this end, we have been converting all dates/times in our database to UTC, and then applying the correct Time Zone Offset to RadScheduler.  For non-recurring appointments, this works.  However, for recurring appointments, what happens is that the RadScheduler displays the recurring appointment correctly for 9am-5pm for 20-Mar-2012 to 24-Mar-2012 - but then moves it to 10am-6pm for 25-Mar-2012 to 28-Mar-2012.

What the user is expecting, is for the recurring appointment to appear at the same "wall clock" time - i.e. 9am-5pm on 25-Mar-2012 to 28-Mar-2012, and NOT 10am-6pm.  

Now, I understand why the RadScheduler is doing this, because, presumably, the Recurrence Rule has a single fixed start/end date in UTC, and during DST, "wall clock" appointments are 1 hour ahead of UTC.

So, how do I adjust for this?  Is there a way of telling the Recurrence Rule or the RadScheduler when the Start/End date of DST is, so that the RadScheduler can display the recurring appointment correctly - 9am-5pm "wall clock" time for 20-Mar-2012 to 28-Mar-2012?

Plamen
Telerik team
 answered on 19 Apr 2016
9 answers
116 views
Hello,

I am using this demo as a reference.
http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultvb.aspx
But the calendars and the scheduler does not seem to interact
This is the place it is not working because I tried debugging, but no luck.
scheduler.set_selectedDate(selectedDate);

Both the calendars interact properly but the issue is just with the scheduler.

If you can help.
Thanks.
ProgrammerNet
Top achievements
Rank 1
 answered on 18 Apr 2016
1 answer
133 views

When I try to edit a row, i get the following error....

Unhandled exception at line 7, column 1 in http://localhost:49573/ScriptResource.axd?d=mbGZm65DzNC0tMTq0Elbce0yp2eiMDoWRQEIIn3twTe4dAIfNkGHxTWrZ831kuBdsqp_-Y_OAibsgWU704RhZMjoTfT5_SQJxqfo7sMEVXBBl32oE7HNV6t_TCbDwf2_gcZ8IUGDyk-eU9RGyLmgCA2&t=6e6e42a6

0x800a1391 - Error en tiempo de ejecución de JavaScript: '$telerik' no está definido

Please could you help me to discover how to avoid this error?
Viktor Tachev
Telerik team
 answered on 18 Apr 2016
1 answer
114 views

 

ascx design 

<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="ucAddtionalConditions.ascx.cs" Inherits="ClientPortal.FNFConnect.Web.UI.Controls.Submit.ucAddtionalConditions" %>
<%@ Register Assembly="GtCustomWebControlLibrary" Namespace="Gryphtech.Translation.Web.UI.WebControls" TagPrefix="cc1" %>


<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

        <style type="text/css">
            .style1
            {
                width: 125px;
            }
        </style>
<cc1:GtTranslationManager ID="ucAdditionalConditions_CustomManager" 
runat="server" TranslationGroupId="294604c7-0340-4ffd-81b9-cf62c47f1b53">
</cc1:GtTranslationManager>

<div class="webPartControl">
    <h4>
           <cc1:GtTranslatableLabel ID="lblHeader" runat="server" 
                    TranslationItemId="9131ec56-4b3f-4fd1-b7a5-4a88bdff2a7a" 
                    TranslationManagerId="ucAdditionalConditions_CustomManager">ADDITIONAL 
                CONDITIONS</cc1:GtTranslatableLabel>
                </h4>
    <div class="webPartControlContents">
        <table class="controlTable">
            <tr id="tdAddCondition" runat="server">
                <td class="divLine widthMedium">
                    <cc1:GtTranslatableLabel ID="lblAddConditions" runat="server" 
                        TranslationItemId="017b75f2-4811-4ba6-ba46-de63e71e1903" 
                        TranslationManagerId="ucAdditionalConditions_CustomManager">Add 
                    Condition(s):</cc1:GtTranslatableLabel>
                    &nbsp;
                </td>
                <td class="divLine" style="width: 70%">
                  <telerik:RadComboBox runat="server" ID="ddlConditions" ExpandDirection="Up" Width ="98%" MaxHeight="250">
                    </telerik:RadComboBox>
                </td>

                <td class="divLine">
                   <a class="roundButton" onclick="copyCondition()" type="button"><span><% = lblAdd.Text %></span></a>
                </td>
            </tr>
            <tr>
               <td class="divLineLast widthMedium">
                    &nbsp;
                </td>
                <td class="divLineLast" style="width: 70%">
                    <asp:TextBox ID="txtCondition" runat="server" Height="250px" 
                        TextMode="MultiLine" Width="97%"></asp:TextBox>
                </td>
                <td class="divLineLast">
                    <a id="lnkClear" runat="server" onclick="clearConditions()" type="button" class="roundButton"><span><% = lblClear.Text %></span></a>&nbsp;
                </td>
            </tr>
        </table>
    </div>
</div>
        <script type="text/javascript">
            function copyCondition()
            {
                var ddl = $find('<% = ddlConditions.ClientID %>');
                if (ddl.get_selectedIndex() > 0)
                {
                    var textBox = $get('<% = this.txtCondition.ClientID %>');
                    if (textBox.value == '')
                        textBox.value = '- ' + ddl.get_selectedItem().get_value();
                    else
                        textBox.value += '\r' + '- ' + ddl.get_selectedItem().get_value();
                    
                    ddl.selectedIndex = 0;
                }
            }
        
            function clearConditions()
            {
                $get('<% = this.txtCondition.ClientID %>').value = '';
                var ddl = $find('<% = ddlConditions.ClientID %>');
                ddl.get_items().getItem(0).select();
            }
        </script>
<cc1:GTTranslatableEditPanel ID="ucAddtionalConditions_CustomEdit" 
    runat="server" TranslationManagerId="ucAdditionalConditions_CustomManager">
    <cc1:GtTranslatableLabel ID="lblClear" runat="server" 
        TranslationItemId="f25a42ae-784b-44ba-878c-8fece4df0b48" 
        TranslationManagerId="ucAdditionalConditions_CustomManager">
        Clear
    </cc1:GtTranslatableLabel>
    <br />
    <cc1:GtTranslatableLabel ID="lblAdd" runat="server" 
        TranslationItemId="e62442e9-9b30-46ac-8080-2a8da22ecbda" 
        TranslationManagerId="ucAdditionalConditions_CustomManager">
        Add
    </cc1:GtTranslatableLabel>
</cc1:GTTranslatableEditPanel>

 

c# server side code

 

using System;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using ClientPortal.Web.UI;
using FNF.CP.Data;
using Telerik.Web.UI;


namespace ClientPortal.FNFConnect.Web.UI.Controls.Submit
{
    public partial class ucAddtionalConditions : PortalBaseSubmitControl, IsubmitLoadNPSProvider
    {
        #region PageEvents
        protected void Page_Load(object sender, EventArgs e)
        {
            ddlConditions.DataBinding += new EventHandler(ddlConditions_DataBinding);

            ddlConditions.DataBound += delegate
            {
                //Hide dropdown + Add button if table used to populate drop-down list is empty
                if (ddlConditions.Items.Count == 1)
                {
                    tdAddCondition.Visible = false;
                    lnkClear.Visible = false;
                }
            };

            if (!Page.IsPostBack)
            {
                ddlConditions.DataBind();
            }
        }
        #endregion

        #region Binding

        void ddlConditions_DataBinding(object sender, EventArgs e)
        {
            ddlConditions.AppendDataBoundItems = true;
            ddlConditions.Items.Clear();
            ddlConditions.DataSource = FNF.CP.Data.AdditionalConditionsDB.getAdditionalConditions(ucAdditionalConditions_CustomManager.Language.LanguageCode);
            ddlConditions.DataValueField = "conditionName";
            ddlConditions.DataTextField = "conditionName";

            ddlConditions.Items.Insert(0, new RadComboBoxItem(string.Empty));

        }

        #endregion

        #region IsubmitLoadNPSProvider Members

        public void fillProvider(ref FNF.NPSWS.fnfnpsBodyRequest request, ref FNF.SOA.Appraisals.AppraisalBodyRequest aRequest)
        {
            string condition = txtCondition.Text.Trim();
            if (request == null || condition.Length == 0)
                return;

            StringBuilder sb = new StringBuilder();
            if (condition.Contains(Environment.NewLine))
            {
                sb.Append("<ul style='list-style-type:normal'>");
                foreach (string item in condition.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
                {
                    sb.Append("<li>").Append(item.TrimStart(new char[] { '-', ' ' })).Append("</li>");
                }
                sb.Append("</ul>");
            }
            else
            {
                sb.Append(condition);
            }

            request.Conditions = new string[1] { sb.ToString() };
        }

        public void loadSubmitData(ConnectFile file)
        {
            // no implementation yet
        }

        #endregion
    }
}

 

 

Nencho
Telerik team
 answered on 18 Apr 2016
1 answer
55 views

When using IE8, if I add an image to the content in the editor via the Image Manager, the SRC attribute gets an absolute URL. I can reproduce this on your demo at http://demos.telerik.com/aspnet-ajax/editor/examples/filemanagers/defaultcs.aspx. 

When using IE9 or higher, the SRC gets a virtual path, which is what we want.

Is there a way to make IE8 get a virtual path?

Joana
Telerik team
 answered on 18 Apr 2016
2 answers
123 views

I have a standard aspx page that has a RadTextBox and RadGrid (with datasource)

I want to see if there is a way to type into the RadTextBox a value and the value that matches a particular row in the RadGrid would get selected/highlighted.

 

Thanks for any help on this.

Rusty
Top achievements
Rank 1
 answered on 18 Apr 2016
4 answers
114 views
I have one scenario where the gridview has 2 rows like what i have attached.

Gridview having data as like I have mentioned in the file.

COLUMN 3 to COLUMN 6 having texbox where the values are entered by the user

COLUMN 1 and COLUMN 2 of ROW 1 and ROW 2 will have the same value as mentioned.
I need to know how to add a new row in the grid if the button is clicked

And the entered value should not get affected. It should be present.
The new row should be added with COLUMN1 and COLUMN 2 having same name as that of the ROW 1 and ROW 2
Even if the user clicks again the button the old rows should not get affected.




Viktor Tachev
Telerik team
 answered on 18 Apr 2016
2 answers
203 views

Hi,

 

I have two editbuttons in my gridview, I my form template I have 4 dropdowns.

When I click add new record button all the 4 dropdowns controls should be enable to add a record.

when I click the edit button 1 (Command name is EditEmp)  dropdown 1 & dropdown 2 should be enabled and dropdown 3 & dropdown 4 should be disabled to update the record

when I click the edit button 2 (Command name is EditDependent) on the same grid dropdown 1 & dropdown 2 should be disabled and dropdown 3 & dropdown 4 should be enabled to update the record.

Kindly let me know on which event I will do this changes.

thanks,

Ganeshkumar

 

 

Ganeshkumar
Top achievements
Rank 1
 answered on 18 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?