Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
103 views
Good Day,

I am using a RadTreeview bound to a RadSiteMapDataSource configured as below.

<telerik:RadSiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
<telerik:RadTreeView ID="SiteTree" runat="server" DataSourceID="SiteMapDataSource1" EnableViewState="true" SingleExpandPath="true">
    <ExpandAnimation Type="OutQuart" Duration="300" />
    <CollapseAnimation Type="OutQuint" Duration="200" />
</telerik:RadTreeView>

The sitemap's data represents a simple hierarchy of something like:
parent1---
--child1
--child2
parent2---
---child1
---child2

There are other pages that exist beyond the child pages that are not represented in the sitemap, since they should not be selected from the nav menu.  The problem exists when navigating beyond the child page to an unmapped page.  The RadTreeview basically doesn't know which node was previously selected & therefore looses focus on the current selected node.  
This seems to be a common problem with treeview controls since by default they don't persist using the session and is well documented in the wicked code article here: http://msdn.microsoft.com/en-us/magazine/cc163598.aspx in the section named SiteMapPaths and Unmapped Pages.

I would like to configure the radtreeview to remember the currently selected node.  Basically when the user navigates off of the last mapped child page,  I'd like that last mapped child node to stay highlighted in the radtreeview.  

I found a past forum post here: http://www.telerik.com/community/forums/aspnet/treeview/how-do-i-maintain-treeview-state-after-postback.aspx where it mentioned using the RetainScrollPosition attribute, but I cannot find any reference to it in the current release.  Based on that thread, it appeared that it did exactly what I was looking for...

Any advise on how to accomplish this using the current radtreeview?

Bozhidar
Telerik team
 answered on 25 Sep 2012
3 answers
229 views
I need open an url using zoom animation effect, equal to KendoUI window control.
It's possible ?
How ????


Thank you.
Marin Bratanov
Telerik team
 answered on 25 Sep 2012
14 answers
298 views
Hi,

We are globalizing the application which uses Telerik Controls. We are not using RESX files. We are using CUSTOM DB RESOURCE MANAGER. Hence, RESX files will no more be used for storage. We willbe using the Database to store the resources.

But seems like Telerik i turn uses its RESX files. To make our application use the Database for resources instead of RESX files, we will be overriding a configuration in web.config.

On overriding this configuration, Telerik is also expecting its reosurces to be available in our Database.

Is there any solution to make Telerik use its RESX files even when we are using Database in our application for other resources?

Or, do we have to push Telerik's resources to our Database to make it work? If so, is there an exhaiustive set of resources that we can add to the Database so that in future, we do not need any maintanence activity on this regard.

It will be helpful if we get a solution or suggestion on this at the earliest. We need a solution or suggestion immediately since we are in Construction phase and are facing this issue.

Thanks.
Simon
Top achievements
Rank 1
 answered on 25 Sep 2012
1 answer
350 views
Hi All,

I want to format my "Values" column as shown below format in child/detail grid.  It is a currency value.  I have used GridNumericColumn type and added following properties to this column
DataFormatString="${0:C}" DataType="System.Decimal" NumericType="Currency".

However, it is not formatting currency field for negative values.
 
Example:

 Product Name

Product ID

Values

A

1

$ -12.00 

B

2

$11

C

3

$ - 13

D

4

$ 14

E

5

$ - 16

F

6

$ - 17

 

 

 


so i want all the negative values of coulmn "values" into brackets and without $ sign.
Expected result

 Product Name

Product ID

Values

A

1

$(12.00 )

B

2

$11

C

3

$(13)

D

4

$ 14

E

5

$(16)

F

6

$(17)

 

 

 


Galin
Telerik team
 answered on 25 Sep 2012
1 answer
108 views
Hi Team,

A couple of days back we have been getting really weired behaviour with the RadSpell Telerik control.

To tell you of the current scenario:-
1.    We have a load balancer which balances the traffic between the two servers, so when using the load balance URL the RadSpell throws out the following error :-

 


---------------------------

Error

---------------------------

A Runtime Error has occurred.

Do you wish to Debug?

 

Line: 6

Error: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.

Parameter name: data

---------------------------

Yes   No  

---------------------------

We log each and every error into out backend so the error recorder corresponding to this in the backed is :-


No dictionary loaded. Set the DictionaryPath property from the spell checker settings or copy the dictionaries
 to ~/App_Data/RadSpell/  

