Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
74 views

We are having a problem with silver-light control that is inside <telerik:RadPageView/>.  

The issue is, it loads properly on IE; but doesn’t work on Chrome and FF browser. However, it is working fine when used outside the RadPageView control.

Could you please provide us a solution to resolve this?


Please refer application code to reproduce this issue.


ASPX page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadChartInASP.NET.Web._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>
<!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>
</head>
<body style="height: 100%; margin: 0;">
    <form id="form1" runat="server" style="height: 100%;" dir="ltr">
    <script type="text/javascript">
        var silverlightControl;
        function pluginLoaded(sender) {
            // get reference to the silverlight control on the page
            silverlightControl = sender.get_element();
        }
        function ColorChanged(sender, args) {
            silverlightControl.content.slChartPage.SeriesColor = sender.get_selectedColor();
        }
        function Show3D_Click(sender) {
            var checked = sender.checked;
            silverlightControl.content.slChartPage.Show3D = checked;
            if (checked) {
                $get("ColorPicker").style.display = "none";
                $get("ColorPickerLbl").style.display = "none";
                $get("ShowTooltips").style.display = "none";
                $get("ShowTooltipsLbl").style.display = "none";
                $get("HideElements").style.display = "block";
                $get("HideElementsLbl").style.display = "block";
                $get("HideElementsOnRotation").checked = false;
            }
            else {
                $get("ColorPicker").style.display = "block";
                $get("ColorPickerLbl").style.display = "block";
                $get("ShowTooltips").style.display = "block";
                $get("ShowTooltipsLbl").style.display = "block";
                $get("ShowItemTooltips").checked = false;
                $get("HideElements").style.display = "none";
                $get("HideElementsLbl").style.display = "none";
            }
        }
        function AxisXTitleTextBox_Changed(sender, args) {
            silverlightControl.content.slChartPage.AxisXTitle = args.get_newValue();
        }
        function AxisYTitleTextBox_Changed(sender, args) {
            silverlightControl.content.slChartPage.AxisYTitle = args.get_newValue();
        }
        function ShowItemLabels_Click(sender) {
            silverlightControl.content.slChartPage.ShowItemLabels = sender.checked;
        }
        function ShowItemTooltips_Click(sender) {
            silverlightControl.content.slChartPage.ShowItemTooltips = sender.checked;
        }
        function HideElementsOnRotation_Click(sender) {
            silverlightControl.content.slChartPage.HideElementsOnRotation = sender.checked;
        }
        function ShowXAxis_Click(sender) {
            silverlightControl.content.slChartPage.ShowXAxis = sender.checked;
        }
        function ShowYAxis_Click(sender) {
            silverlightControl.content.slChartPage.ShowYAxis = sender.checked;
        }
        function ShowXAxisGridlines_Click(sender) {
            silverlightControl.content.slChartPage.ShowXAxisGridlines = sender.checked;
        }
        function ShowYAxisGridlines_Click(sender) {
            silverlightControl.content.slChartPage.ShowYAxisGridlines = sender.checked;
        }
        function ShowXAxisStriplines_Click(sender) {
            silverlightControl.content.slChartPage.ShowXAxisStriplines = sender.checked;
        }
        function ShowYAxisStriplines_Click(sender) {
            silverlightControl.content.slChartPage.ShowYAxisStriplines = sender.checked;
        }
        function AxisXFormat_Changed(sender, args) {
            silverlightControl.content.slChartPage.AxisXFormat = args.get_item().get_text();
        }
        function AxisYFormat_Changed(sender, args) {
            silverlightControl.content.slChartPage.AxisYFormat = args.get_item().get_text();
        }
        function ItemsFormat_Changed(sender, args) {
            silverlightControl.content.slChartPage.ItemsFormat = args.get_item().get_text();
        }
        function SeriesColorCombo_Changed(sender, args) {
            silverlightControl.content.slChartPage.SeriesColor = args.get_item().get_text();
        }
    </script>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="height: 400px;">
        <telerik:RadTabStrip ID="tabConfigure" Width="100%" ClientIDMode="Static" runat="server"
            Style="position: relative; margin-left: 0px;" MultiPageID="ConfiguraionPan">
            <Tabs>
                <telerik:RadTab Text="Admin" Value="Admin" runat="server" PageViewID="pvAdmin">
                </telerik:RadTab>
                <telerik:RadTab Text="Dashboard" runat="server" PageViewID="pvCharts" Value="Charting">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/RadChartInASP.NET.xap"
            MinimumVersion="2.0.30728.0" Width="100%" Height="100%" OnPluginLoaded="pluginLoaded" />
    </div>
    <telerik:RadMultiPage ID="ConfiguraionPan" Width="100%" CssClass="multiPage" runat="server"
        ClientIDMode="Static">
        <telerik:RadPageView ID="ConfugarationPan" runat="server" Height="100%" Width="100%"
            ClientIDMode="Static">
        </telerik:RadPageView>
        <telerik:RadPageView ID="pvDashboard" runat="server" Height="100%" Width="100%" ClientIDMode="Static">
        </telerik:RadPageView>
        <telerik:RadPageView ID="pvCharts" runat="server" Height="100%" Width="100%" ClientIDMode="Static">
            <table>
                <tr>
                    <td>
                        Show 3D chart:
                    </td>
                    <td>
                        <asp:CheckBox ID="Show3D" runat="server" onclick="Show3D_Click(this);" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div id="ColorPickerLbl">
                            Series color:
                        </div>
                    </td>
                    <td>
                        <div id="ColorPicker">
                            <telerik:RadColorPicker ID="RadColorPicker1" runat="server" ShowEmptyColor="false"
                                Preset="Standard" OnClientColorChange="ColorChanged">
                            </telerik:RadColorPicker>
                        </div>
                    </td>
                    <td>
                          
                    </td>
                    <td>
                          
                    </td>
                    <td>
                          
                    </td>
                    <td>
                          
                    </td>
                </tr>
                <tr>
                    <td>
                        AxisXTitle:
                    </td>
                    <td>
                        <telerik:RadTextBox ID="AxisXTitleTextBox" runat="server" Width="220px">
                            <ClientEvents OnValueChanged="AxisXTitleTextBox_Changed" />
                        </telerik:RadTextBox>
                    </td>
                    <td>
                        <div id="ShowTooltips">
                            <asp:CheckBox ID="ShowItemTooltips" runat="server" onclick="ShowItemTooltips_Click(this);" />
                        </div>
                        <div id="HideElements" style="display: none;">
                            <asp:CheckBox ID="HideElementsOnRotation" runat="server" onclick="HideElementsOnRotation_Click(this);" />
                            <br />
                        </div>
                    </td>
                    <td>
                        <div id="ShowTooltipsLbl">
                            Show item tooltips.
                        </div>
                        <div id="HideElementsLbl" style="display: none;">
                            Hide elements on rotation
                        </div>
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowXAxisGridlines" runat="server" onclick="ShowXAxisGridlines_Click(this);" />
                    </td>
                    <td>
                        Show X axis gridlines.
                    </td>
                </tr>
                <tr>
                    <td>
                        AxisYTitle:
                    </td>
                    <td>
                        <telerik:RadTextBox ID="AxisYTitleTextBox" runat="server" Width="220px">
                            <ClientEvents OnValueChanged="AxisYTitleTextBox_Changed" />
                        </telerik:RadTextBox>
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowItemLabels" runat="server" Checked="true" onclick="ShowItemLabels_Click(this);" />
                    </td>
                    <td>
                        Show item labels.
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowYAxisGridlines" runat="server" onclick="ShowYAxisGridlines_Click(this);" />
                    </td>
                    <td>
                         Show Y axis gridlines.
                    </td>
                </tr>
                <tr>
                    <td>
                        Axis X format:
                    </td>
                    <td>
                        <telerik:RadComboBox ID="AxisXFormat" runat="server" OnClientSelectedIndexChanged="AxisXFormat_Changed"
                            Width="220px">
                            <Items>
                                <telerik:RadComboBoxItem Text="MMM/dd/yy" />
                                <telerik:RadComboBoxItem Text="MM/dd/yyyy" />
                                <telerik:RadComboBoxItem Text="Day: #VAL{dddd}" />
                                <telerik:RadComboBoxItem Text="HH:mm:ss" />
                                <telerik:RadComboBoxItem Text="yyyy MMMM" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowXAxis" runat="server" Checked="true" onclick="ShowXAxis_Click(this);" />
                    </td>
                    <td>
                        Show X axis.
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowXAxisStriplines" runat="server" onclick="ShowXAxisStriplines_Click(this);" />
                    </td>
                    <td>
                         Show X axis striplines.
                    </td>
                </tr>
                <tr>
                    <td>
                        Axis Y format:
                    </td>
                    <td>
                        <telerik:RadComboBox ID="AxisYFormat" runat="server" OnClientSelectedIndexChanged="AxisYFormat_Changed"
                            Width="220px">
                            <Items>
                                <telerik:RadComboBoxItem Text="N" />
                                <telerik:RadComboBoxItem Text="C" />
                                <telerik:RadComboBoxItem Text="Amount: #VAL{C0}" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowYAxis" runat="server" Checked="true" onclick="ShowYAxis_Click(this);" />
                    </td>
                    <td>
                        Show Y axis.
                    </td>
                    <td>
                        <asp:CheckBox ID="ShowYAxisStriplines" runat="server" Checked="true" onclick="ShowYAxisStriplines_Click(this);" />
                    </td>
                    <td>
                        Show Y axis striplines.
                    </td>
                </tr>
                <tr>
                    <td>
                        Chart item format:
                    </td>
                    <td>
                        <telerik:RadComboBox ID="ChartItemFormat" runat="server" OnClientSelectedIndexChanged="ItemsFormat_Changed"
                            Width="220px">
                            <Items>
                                <telerik:RadComboBoxItem Text="N" />
                                <telerik:RadComboBoxItem Text="C" />
                                <telerik:RadComboBoxItem Text="Amount: #Y{C0}" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Telerik" DecoratedControls="All" />
    </form>
