Telerik Forums
UI for ASP.NET AJAX Forum
17 answers
484 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
167 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
155 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
137 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
76 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
154 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
133 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
226 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
1 answer
598 views

I found that when I select many files (e.g. around 400 jpg, 6KB per files) in AsyncUpload, the upload speed would become slower and slower. Initially, the upload speed could have around 2.4KB/s, but it gradually drops to even below 40 Bytes per second as the upload proceeds. It takes me so long time to upload a large amount of files. 

Are there any configurations to improve the upload speed of multiple files ?

 

Thanks!

Hristo Valyavicharski
Telerik team
 answered on 18 Apr 2016
1 answer
343 views

We have an update panel on the page that contains rows of controls.  The user can add additional rows or remove existing ones using a button that performs an Ajax postback.  If the user adds additional rows, the values of the RadComboBox remain and life is good.  However, if the user removes a row, the combobox value is lost (the items are there, but the selected index is set to -1).

In stepping through the code, I can see that the values are indeed set after Page_Load and Page_PreRender, but when the page is finally displayed, the values have been removed.

I've searched high and low and it appears this is an issue others have experienced as well (http://www.telerik.com/forums/selectedvalue-lost-on-postback-in-dynamically-added-user-controls).  Unfortunately, I can't bind the values in Page_Init (as suggested in the post) as I need information from ViewState that isn't available until Page_Load.

All other controls on the update panel retain their value; it's *only* the comboboxes that lose theirs.

Has anyone else experienced this lately and, if so, what was the workaround?

We're using Telerik 2014 Q2 in VS2015 (C#).

Nencho
Telerik team
 answered on 18 Apr 2016
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?