at Telerik.Web.UI.Dictionaries.EditDistanceDictionary.Load(TextReader baseDictionaryReader,
ICustomDictionarySource customSource, String cacheKey)
at Telerik.Web.UI.SpellChecker.LoadDictionary()
at Telerik.Web.UI.SpellChecker.get_dictionary()    
at Telerik.Web.UI.SpellChecker.CheckWord(String word, String sLastWord) 
at Telerik.Web.UI.TelerikSpellCheckProvider.CheckWord(ITextWord current, ITextWord previous)    
at Telerik.Web.UI.SpellChecker.CheckText()     at Telerik.Web.UI.SpellChecker.BadWordsJScript()    
at Telerik.Web.UI.SpellCheckHandlerNoSession.ProcessSpellCheckRequest(HttpResponse response,
SpellChecker checker, String text)    
at Telerik.Web.UI.SpellCheckHandlerNoSession.ProcessRequest(HttpContext context)    
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously

2.    When using the individual server URL (instead of the load balance), we do not get such error and the RadSpell works just prefectly fine.

Solutions applied by me:-
1.    I have verified that both the server contains the dictionary file under ~/App_Data/RadSpell/  folder.
2.    The dictionary files have no difference.
3.    Tried adding the loacation Tag o the web.config but that did not work out


<location path="Telerik.Web.UI.WebResource.axd">  

    <system.web>      

        <authorization>

            <allow users="*" />      

        </authorization>  

    </system.web>

</location>

 


4.    I tried using fiddler to capture the code that is being sent and I got a 
        302 code for telerik.web.ui.spellcheckhandler.axd.
        But sometime it just works fine and returns a 200 code.
5.    The Httphandlers already contain the entry for spellcheker and other controls in web.config.

 


<httpHandlers>

  <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

  <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

  <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />

</httpHandlers>


We have tried several solution but none of them worked out

  • The only solution left is enforcing the Encryption key in web.config but not sure if this will resolve the issue.

The file version of telerik control on being used by us is :- 2010.3.1317.35

Team please help us with this issue.

______________________________________________________
Thanks,
Bineet

Rumen
Telerik team
 answered on 25 Sep 2012
1 answer
86 views
Hi,

1) Is there any event available to get Collapse/Expand Button click.

2) when ribbon is in Collapse Mode and then if user click over any tab then tab should be Expand.
Pls check below link. Collapse Example ribbon then Click on any tab, will expand Ribbon BUT, the moment user click anywhere on the page, Ribbon Gets Collapsed. http://demos.telerik.com/aspnet-ajax/ribbonbar/examples/default/defaultcs.aspx 


Pls do the needful.
Ivan Zhekov
Telerik team
 answered on 25 Sep 2012
1 answer
128 views
friends, I must be missing something here please help.. Thanks

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadTreeView ID="RadTreeView0" runat="server">
            <NodeTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="http://www.bing.com">[ View ]  </asp:HyperLink>
                <%# DataBinder.Eval(Container, "Text") %>
            </NodeTemplate>
        </telerik:RadTreeView>
        <telerik:RadToolTipManager ID="ToolTipManager1" runat="server" AutoTooltipify="true"
            ToolTipZoneID="RadTreeView0" Position="TopCenter" Animation="Resize" RelativeTo="Element"
            Title="Employee Details" HideEvent="ManualClose" ShowCallout="false" ContentScrolling="Auto"
            Width="300px" Height="200px"></telerik:RadToolTipManager>
    </div>
    </form>
</body>
</html>

using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadTreeNode category1 = new RadTreeNode("Group1", "Group1");
        RadTreeNode Category1Node;
        RadTreeNodeCollection radCollection = new RadTreeNodeCollection(category1);
        for (int i = 5 - 1; i >= 0; i--)
        {
            Category1Node = new RadTreeNode(i.ToString(), i.ToString());
            category1.Nodes.Add(Category1Node);
        }
        RadTreeView0.Nodes.Add(category1);
 
 
        RadTreeNode category2 = new RadTreeNode("Group2", "Group2");
        RadTreeNode category3 = new RadTreeNode("Group3", "Group3");
        RadTreeNode Category2Node;
        radCollection = new RadTreeNodeCollection(category2);
        for (int i = 3 - 1; i >= 0; i--)
        {
            Category2Node = new RadTreeNode(i.ToString(), i.ToString());
            category2.Nodes.Add(Category2Node);
        }
        RadTreeView0.Nodes.Add(category2);
 
        RadTreeView0.Nodes.Add(category3);
 
    }
}