</body>
</html>
Nencho
Telerik team
 answered on 03 Oct 2013
3 answers
226 views
I am noticing some strange behavior. We have a RadEditor and when the page loads it takes about a second or so and then there is a half second delay and then a WebResource.axd is loaded that contains some styles such as ď»ż.RadEWrongWord{background-color:yellow}. I would like to not have this WebResource.axd created or loaded with this delay. Any thoughts?
Marin Bratanov
Telerik team
 answered on 03 Oct 2013
1 answer
197 views

On one of our sites we have a TabStrip in the MasterPage of an MVC2 site.

Normally users can click on a tab to navigate to the path visible when hovering over the tab.


When the tab is selected as the active tab, users can hover over it to see the intended path, but clicking the tab does not re-load the page (the intended behavior).

Any ideas on how to achieve this effect?



A co-worker said that we're using TabStrips on an MVC4 site and clicking the selected tab refreshes the page.

Nencho
Telerik team
 answered on 03 Oct 2013
2 answers
485 views
Using the provided code - the modal closes but the overlay is left open ... what am I doing wrong?

var window;
function OpenWindow(){
   window = $find('<%= mywindow.ClientID %>');
   window.show();
}
 
function CloseWindow(){
   window.hide();
}
Marin Bratanov
Telerik team
 answered on 03 Oct 2013
4 answers
213 views

Hi, i want the RadDatePicker to view multible months, so i used RadCalendar with MultiViewColumns="3" as shared calendar
and this is my code

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" SharedCalendarID="RadCalendar1" >
</telerik:RadDatePicker>
<telerik:RadCalendar ID="RadCalendar1" Runat="server" 
    MultiViewColumns="3" EnableMultiSelect="False"  AutoPostBack="True" >
</telerik:RadCalendar>

now when clicking on date popup button, postback is done and i'm not able to select a date.

Eyup
Telerik team
 answered on 03 Oct 2013
1 answer
225 views
Hi,

I configured ajax manajar as follow:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1" EnablePageHeadUpdate="False">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="typeRadio">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="uplPanel" UpdatePanelCssClass="" />
                            <telerik:AjaxUpdatedControl ControlID="certifiedPanel" UpdatePanelCssClass="" />
                            <telerik:AjaxUpdatedControl ControlID="instructionsLiteral" UpdatePanelCssClass="" />
                            <telerik:AjaxUpdatedControl ControlID="RequiredFieldValidator8" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="adminOfficeCombo">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="uplCombo" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="SaveBtn">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="content" LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelCssClass="" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>


When I select the first or last item in  typeRadio ( a radio list contain 3 items) it does a postback and does not execute the code then display this message "74|updatePanel|bridge_body_RadAjaxManager1SU||" in the same position of the ajax manager in the HTML.