Marin Bratanov
Telerik team
 answered on 25 Sep 2012
30 answers
280 views
I have merged the AdvancedFormVB into my current project.  However, when i try to edit the oppointment I receive an error:Sys.WebForms.PageRequestManagerServerErrorException: Telerik.Web.UI.DatePickingInput with ID='dateInput' was unable to find an embedded skin with the name 'Macys'.
Please refered to the attached file.
My AdvancedformVB and scheduler pages are as folloows:

<%@ Control Language="VB" AutoEventWireup="true" CodeFile="AdvancedFormVB.ascx.vb"
 Inherits="SchedulerTemplatesVB.AdvancedForm" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="scheduler" TagName="ResourceControl" Src="ResourceControlVB.ascx" %>
<%@ Register TagPrefix="scheduler" TagName="MultipleValuesResourceControl" Src="MultipleValuesResourceControlVB.ascx" %>

<link href="App_Themes/Default/Scheduler.Macys.css" rel="stylesheet"
        type="text/css" />
<link href="App_Themes/Default/Calendar.Macys.css" rel="stylesheet"
        type="text/css" />

<div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">
 <div class="rsModalBgTopLeft">
 </div>
 <div class="rsModalBgTopRight">
 </div>
 <div class="rsModalBgBottomLeft">
 </div>
 <div class="rsModalBgBottomRight">
 </div>
 <%-- Title bar. --%>
 <div class="rsAdvTitle">
  <%-- The rsAdvInnerTitle element is used as a drag handle when the form is modal. --%>
  <h1 class="rsAdvInnerTitle">
   <%= If((Me.Mode.ToString() = "Edit"), Owner.Localization.AdvancedEditAppointment, Owner.Localization.AdvancedNewAppointment)
   %></h1>
  <asp:LinkButton runat="server" ID="AdvancedEditCloseButton" CssClass="rsAdvEditClose"
   CommandName="Cancel" CausesValidation="false" ToolTip='<%# Owner.Localization.AdvancedClose %>'>
   <%= Owner.Localization.AdvancedClose %>
  </asp:LinkButton>
 </div>
 <div class="rsAdvContentWrapper">
  <%-- Scroll container - when the form height exceeds MaximumHeight scrollbars will appear on this element--%>
  <div class="rsAdvOptionsScroll">
   <asp:Panel runat="server" ID="AdvancedEditOptionsPanel" CssClass="rsAdvOptions">
    <asp:Panel runat="server" ID="BasicControlsPanel" CssClass="rsAdvBasicControls" OnDataBinding="BasicControlsPanel_DataBinding">
     <telerik:RadTextBox runat="server" ID="SubjectText" Width="100%" Label='<%# Owner.Localization.AdvancedSubject + ":" %>'
      EnableSingleInputRendering="false" />
     <asp:RequiredFieldValidator runat="server" ID="SubjectValidator" ControlToValidate="SubjectText"
      EnableClientScript="true" Display="None" CssClass="rsValidatorMsg" />
     <ul class="rsTimePickers">
      <li class="rsTimePick" style="width: 244px;">
       <label for='<%= StartDate.ClientID %>_dateInput_text'>
        <%= Owner.Localization.AdvancedFrom %></label><%--
           Leaving a newline here will affect the layout, so we use a comment instead.
        --%><telerik:RadDatePicker runat="server" ID="StartDate" CssClass="rsAdvDatePicker"
         Width="83px" SharedCalendarID="SharedCalendar" Skin='<%# Owner.Skin %>' Culture='<%# Owner.Culture %>'
         MinDate="1900-01-01">
         <DatePopupButton Visible="False" />
         <DateInput ID="DateInput2" runat="server" DateFormat='<%# Owner.AdvancedForm.DateFormat %>'
          EmptyMessageStyle-CssClass="riError" EmptyMessage=" " EnableSingleInputRendering="false" />
        </telerik:RadDatePicker>
       <%--
       
       --%><telerik:RadTimePicker runat="server" ID="StartTime" CssClass="rsAdvTimePicker"
        Width="65px" Skin='<%# Owner.Skin %>' Culture='<%# Owner.Culture %>'>
        <DateInput ID="DateInput3" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
         EnableSingleInputRendering="false" />
        <TimePopupButton Visible="false" />
        <TimeView ID="TimeView1" runat="server" Columns="2" ShowHeader="false" StartTime="08:00"
         EndTime="18:00" Interval="00:30" />
       </telerik:RadTimePicker>
      </li>
      <li class="rsTimeZonesWrapper">
       <telerik:RadComboBox runat="server" Visible="true" ID="TimeZonesDropDown" Width="230"
        Label="<%# Owner.Localization.AdvancedTimeZone %>" Skin='<%# Owner.Skin %>'>
       </telerik:RadComboBox>
      </li>
      <li class="rsAllDayWrapper">
       <asp:CheckBox runat="server" ID="AllDayEvent" CssClass="rsAdvChkWrap" Checked="false" />
      </li>
      <li class="rsTimePick rsEndTimePick" style="width: 244px;">
       <label for='<%= EndDate.ClientID %>_dateInput_text'>
        <%= Owner.Localization.AdvancedTo%></label><%--
       
        --%><telerik:RadDatePicker runat="server" ID="EndDate" CssClass="rsAdvDatePicker"
         Width="83px" SharedCalendarID="SharedCalendar" Skin='<%# Owner.Skin %>' Culture='<%# Owner.Culture %>'
         MinDate="1900-01-01">
         <DatePopupButton Visible="False" />
         <DateInput ID="DateInput4" runat="server" DateFormat='<%# Owner.AdvancedForm.DateFormat %>'
          EmptyMessageStyle-CssClass="riError" EmptyMessage=" " EnableSingleInputRendering="false" />
        </telerik:RadDatePicker>
       <%--
       
       --%><telerik:RadTimePicker runat="server" ID="EndTime" CssClass="rsAdvTimePicker"
        Width="65px" Skin='<%# Owner.Skin %>' Culture='<%# Owner.Culture %>'>
        <DateInput ID="DateInput5" runat="server" EmptyMessageStyle-CssClass="riError" EmptyMessage=" "
         EnableSingleInputRendering="false" />
        <TimePopupButton Visible="false" />
        <TimeView ID="TimeView2" runat="server" Columns="2" ShowHeader="false" StartTime="08:00"
         EndTime="18:00" Interval="00:30" />
       </telerik:RadTimePicker>
      </li>
     </ul>
     <div class="rsReminderWrapper">
      <telerik:RadComboBox runat="server" ID="ReminderDropDown" Width="120px" Skin='<%# Owner.Skin %>'
       Label="<%# Owner.Localization.Reminder %>">
       <Items>
        <telerik:RadComboBoxItem Text='<%# Owner.Localization.ReminderNone %>' Value="" />
        <telerik:RadComboBoxItem Text='<%# "0 " + Owner.Localization.ReminderMinutes %>'
         Value="0" />
        <telerik:RadComboBoxItem Text='<%# "5 " + Owner.Localization.ReminderMinutes %>'
         Value="5" />
        <telerik:RadComboBoxItem Text='<%# "10 " + Owner.Localization.ReminderMinutes %>'
         Value="10" />
        <telerik:RadComboBoxItem Text='<%# "15 " + Owner.Localization.ReminderMinutes %>'
         Value="15" />
        <telerik:RadComboBoxItem Text='<%# "30 " + Owner.Localization.ReminderMinutes %>'
         Value="30" />
        <telerik:RadComboBoxItem Text='<%# "1 " + Owner.Localization.ReminderHour %>' Value="60" />
        <telerik:RadComboBoxItem Text='<%# "2 " + Owner.Localization.ReminderHours %>' Value="120" />
        <telerik:RadComboBoxItem Text='<%# "3 " + Owner.Localization.ReminderHours %>' Value="180" />
        <telerik:RadComboBoxItem Text='<%# "4 " + Owner.Localization.ReminderHours %>' Value="240" />
        <telerik:RadComboBoxItem Text='<%# "5 " + Owner.Localization.ReminderHours %>' Value="300" />
        <telerik:RadComboBoxItem Text='<%# "6 " + Owner.Localization.ReminderHours %>' Value="360" />
        <telerik:RadComboBoxItem Text='<%# "7 " + Owner.Localization.ReminderHours %>' Value="420" />
        <telerik:RadComboBoxItem Text='<%# "8 " + Owner.Localization.ReminderHours %>' Value="480" />
        <telerik:RadComboBoxItem Text='<%# "9 " + Owner.Localization.ReminderHours %>' Value="540" />
        <telerik:RadComboBoxItem Text='<%# "10 " + Owner.Localization.ReminderHours %>' Value="600" />
        <telerik:RadComboBoxItem Text='<%# "11 " + Owner.Localization.ReminderHours %>' Value="660" />
        <telerik:RadComboBoxItem Text='<%# "12 " + Owner.Localization.ReminderHours %>' Value="720" />
        <telerik:RadComboBoxItem Text='<%# "18 " + Owner.Localization.ReminderHours %>' Value="1080" />
        <telerik:RadComboBoxItem Text='<%# "1 " + Owner.Localization.ReminderDays %>' Value="1440" />
        <telerik:RadComboBoxItem Text='<%# "2 " + Owner.Localization.ReminderDays %>' Value="2880" />
        <telerik:RadComboBoxItem Text='<%# "3 " + Owner.Localization.ReminderDays %>' Value="4320" />
        <telerik:RadComboBoxItem Text='<%# "4 " + Owner.Localization.ReminderDays %>' Value="5760" />
        <telerik:RadComboBoxItem Text='<%# "1 " + Owner.Localization.ReminderWeek %>' Value="10080" />
        <telerik:RadComboBoxItem Text='<%# "2 " + Owner.Localization.ReminderWeeks %>' Value="20160" />
       </Items>
      </telerik:RadComboBox>
     </div>
     <asp:RequiredFieldValidator runat="server" ID="StartDateValidator" ControlToValidate="StartDate"
      EnableClientScript="true" Display="None" CssClass="rsValidatorMsg" />
     <asp:RequiredFieldValidator runat="server" ID="StartTimeValidator" ControlToValidate="StartTime"
      EnableClientScript="true" Display="None" CssClass="rsValidatorMsg" />
     <asp:RequiredFieldValidator runat="server" ID="EndDateValidator" ControlToValidate="EndDate"
      EnableClientScript="true" Display="None" CssClass="rsValidatorMsg" />
     <asp:RequiredFieldValidator runat="server" ID="EndTimeValidator" ControlToValidate="EndTime"
      EnableClientScript="true" Display="None" CssClass="rsValidatorMsg" />
     <asp:CustomValidator runat="server" ID="DurationValidator" ControlToValidate="StartDate"
      EnableClientScript="false" Display="Dynamic" CssClass="rsValidatorMsg rsInvalid"
      OnServerValidate="DurationValidator_OnServerValidate" />
    </asp:Panel>
    <asp:Panel runat="server" ID="AdvancedControlsPanel" CssClass="rsAdvMoreControls">
     <label>
      Color:
     </label>
     <!--