If I disable AJAX on the ajax manager the page works fine.

Best
Maria Ilieva
Telerik team
 answered on 03 Oct 2013
2 answers
670 views
Hi,

I see this message:



RadGrid - gdv_myFormsSystem.IO.FileNotFoundException: Could not load file or assembly 'Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=1212' or one of its dependencies. The system cannot find the file specified. File name: 'Telerik.Web.UI, Version=2011.2.712.35, Culture=neutral, PublicKeyToken=1212' at Telerik.Web.Design.RadGridDesigner.GetDesignTimeHtml(DesignerRegionCollection regions) at System.Web.UI.Design.ControlDesigner.GetViewRendering(ControlDesigner designer)

How can i fix it?

I tried following:
I removed the reference then added it again, build solution.
I restarted PC but did nto help.

Irfan
Top achievements
Rank 1
 answered on 03 Oct 2013
1 answer
93 views
Hi,
I am using telerik HTML charts with Additional Y Axis feature. Now Both primary YAxis and Additional YAxis is display at same side. 
How can we change position of Additional Y-Axis to right side? 

Marin Bratanov
Telerik team
 answered on 03 Oct 2013
3 answers
185 views
Hi,

I am facing a problem.I want to perform some implementation in Advance Form(which i made customized) through ajax.But it is not working.Simple thing .On one  asp:LinkButton click event i want to update one dropdown list.

Where i add 

  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableScriptCombine="false">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RCLocation">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RTVDoctors" />
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RTVDoctors">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadCalendar1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="btnSavePatient">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RCPatient" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

 <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="100%" Height="100%"
   OnDataBound="RadScheduler1_DataBound"
   OnAppointmentDataBound="RadScheduler1_AppointmentDataBound"
   OnClientFormCreated="schedulerFormCreated"
   CustomAttributeNames="AppointmentColor,HCUnitId,EmpId,pt_regid,ExRoomId,AppStatusId,CanReason,DeptId,AppId,AppDate"
   EnableDescriptionField="true"
                AppointmentStyleMode="Default"
                Localization-AdvancedClose="Close"
                StartInsertingInAdvancedForm="true"
                OnClientTimeSlotClick="OnClientAppointmentSlot"
                ShowHoursColumn="true"
                MinutesPerRow="15"
                TimeLabelRowSpan="1"
                RowHeight="25px"
                NumberOfHoveredRows="1"
                FirstDayOfWeek="Saturday"
                LastDayOfWeek="Friday"
                OnFormCreated="RadScheduler1_FormCreated"
                Skin="Sitefinity"
                OnAppointmentCreated="RadScheduler1_AppointmentCreated"
                ResourcePopulationMode="ServerSide"
                OnAppointmentDelete="RadScheduler1_AppointmentDelete"
                >
   
                <AdvancedForm Modal="true" />

                <WeekView HeaderDateFormat="dd-MM" />
                
                <MonthView HeaderDateFormat="dd-MM" />

                <DayView HeaderDateFormat="dd-MM" ShowHoursColumn="true" />
   
                <AppointmentTemplate>
                    <table onmouseover="DisplayAppointmentInfo('<%# Eval("Description") %>');" onmouseout="HideAppointmentInfo();" width="30%" border="0" style="border-style:none;" >
                        <tr>
                            <td style="border-style:none;">                                
                                <%# Eval("Subject") %>
                            </td>
                        </tr>
                    </table>
   </AppointmentTemplate>
   
                <AdvancedEditTemplate>
   <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" 
   LocationID='<%# Bind("HCUnitId") %>'
                        DoctorID='<%# Bind("EmpId") %>'
                        PatientID ='<%# Bind("pt_regid") %>'
                        RoomID ='<%# Bind("ExRoomId") %>'
                        DepartmentID ='<%# RTVDoctors.SelectedNode.ParentNode.Value %>'
                        AppointmentID='<%# Bind("AppId") %>'
                        AppointmentColor='<%# Bind("AppointmentColor") %>'
                        StatusID ='<%# Bind("AppStatusId") %>'
                        Description ='<%# Bind("CanReason") %>'
                        SelectedDate='<%# Bind("Start") %>'
                        Start='<%# Bind("Start") %>'
   End='<%# Bind("End") %>'
    />
   </AdvancedEditTemplate>
   
                <AdvancedInsertTemplate>
   <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" 
                        LocationID='<%# RCLocation.SelectedValue %>'
                        DoctorID='<%# RTVDoctors.SelectedValue %>'
                        DepartmentID='<%# RTVDoctors.SelectedNode.ParentNode.Value %>'
                        SelectedDate='<%# RadCalendar1.SelectedDate %>'
                        AppointmentColor='<%# Bind("AppointmentColor") %>'
   Start='<%# Bind("Start") %>'
   End='<%# Bind("End") %>' />
   </AdvancedInsertTemplate>

                <TimelineView UserSelectable="false" />
       <TimeSlotContextMenuSettings EnableDefault="true" />
       <AppointmentContextMenuSettings EnableDefault="true" />        
   </telerik:RadScheduler>