-->
     <telerik:RadColorPicker ID="AppointmentColorPicker" runat="server" CssClass="rsAdvResourceValue"
      ShowIcon="true" PaletteModes="WebPalette">
     </telerik:RadColorPicker>
     <asp:Panel runat="server" ID="ResourceControls">
      <%-- RESOURCE CONTROLS --%>
      <ul class="rsResourceControls">
       <li>
        <!-- Resource controls should follow the convention Res[Resource Name] for ID -->
        <scheduler:ResourceControl runat="server" ID="ResRoom" Type="Room" Label="Room:"
         Skin='<%# Owner.Skin %>' />
       </li>
       <li>
        <scheduler:MultipleValuesResourceControl runat="server" ID="ResUser" Type="User"
         Label="User: " />
       </li>
       <!-- Optionally add more ResourceControl instances here -->
      </ul>
     </asp:Panel>
    </asp:Panel>
    <telerik:RadTextBox runat="server" ID="DescriptionText" TextMode="MultiLine" Columns="50"
     Rows="5" Width="100%" Label='<%# Owner.Localization.AdvancedDescription + ":" %>'
     Text='<%# Eval("Description") %>' EnableSingleInputRendering="false" />
    <span class="rsAdvResetExceptions">
     <asp:LinkButton runat="server" ID="ResetExceptions" OnClick="ResetExceptions_OnClick" />
    </span>
    <telerik:RadSchedulerRecurrenceEditor runat="server" ID="AppointmentRecurrenceEditor" />
    <asp:HiddenField runat="server" ID="OriginalRecurrenceRule" />
    <telerik:RadCalendar runat="server" ID="SharedCalendar" Skin='<%# Owner.Skin %>'
     CultureInfo='<%# Owner.Culture %>' ShowRowHeaders="false" RangeMinDate="1900-01-01" />
   </asp:Panel>
  </div>
  <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
   <div class="rsAdvButtonWrapper">
    <asp:LinkButton runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">
     <span><%= Owner.Localization.Save %></span>
    </asp:LinkButton>
    <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"
     CausesValidation="false">
     <span><%= Owner.Localization.Cancel %></span>
    </asp:LinkButton>
   </div>
  </asp:Panel>
 </div>