and my advance form 

 <div id="dvtabs">
            <telerik:RadTabStrip runat="server" ID="RTStripTop" Orientation="HorizontalTop" SelectedIndex="0" MultiPageID="RMPages" CssClass="tabstrip" Skin="Office2010Silver" >
                <Tabs>
                    <telerik:RadTab Text="Appointment">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
        </div>
        <telerik:RadMultiPage runat="server" ID="RMPages" SelectedIndex="0" CssClass="multiPage" >
            <telerik:RadPageView runat="server" ID="RPVAppointment" >
                <div class="rsAdvOptionsScroll" style="position: relative; height:100px; background-color:#FFFFFF;" id="dvInsideWindow">
                    <asp:Panel runat="server" ID="AdvancedEditOptionsPanel" CssClass="rsAdvOptions" >
                        <asp:Panel runat="server" ID="BasicControlsPanel" CssClass="rsAdvBasicControls" 
                            OnDataBinding="BasicControlsPanel_DataBinding" >
                              <div>
                                    <table cellpadding="10" cellspacing="10"  width="100%">
                                        <tr>
                                            <td width="10%"></td>
                                            <td width="20%"></td>
                                            <td width="10%"></td>
                                            <td width="60%"></td>
                                        </tr>
                                        <tr>
                                            <td><b>Type</b></td>
                                            <td>New Patient  <input id="chkPatient" type="checkbox" onclick="javascript: OpenRegistrationPanel(this);"/></td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                    </table>
                              </div>
                            <div id="dvPatient" class="dvPatient" style="height:0%;" >
                                <table cellpadding="10" cellspacing="10" width="100%" style="background-color:#bbe094">
                                    <tr>
                                        <td width="10%"></td>
                                        <td width="14%"></td>
                                        <td width="13%"></td>
                                        <td width="23%"></td>
                                        <td width="20%"></td>
                                        <td width="10%"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadComboBox ID="RCTitle" runat="server"  MarkFirstMatch="true" Width="100px" Filter="StartsWith" EmptyMessage="Title">
                                            </telerik:RadComboBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RTPatfname" runat="server" EmptyMessage="First Name">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RTPatlname" runat="server" EmptyMessage="Last Name">
                                                <ClientEvents OnBlur="OnBlur" />
                                            </telerik:RadTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadDatePicker ID="RDDOB" runat="server" MinDate="01/01/1900" DateInput-ReadOnly="true" EmptyMessage="Date of Birth">
                                                <Calendar Skin='<%# Owner.Skin %>' UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" 
                                                                ViewSelectorText="x" ShowOtherMonthsDays="False" ShowRowHeaders="False"> 
                                                    <SpecialDays> 
                                                        <telerik:RadCalendarDay Repeatable="Today">  
                                                            <ItemStyle CssClass="rcToday" /> 
                                                        </telerik:RadCalendarDay> 
                                                    </SpecialDays> 
                                                </Calendar> 
                                            </telerik:RadDatePicker>
                                        </td>
                                        <td>
                                            
                                        </td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <telerik:RadComboBox ID="RCGender" runat="server"  MarkFirstMatch="true" Width="100px" Filter="StartsWith" EmptyMessage="Gender">
                                                <Items>
                                                    <telerik:RadComboBoxItem Text="Male" Value="1" />
                                                    <telerik:RadComboBoxItem Text="Female" Value="2" />
                                                    <telerik:RadComboBoxItem Text="Other" Value="3" />
                                                </Items>
                                            </telerik:RadComboBox>
                                        </td>
                                        <td>
                                            <telerik:RadMaskedTextBox ID="RMCellNo" runat="server" Width="100%" EmptyMessage="Mobile No"
                                                Mask="(971)-#########">
                                            </telerik:RadMaskedTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadTextBox ID="RTEmailNo" runat="server" EmptyMessage="Email">
                                            </telerik:RadTextBox>
                                        </td>
                                        <td>
                                            <telerik:RadComboBox ID="RCPatientType" runat="server"  MarkFirstMatch="true" Width="100%"  Filter="StartsWith" EmptyMessage="Patient Type">
                                            </telerik:RadComboBox>
                                        </td>
                                        <td>
                                            <asp:LinkButton ID="btnSavePatient" runat="server" OnClick="btnSavePatient_Click" Text="Add" AutoPostBack="true" ValidationGroup="Patient123">
                                            </asp:LinkButton>
                                        </td>
                                        <td></td>
                                    </tr>
                                </table>
                            </div>
                            <div id="dvAppointment" style="background-color:#e6e2e7;height:100%">
                                <table cellpadding="10" cellspacing="10" width="100%" >
                                <tr>
                                    <td Width="15%"></td>
                                    <td Width="34%"></td>
                                    <td Width="15%"></td>
                                    <td Width="34%"></td>
                                    <td Width="2%"></td>
                                </tr>
                                <tr>
                                    <td>Patient</td>
                                    <td>
                                            <telerik:RadComboBox ID="RCPatient" runat="server" MarkFirstMatch="true" Filter="Contains" AppendDataBoundItems="true"  
                                             DropDownAutoWidth="Enabled" EmptyMessage="Choose Patient" HighlightTemplatedItems="true">
                                            <HeaderTemplate>
                    

                           <asp:RequiredFieldValidator runat="server" ID="PatientValidator" ControlToValidate="RCPatient" InitialValue="0" 
                               EnableClientScript="true" Display="Dynamic" CssClass="rsValidatorMsg" />
                            <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>
                        
                
                        <span class="rsAdvResetExceptions">
                            <asp:LinkButton runat="server" ID="ResetExceptions" OnClick="ResetExceptions_OnClick" />
                        </span>
                        <telerik:RadSchedulerRecurrenceEditor runat="server" ID="AppointmentRecurrenceEditor" Visible="false"/>
                        <asp:HiddenField runat="server" ID="OriginalRecurrenceRule" />
                        <telerik:RadCalendar runat="server" ID="SharedCalendar" Skin='<%# Owner.Skin %>'
                            CultureInfo='<%# Owner.Culture %>' ShowRowHeaders="false" RangeMinDate="1900-01-01" Visible="false"/>
                    </asp:Panel>
                </div>
                <asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
                    <div class="rsAdvButtonWrapper">
                        <asp:LinkButton runat="server" ID="UpdateButton" CssClass="rsAdvEditSave" OnClick="UpdateButton_Click"  CausesValidation="true">
       <span><%= Owner.Localization.Save %></span>
                        </asp:LinkButton>
                        <asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel" OnClick="AdvancedEditCloseButton_Click"
                            CausesValidation="false" >
       <span><%= Owner.Localization.Cancel %></span>
                        </asp:LinkButton>
                    </div>
                    <asp:HiddenField ID="hdnLocationID" runat="server" />
                    <asp:HiddenField ID="hdnDepartmentID" runat="server" />
                    <asp:HiddenField ID="hdnTreeViewID" runat="server" />
                    <asp:HiddenField ID="hdnDoctorID" runat="server" />
                    <asp:HiddenField ID="hdnAppointmentID" runat="server" />
                    <asp:HiddenField ID="hdnSelectedDate" runat="server" />
                </asp:Panel>
            </telerik:RadPageView>
        </telerik:RadMultiPage>

where i add ajax request In RadScheduler page like 
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="btnSavePatient">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RCPatient" />
        </UpdatedControls>
    </telerik:AjaxSetting>
</AjaxSettings>

or 

in advance form control

<telerik:RadAjaxManager ID="ramAdvForm" runat="server" EnableScriptCombine="false">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="btnSavePatient">
        <UpdatedControls>
            <telerik:AjaxUpdatedControl ControlID="RCPatient" />
        </UpdatedControls>
    </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

or 

used normal ajax like 

<asp:UpdatePanel runat="server" UpdateMode="Conditional" ID="updatePanel1">
                                        <ContentTemplate>
                                            <telerik:RadComboBox ID="RCPatient" runat="server" MarkFirstMatch="true" Filter="Contains" AppendDataBoundItems="true"  
                                             DropDownAutoWidth="Enabled" EmptyMessage="Choose Patient" HighlightTemplatedItems="true">
                                            <HeaderTemplate>
                                                <table style="width: 450px" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td style="width: 200px;">First Name
                                                        </td>
                                                        <td style="width: 100px;">Last Name
                                                        </td>
                                                        <td style="width: 50px;">FileNo
                                                        </td>
                                                        <td style="width: 100px;">Mobile
                                                        </td>
                                                    </tr>
                                                </table>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <table style="width: 450px" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td style="width: 200px;">
                                                            <%# DataBinder.Eval(Container, "Text")%>
                                                        </td>
                                                        <td style="width: 100px;">
                                                            <%# DataBinder.Eval(Container, "Attributes['LastName']")%>
                                                        </td>
                                                        <td style="width: 50px;">
                                                            <%# DataBinder.Eval(Container, "Attributes['FileNo']")%>
                                                        </td>
                                                        <td style="width: 100px;">
                                                            <%# DataBinder.Eval(Container, "Attributes['MobileNo']")%>
                                                        </td>                                                        
                                                    </tr>
                                                </table>
                                            </ItemTemplate>
                                        </telerik:RadComboBox>
                                        </ContentTemplate>    
                                        <Triggers>
                                            <asp:AsyncPostBackTrigger ControlID="btnSavePatient" EventName="Click" />        
                                        </Triggers>
                                     </asp:UpdatePanel>
i tried all but no luck.

Thanks in advance

Regards,
Danish  


Boyan Dimitrov
Telerik team
 answered on 03 Oct 2013
2 answers
812 views
Hi,

Is it possible to extract the Year (YYYY) part of the SelectedDate value, when using the RadDatePicker control?

Thanks, Ida
Ida
Top achievements
Rank 1
 answered on 03 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?