</div>
____________________________________________________________________________________________
Here is my scheduler page:

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/AvailabilityLinksSubMaster.master" CodeBehind="MyAvailability.aspx.vb" Inherits="MSP.MyAvailability" %>
<%@ MasterType virtualpath="~/AvailabilityLinksSubMaster.master" %>
<%@ Register assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>
<%@ Register namespace="Telerik.Web.UI" tagprefix="UI" %>
<%@ Register TagPrefix="scheduler" TagName="AdvancedForm" Src="AdvancedFormVB.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        div.RadScheduler .rcOtherMonth
        {
           
           
        }
        div.RadScheduler .rsAllDayHeader,
        div.RadScheduler .rsVerticalHeaderTable div
        {
        font-weight: bold;
        text-align: right;
        }
 
        .rsApt
        {
        width: 45%!important;
       
        }
        .rsAllDayRow .rsWrap
        {
         display:none !important;
        }
        div.RadToolTip table.rtWrapper td.rtWrapperContent
        {
            background-color:none !important;
            background-image: url("../Images/Menu_Bkgrd_Normal2.png") !important;
        }

        .ScreenOnly {display : none;}
    </style>
   
    <link href="App_Themes/Default/Scheduler.Macys.css" rel="stylesheet"
        type="text/css" />
    <link href="App_Themes/Default/Calendar.Macys.css" rel="stylesheet"
        type="text/css" />
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TabContent" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  <script type="text/javascript">
            function TimeRangeOnclick() {
          
     var scheduler = $find('<%=RadScheduler1.ClientID %>');
   
   
    var appointment = scheduler.get_appointments().findByID(59);
    scheduler.editAppointmentWithConfirmation(appointment);
};
      function hideActiveToolTip()
            {
          var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
          if (tooltip)
                {
              tooltip.hide();
          }
      }

      Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
      function beginRequestHandler(sender, args)
            {
          var prm = Sys.WebForms.PageRequestManager.getInstance();
          if (args.get_postBackElement().id.indexOf('RadScheduler1') != -1)
                {
              hideActiveToolTip();
          }
      }

      function OnClientRequestStart(sender, args)
            {
          args.set_cancel(true);
          var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
          if (tooltip)
                {
              var element = tooltip.get_targetControl();
              var apt = $find("<%=RadScheduler1.ClientID %>").getAppointmentFromDomElement(element);
                    <%--
              $get("startTime").innerHTML = apt.get_start().format("MM/dd/yyyy HH:mm");
              $get("endTime").innerHTML = apt.get_end().format("MM/dd/yyyy HH:mm");
                    --%>
              $get("descriptionDiv").innerHTML = "double click to edit your preference";
              tooltip.set_text($get("contentContainer").innerHTML);
          }
      }

  </script>
 </telerik:RadCodeBlock>                       
 
       
    <!-- Start Header -->
<!-- End Header -->
   
                    <table cellpadding="0" cellspacing="0" class="style5" cols="1" width="100%">
                        <tr>
                            <td valign="top">
  <!-- Top Menu -->
  
  <!-- End Top Menu -->
  <!-- Start Workspace --> 
                          <div id="Workspace" align="left" class="style6">
                                    <div id="PrintViewHeader" style="display: none;">
                                        <table border="0" cellpadding="1" cellspacing="1" cols="2" width="98%">
                                            <tbody class="SiteTextSmall">
                                                <tr>
                                                    <td align="center" class="PageHeading">
                                                        Availability</td>
                                                </tr>
                                                <tr class="ScreenOnly">
                                                    <td align="left">
                                                        <span class="SiteTextboldRed">For best results, change your printer setting to
                                                        landscape. </span>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
   
   

    <!-- Schedule option -->
                        <table border="0" cellpadding="1" cellspacing="1" cols="1" width="98%">
                                        <tbody class="SiteTextSmall">
                                            <tr>
                                          
                                                <td colspan="1" rowspan="1">
                                                    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">
                                                        <table id="tblAdvancedSearch">
                                                            <tr>
                                                                <td>
                                                                    <p align="center" dir="rtl" style="font-weight: bold">Schedule Option<br />
                                                                    <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
                                                                            Font-Bold="True" Font-Size="Smaller">
                                                                            <asp:ListItem>Full Time 30 to 40 hours</asp:ListItem>
                                                                            <asp:ListItem>Part Time 15 to 25 hours</asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </p>
                                                                    <p align="center">  Select a Schedule Option for assigned hours<br />(balance of
                                                                        weekly hours self selected):</p>
                                                                </td>

                                                                <td>
                                                                   
                                                                   
                                                                    <asp:BulletedList ID="BulletedList1" runat="server">
                                                                        <asp:ListItem>Max number of weekday mornings off is 1</asp:ListItem>
                                                                        <asp:ListItem>Max number of weekday evenings off is 1</asp:ListItem>
                                                                        <asp:ListItem>Max number of days off per week is 2</asp:ListItem>
                                                                    </asp:BulletedList>
                                                                   
                                                                   
                                                                </td>
                                                            </tr>
                                                        </table>
                                                   
                                              
                                                   
                                                    <telerik:RadScheduler ID="RadScheduler1" runat="server" DayEndTime="23:59:59"
                                                        RowHeight="16px" SelectedView="WeekView"
                                                        WorkDayEndTime="8.00:00:00" WorkDayStartTime="00:00:00"
                                                        AllowDelete="False"
                                                        NumberOfHoveredRows="1" SelectedDate="2012-06-10"
                                                        EnableExactTimeRendering="True" Height="460px"
                                                        EnableEmbeddedSkins="False" Skin="Macys"
                                                        onclientappointmentcontextmenu="hideActiveToolTip"
                                                        onclientappointmentdoubleclick="hideActiveToolTip"
                                                        onclientrecurrenceactiondialogshowing="hideActiveToolTip"
                                                            OverflowBehavior="Expand">
                                                        <AdvancedForm Width="60%" Modal="True" />
                                                        <AdvancedEditTemplate>
                 <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit"
                     Subject='<%# Bind("Subject") %>'
                     Description='<%# Bind("Description") %>'
                     Start='<%# Bind("Start") %>'
                     End='<%# Bind("End") %>'
                     RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                        Reminder='<%# Bind("Reminder") %>'
                     UserID='<%# Bind("User") %>'
                     RoomID='<%# Bind("Room") %>'
                        TimeZoneID='<%# Bind("TimeZoneID") %>' />
             </AdvancedEditTemplate>
             <AdvancedInsertTemplate>
                 <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert"
                     Subject='<%# Bind("Subject") %>'
                     Start='<%# Bind("Start") %>'
                     End='<%# Bind("End") %>'
                     Description='<%# Bind("Description") %>'
                     RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
                        Reminder='<%# Bind("Reminder") %>'
                     UserID='<%# Bind("User") %>'
                     RoomID='<%# Bind("Room") %>'
                        TimeZoneID='<%# Bind("TimeZoneID") %>' />
             </AdvancedInsertTemplate>

                                                        <ResourceTypes>
                                                        <telerik:ResourceType DataSourceID="SqlDataSource2" ForeignKeyField="USERID"
                                                        KeyField="ID" Name="Users" TextField="USERNAME" />
                                                        </ResourceTypes>
                                                        <TimelineView UserSelectable="False" />
                                                        <WeekView DayEndTime="23:59:59" ColumnHeaderDateFormat="dddd, d"
                                                            GroupingDirection="Vertical" />
                                                        <Localization AdvancedEditAppointment="Edit" AdvancedNewAppointment="New"
                                                            AllDay="Range" />
                                                        <MonthView FirstDayHeaderDateFormat="MMMM dd" ColumnHeaderDateFormat="MMMM dddd"
                                                            HeaderDateFormat="MMMM, yyyy" />
                                                    </telerik:RadScheduler>
                                                   
                                                    <div align="center">                                                   
                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                                        </div>
                                                       
<%--                                                        &nbsp;<asp:SqlDataSource
                                                       
                                                        ID="SqlDataSource1" runat="server"
                                                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                                        DeleteCommand="DELETE FROM &quot;AVAILABILITY_TEST&quot; WHERE &quot;ID&quot; = :ID"
                                                        InsertCommand="INSERT INTO &quot;AVAILABILITY_TEST&quot; (&quot;ID&quot;, &quot;SUBJECT&quot;, &quot;START_TIME&quot;, &quot;END_TIME&quot;, &quot;USERID&quot;, &quot;RECURRENCERULE&quot;, &quot;RECURRENCEPARENTID&quot;) VALUES (:ID, :SUBJECT, :START_TIME, :END_TIME, :USERID, :RECURRENCERULE, :RECURRENCEPARENTID)"
                                                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                                                        SelectCommand="SELECT * FROM &quot;AVAILABILITY_TEST&quot;"
                                                        UpdateCommand="UPDATE &quot;AVAILABILITY_TEST&quot; SET &quot;SUBJECT&quot; = :SUBJECT, &quot;START_TIME&quot; = :START_TIME, &quot;END_TIME&quot; = :END_TIME, &quot;USERID&quot; = :USERID, &quot;RECURRENCERULE&quot; = :RECURRENCERULE, &quot;RECURRENCEPARENTID&quot; = :RECURRENCEPARENTID WHERE &quot;ID&quot; = :ID">
                                                        <DeleteParameters>
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                        </DeleteParameters>
                                                        <InsertParameters>
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                            <asp:Parameter Name="SUBJECT" Type="String" />
                                                            <asp:Parameter Name="START_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="END_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="USERID" Type="Decimal" />
                                                            <asp:Parameter Name="RECURRENCERULE" Type="String" />
                                                            <asp:Parameter Name="RECURRENCEPARENTID" Type="Decimal" />
                                                        </InsertParameters>
                                                        <UpdateParameters>
                                                            <asp:Parameter Name="SUBJECT" Type="String" />
                                                            <asp:Parameter Name="START_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="END_TIME" Type="DateTime" />
                                                            <asp:Parameter Name="USERID" Type="Decimal" />
                                                            <asp:Parameter Name="RECURRENCERULE" Type="String" />
                                                            <asp:Parameter Name="RECURRENCEPARENTID" Type="Decimal" />
                                                            <asp:Parameter Name="ID" Type="Decimal" />
                                                        </UpdateParameters>
                                                    </asp:SqlDataSource><asp:SqlDataSource
                                                        ID="SqlDataSource2" runat="server"
                                                        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                                                        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>"
                                                        SelectCommand="SELECT &quot;ID&quot;, &quot;USERNAME&quot; FROM &quot;AVAILABILITY_TEST_USERS&quot;">
                                                    </asp:SqlDataSource>--%>
                                                   
                    
                                                    <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="130"
                                                            Height="40" Skin = ""
                                                            OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" />
                                                    <div style="display: none;">
                                                        <div id="contentContainer">
                                                        <%--
                                                            Starts on: <span id="startTime"></span>
                                                            <br />
                                                            Ends on: <span id="endTime"></span>
                                                            <hr />
                   
                                                            Description:
                                                        --%>
                                                            <div id="descriptionDiv">
                                                            </div>
                                                        </div>
                                                    </div>
                                                    </telerik:RadAjaxPanel>
                                                  </td>
                                            </tr>
                                           
                                        </tbody>
                                    </table>
    
    <!-- Permanent availability -->
                       
                                </div>
                            </td>
                        </tr>
                    </table>
  <!-- End Workspace -->    
 
</asp:Content>

Plamen
Telerik team
 answered on 25 Sep 2012
1 answer
73 views
Hi guys, 
I just want to ask if someone has the solution to my problem regarding GridDateTimeColumn in RadGrid. I want to clear the history of this column. See my attached image. 

 Thanks in Advance, 
Jeff
Radoslav
Telerik team
 answered on 25 Sep 2012
1 answer
106 views
Hi,

I recently upgraded Rad Controls in one of my sites to version released in Q1/2012. I had all sorts of compatibility issues and sorted them all out.

One thing I can't sort out and have no idea where to start from is the RadAjaxPanel.

The problems are have are:
  1. It doesn't work at all - even if I set EnableAJAX="true" it still behaves as if it's false.
  2. And a strange one: Any HTML it contains that isn't a server control is omitted when I "view source" after the page loads. So if I have in it a few DIVs that hold a few textboxes then the end result HTML is only the textboxes, the DIVs aren't there at all.

I have inside the panel a <script> tag with client side javascript. Is that a problem? I removed it and problems were still there, but still worth asking I guess..

Any idea?

Cheers!
David.
Andrey
Telerik team
 answered on 25 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?