Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
148 views
Hi,
I am creating a Ball Field Scheduling application and i need to send an email out when a schedule is changed or canceled. I can get the values of the main data source but how do I get the values of my Resouces values from the edited record.

I am using
Dim subj As String = e.Appointment.Subject 
to get the value of the appointment text but I am grouping the scheduler by "FieldName" from my resource list How do I get this value so I can send the field that it is scheduled for in the email? My Resource name is "fields"
Thanks.
Robert
Top achievements
Rank 1
 answered on 15 May 2009
1 answer
159 views
Hi,

In my application I am using radgrid in some of the forms. Hence, I have radscriptmanager in the masterpage.

I have also got asp.net controls for which I am trying to write  a javascript function which is executed on clientclick or for custom validation. Unfortunately when the javascript function is to be executed I get the error that ' Microsoft JScript Error: object expected'. ~(Even a simple function to display an alert message doesn't work). In order to double check I added another form in the application without using the masterpage. I can call my javascript function in this page without any problem.

Has anyone else come across such issues? If so, could you please advise me in the right direction?

many thanks,

Anu
Anu
Top achievements
Rank 1
 answered on 15 May 2009
5 answers
274 views
Hi

I am wondering what is the 'right' way to fix this problem...

When the visitor use the X to close the RadWindow while the media is still playing,   different things happen
in IE and Firefox.

1 ) Firefox stops the sound, as desired
2 ) IE7 leaves it running, and it needs a page refresh to kill it.

How can I make IE do the same as firefox?

I did try destroy content on close (which works)  but that requires page refresh to be able to 
restart the video subsequently.

Also tried using onClientClose but could not get that to work.

Thanks for hints on this.

Clive

P.S The rad window is a very slick interface!

Georgi Tunev
Telerik team
 answered on 15 May 2009
3 answers
136 views
I know the best exmpale of using a popup in advanced edit mode is using a radedit window

http://demos.telerik.com/aspnet-ajax/scheduler/examples/raddock/defaultcs.aspx

My question is i want to keep all the functionality that the inline advanced edit has with Recurring Tasks. All that i'd like to do is just display the advanced edit in a popup window but keep all the functionality of the inline advanced edit.

Clyde
Top achievements
Rank 1
 answered on 15 May 2009
6 answers
204 views
Dear All,

I am saving the state of the docks in the database. Everything works, but if a user leaves the page and comes back to it
niether Close nor Minimize buttons are working. CreateRadDockFromState does add commands   DockCloseCommand and
DockExpandCollapseCommand :

 

private RadDock CreateRadDockFromState(DockState state)

 

{

 

RadDock dock = new RadDock();

 

dock.DockMode =

DockMode.Docked;

 

dock.ID =

string.Format("RadDock{0}", state.UniqueName);

 

dock.ApplyState(state);

dock.Commands.Add(

new DockCloseCommand());

 

dock.Commands.Add(

new DockExpandCollapseCommand());

 

 

return dock;

 

}


Any ideas?

using System;  
using System.Collections;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Campus.AppCode;  
using Campus.AppCode.BusinessLayer;  
using Telerik.Web.UI;  
 
namespace Campus.Development  
{  
    public partial class DevelopmentProfile : System.Web.UI.Page  
    {  
        private bool _dockStateCleared = false;  
        private List<DockState> CurrentDockStates  
        {  
            get 
            {  
                var _currentDockStates = new List<DockState>();  
                String strCookieName = "dockstates";  
                HttpCookie cookie = Request.Cookies[strCookieName];  
                if (cookie == null)  
                {  
                    string possibleSettings = new BLLAspNetUser().GetUserSetting(strCookieName);  
                    if (!String.IsNullOrEmpty(possibleSettings))  
                        _currentDockStates = new BLLAspNetUser().DeSerializeDockStates(possibleSettings);  
                    else 
                        _currentDockStates = new List<DockState>();  
 
                    string serializedString = new BLLAspNetUser().SerializeDockStates(_currentDockStates);  
                    AddCookie(serializedString);  
                }  
                else 
                {  
                    _currentDockStates =  
                        new BLLAspNetUser().DeSerializeDockStates(Server.HtmlDecode(Base64Encoder.base64Decode(cookie.Value)));  
                          
                }  
                return _currentDockStates;  
            }  
            set 
            {  
                string serializedString = new BLLAspNetUser().SerializeDockStates(value);  
                AddCookie(serializedString);  
                new BLLAspNetUser().SetUserSetting("dockstates", serializedString);  
            }  
        }  
        private void AddCookie(string value)  
        {  
            HttpCookie cookie = new HttpCookie("dockstates");  
            cookie.Value = Server.HtmlEncode(Base64Encoder.base64Encode(value));  
            DateTime dtNow = new BLLSchoolInfo().GetSqlDate();  
            TimeSpan tsMinute = new TimeSpan(1000000, 0, 0, 0);  
            cookie.Expires = dtNow + tsMinute;  
            Response.Cookies.Add(cookie);  
        }  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            if (!IsPostBack)  
            {  
                DropDownZone.DataBind();  
            }  
        }  
 
        protected void Page_Init(object sender, EventArgs e)  
        {  
            //Recreate the docks in order to ensure their proper operation  
            for (int i = 0; i < CurrentDockStates.Count; i++)  
            {  
                if (CurrentDockStates[i].Closed == false)  
                {  
                    RadDock dock = CreateRadDockFromState(CurrentDockStates[i]);  
                    //We will just add the RadDock control to the RadDockLayout.  
                    // You could use any other control for that purpose, just ensure  
                    // that it is inside the RadDockLayout control.  
                    // The RadDockLayout control will automatically move the RadDock  
                    // controls to their corresponding zone in the LoadDockLayout  
                    // event (see below).  
                    RadDockLayout1.Controls.Add(dock);  
                    //We want to save the dock state every time a dock is moved.  
                    CreateSaveStateTrigger(dock);  
                    //Load the selected widget  
                    LoadWidget(dock);  
                }  
            }  
        }  
 
        protected void RadDockLayout1_LoadDockLayout(object sender, DockLayoutEventArgs e)  
        {  
            //Populate the event args with the state information. The RadDockLayout control  
            // will automatically move the docks according that information.  
            foreach (DockState state in CurrentDockStates)  
            {  
                e.Positions[state.UniqueName] = state.DockZoneID;  
                e.Indices[state.UniqueName] = state.Index;  
            }  
        }  
 
        protected void RadDockLayout1_SaveDockLayout(object sender, DockLayoutEventArgs e)  
        {  
            if (!_dockStateCleared)  
            {  
                //Save the dock state in the session. This will enable us   
                // to recreate the dock in the next Page_Init.  
                CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();  
            }  
            else 
            {  
                //the clear state button was clicked, so we refresh the page and start over.  
                Response.Redirect(Request.RawUrl, false);  
            }  
        }  
 
        private RadDock CreateRadDockFromState(DockState state)  
        {  
            RadDock dock = new RadDock();  
            dock.DockMode = DockMode.Docked;  
            dock.ID = string.Format("RadDock{0}", state.UniqueName);  
            dock.ApplyState(state);  
            dock.Commands.Add(new DockCloseCommand());  
            dock.Commands.Add(new DockExpandCollapseCommand());  
 
            return dock;  
        }  
 
        private RadDock CreateRadDock(string dockName)  
        {  
            RadDock dock = new RadDock();  
            dock.DockMode = DockMode.Docked;  
            dock.UniqueName = Guid.NewGuid().ToString();  
            dock.ID = string.Format("RadDock{0}", dock.UniqueName);  
            dock.Title = dockName;  
            dock.Text = string.Format("Added at {0}", DateTime.Now);  
            dock.Width = Unit.Percentage(100);  
            dock.Commands.Add(new DockCloseCommand());  
            dock.Commands.Add(new DockExpandCollapseCommand());  
 
            return dock;  
        }  
 
        private void CreateSaveStateTrigger(RadDock dock)  
        {  
            //Ensure that the RadDock control will initiate postback  
            // when its position changes on the client or any of the commands is clicked.  
            //Using the trigger we will "ajaxify" that postback.  
            dock.AutoPostBack = true;  
            dock.CommandsAutoPostBack = true;  
 
            AsyncPostBackTrigger saveStateTrigger = new AsyncPostBackTrigger();  
            saveStateTrigger.ControlID = dock.ID;  
            saveStateTrigger.EventName = "DockPositionChanged";  
            UpdatePanel1.Triggers.Add(saveStateTrigger);  
 
            saveStateTrigger = new AsyncPostBackTrigger();  
            saveStateTrigger.ControlID = dock.ID;  
            saveStateTrigger.EventName = "Command";  
            UpdatePanel1.Triggers.Add(saveStateTrigger);  
        }  
 
        private void LoadWidget(RadDock dock)  
        {  
            if (string.IsNullOrEmpty(dock.Tag))  
            {  
                return;  
            }  
            Control widget = LoadControl(dock.Tag);  
            dock.ContentContainer.Controls.Add(widget);  
        }  
 
 
        protected void ButtonAddDock_Click(object sender, EventArgs e)  
        {  
            RadDock dock = CreateRadDock(DroptDownWidget.SelectedItem.Text);  
            //find the target zone and add the new dock there  
            RadDockZone dz = (RadDockZone)(this.DropDownZone.FindControl(DropDownZone.SelectedItem.Text));  
            dz.Controls.Add(dock);  
            CreateSaveStateTrigger(dock);  
 
            //Load the selected widget in the RadDock control  
            dock.Tag = DroptDownWidget.SelectedValue;  
            LoadWidget(dock);  
 
        }  
        public ArrayList GetZones()  
        {  
            ArrayList zones = new ArrayList();  
            zones.Add(Left);  
            zones.Add(Right);  
            return zones;  
        }  
 
    }  
}  
 

<%@ Page Title="Developer Profile" Language="C#" MasterPageFile="~/MasterPages/Development.Master" 
    ValidateRequest="false" AutoEventWireup="true" CodeBehind="DevelopmentProfile.aspx.cs" 
    Inherits="Campus.Development.DevelopmentProfile" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Src="Controls/DeveloperCalendar.ascx" TagName="DeveloperCalendar" TagPrefix="uc1" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="contentpane" runat="server">  
    <asp:ScriptManager ID="ScriptManager1" runat="server">  
    </asp:ScriptManager> 
    <div> 
        <asp:UpdatePanel runat="server" ID="UpdatePanel2">  
            <ContentTemplate> 
                <br /> 
                <telerik:RadDockLayout runat="server" ID="RadDockLayout1" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" 
                    OnLoadDockLayout="RadDockLayout1_LoadDockLayout" Skin="WebBlue">  
                    <telerik:RadDockZone runat="server" ID="Left" Width="45%" MinHeight="200" Style="float: left;  
                        margin-right: 15px; background: #f5f4e8;"> 
                    </telerik:RadDockZone> 
                    <telerik:RadDockZone runat="server" ID="Right" Width="45%" MinHeight="200" Style="background: #f5f4e8;  
                        float: left;"> 
                    </telerik:RadDockZone> 
                </telerik:RadDockLayout> 
            </ContentTemplate> 
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="ButtonAddDock" EventName="Click" /> 
            </Triggers> 
        </asp:UpdatePanel> 
        <div style="width: 0px; height: 0px; overflow: hidden; position: absolute; left: -10000px;">  
            Hidden UpdatePanel, which is used to help with saving state when minimizing, moving  
            and closing docks. This way the docks state is saved faster (no need to update the  
            docking zones).  
            <asp:UpdatePanel runat="server" ID="UpdatePanel1">  
            </asp:UpdatePanel> 
        </div> 
        <%--<table width="100%" height="768px">  
        <tr height="384px">  
            <td valign="top" width="50%">  
                <uc1:DeveloperCalendar ID="DeveloperCalendar1" runat="server" /> 
            </td> 
            <td valign="top" width="50%">  
            </td> 
        </tr> 
        <tr> 
            <td valign="top" width="50%">  
            </td> 
            <td valign="top" width="50%" height="100%">  
            </td> 
        </tr> 
    </table>--%> 
    </div> 
    <br /> 
    <div style="clear: both">  
        Select Module:  
        <asp:DropDownList runat="server" ID="DroptDownWidget" Width="150">  
            <asp:ListItem Text="Calendar" Value="~/Development/Controls/DeveloperCalendar.ascx" 
                Selected="true"></asp:ListItem> 
        </asp:DropDownList> 
        &nbsp;Select Docking Zone:  
        <asp:DropDownList ID="DropDownZone" runat="server" DataSource="<%#GetZones() %>" 
            DataTextField="ID" DataValueField="ClientID" Width="150">  
        </asp:DropDownList> 
        <asp:Button runat="server" CssClass="button" ID="ButtonAddDock" Text="Add Dock" OnClick="ButtonAddDock_Click" /> 
    </div> 
</asp:Content> 
 


Thank you.
Petio Petkov
Telerik team
 answered on 15 May 2009
1 answer
272 views
Hi

I am trying to resize the scheduler to fit 100% of the screen  (height and width) but i am struggling to get it to resize at all..and if it does it causes problems with the Radsplitbar dissapearing. Can you give me some hints as to how to get this to work correctly.

Heres the code i am using.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="calendars.aspx.cs" Inherits="modules_Admissions_calendars_calendars"  %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
 
<style type="text/css">    
    .disableDelete .rsAptDelete    
    {    
        display: none;    
    }      
</style>    
</head> 
<body style="background-color: White" > 
    <form id="form1" runat="server" > 
    <Telerik:RadScriptManager runat="Server" ID="RadScriptManager1" /> 
 
    <script type="text/javascript">  
 
        /* Firefox resize scrollable content */  
        function hideScrollableArea(sender, eventArgs) {  
            if ($telerik.isFirefox)  
                $telerik.$('.rsContentScrollArea').css('overflow', 'hidden');  
        }  
        function showScrollableArea(sender, eventArgs) {  
            if ($telerik.isFirefox)  
                $telerik.$('.rsContentScrollArea').css('overflow', 'auto');  
        }  
 
        function OnClientAppointmentEditing(sender, eventArgs)   
        {  
            var appointmentObject = eventArgs.get_appointment();  
 
            arrayAppointmentID = appointmentObject.get_id().split('_');  
 
            if (arrayAppointmentID[0].toUpperCase() != "INTERVIEW" && arrayAppointmentID[0].toUpperCase() != "VISIT")   
            {  
                eventArgs.set_cancel(true);  
            }  
            else   
            {  
                eventArgs.set_cancel(false);  
            }              
 
        }  
 
        function OnClientAppointmentMoveStart(sender, eventArgs)   
        {  
            var appointmentObject = eventArgs.get_appointment();  
 
            arrayAppointmentID = appointmentObject.get_id().split('_');  
     
            if (arrayAppointmentID[0].toUpperCase() != "INTERVIEW" && arrayAppointmentID[0].toUpperCase() != "VISIT")   
            {  
                eventArgs.set_cancel(true);  
            }  
            else   
            {  
                eventArgs.set_cancel(false);  
            }                                 
          
        }  
       
    </script> 
         
    <Telerik:RadAjaxManager runat="Server" ID="RadAjaxManager1">  
        <AjaxSettings> 
                <Telerik:AjaxSetting AjaxControlID="RadCalendar1">  
                <UpdatedControls>                   
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
 
                <Telerik:AjaxSetting AjaxControlID="RadCalendar2">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadCalendar1" /> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
 
                <Telerik:AjaxSetting AjaxControlID="chkVisits">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
 
                <Telerik:AjaxSetting AjaxControlID="chkInterviews">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
 
                <Telerik:AjaxSetting AjaxControlID="chkDOB">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
 
                <Telerik:AjaxSetting AjaxControlID="chkRegistered">  
                <UpdatedControls> 
                 <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
                  
                <Telerik:AjaxSetting AjaxControlID="chkEnquiry">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
                  
                <Telerik:AjaxSetting AjaxControlID="chkProspectus">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
                  
                <Telerik:AjaxSetting AjaxControlID="chkWithdrawn">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
                  
                <Telerik:AjaxSetting AjaxControlID="chkRejected">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
                  
                <Telerik:AjaxSetting AjaxControlID="RadScheduler1">  
                <UpdatedControls> 
                <Telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
                </Telerik:AjaxSetting> 
              
        </AjaxSettings> 
    </Telerik:RadAjaxManager> 
    <Telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Office2007"/>  
      
        <Telerik:RadSplitter runat="server" ID="RadSplitter1" PanesBorderSize="0" Width="500px" Height="552px" Skin="Office2007">                     
          
                <!-- the scheduler view --> 
                <Telerik:RadPane runat="Server" ID="leftPane" Scrolling="None" Width="800px" >              
                    <Telerik:RadScheduler Culture="en-GB" runat="server" ID="RadScheduler1" Skin="Office2007" EnableEmbeddedSkins="True" 
                        ShowFooter="true"  DayStartTime="08:00:00" DayEndTime="21:00:00" 
                        TimeZoneOffset="00:00:00" OverflowBehavior="Scroll" SelectedView="MonthView" Height="551px" 
                        TimelineView-UserSelectable="false" OnNavigationComplete="RadScheduler1_NavigationComplete" 
                        OnAppointmentDelete="RadScheduler1_AppointmentDelete" 
                        OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert" 
                        FirstDayOfWeek="Monday" LastDayOfWeek="Friday" CustomAttributeNames="customTitle" OnClientAppointmentEditing="OnClientAppointmentEditing"    
                        OnClientAppointmentMoveStart="OnClientAppointmentMoveStart" ShowAllDayRow="true">  
                        <AppointmentTemplate> 
                            <asp:Label ID="lblTitle" runat="server"><%# Eval("customTitle") %></asp:Label>   
                        </AppointmentTemplate>                       
                    </Telerik:RadScheduler>                  
                </Telerik:RadPane>                
                  
              <!--the bar to close the panel -->     
              <Telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Backward" />    
                           
              <Telerik:RadPane runat="Server" ID="RightPane" Width="220px" MinWidth="0" MaxWidth="220"   
                    Scrolling="None" OnClientBeforeResize="hideScrollableArea" OnClientResized="showScrollableArea" 
                    OnClientBeforeExpand="hideScrollableArea" OnClientExpanded="showScrollableArea" 
                    OnClientBeforeCollapse="hideScrollableArea" OnClientCollapsed="showScrollableArea" > 
                      
                    <div class="calendar-container" align="center"<!--  holds the calendar--> 
                      
                        <Telerik:RadCalendar runat="server" ID="RadCalendar1" Skin="Office2007" AutoPostBack="true" 
                            EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="true" 
                            EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar1_SelectionChanged" 
                            > 
                        </Telerik:RadCalendar> 
                          
                    </div> 
                      
                     <!-- the checkbox selectors --> 
                    <Telerik:RadPanelBar runat="server" Skin="Office2007" ID="PanelBarMarketing" Width="100%">     
                        <Items>                            
                            <Telerik:RadPanelItem runat="server" Text="Marketing" Expanded="true">  
                                <Items> 
                                    <Telerik:RadPanelItem runat="server" ID="PanelBarMarketingCheckboxes">  
                                        <ItemTemplate> 
                                            <div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkVisits" runat="server" Text="Visits" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkInterviews" runat="server" Text="Interviews" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                            </div> 
                                        </ItemTemplate> 
                                    </Telerik:RadPanelItem> 
                                </Items> 
                            </Telerik:RadPanelItem> 
                        </Items> 
                    </Telerik:RadPanelBar> 
                     <Telerik:RadPanelBar runat="server" Skin="Office2007" ID="PanelBarPupil" Width="100%">     
                        <Items>                            
                            <Telerik:RadPanelItem runat="server" Text="Pupil" Expanded="true">  
                                <Items> 
                                    <Telerik:RadPanelItem runat="server" ID="PanelBarPupilCheckboxes" > 
                                        <ItemTemplate> 
                                            <div> 
                                                <div > 
                                                    <asp:CheckBox ID="chkDOB" runat="server" Text="DOB" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkRegistered" runat="server" Text="Registered" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkEnquiry" runat="server" Text="Enquiry" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                 <div> 
                                                    <asp:CheckBox ID="chkProspectus" runat="server" Text="Propsectus Sent" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkWithdrawn" runat="server" Text="Withdrawn" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                                <div> 
                                                    <asp:CheckBox ID="chkRejected" runat="server" Text="Rejected" Checked="true" AutoPostBack="true" 
                                                        OnCheckedChanged="CheckBoxes_CheckedChanged" /> 
                                                </div> 
                                            </div> 
                                        </ItemTemplate> 
                                    </Telerik:RadPanelItem> 
                                </Items> 
                            </Telerik:RadPanelItem> 
                        </Items> 
                    </Telerik:RadPanelBar> 
                </Telerik:RadPane> 
                  
        </Telerik:RadSplitter> 
 
    <!-- Critical Error Display --> 
    <table id="tblCriticalError" runat="server" width="100%" height="100%" visible="false">  
        <tr> 
            <td> 
                <iSAMS:InfoTable runat="server" ID="infCriticalError" StyleType="PageError" HeadingText="The following error occurred:" /> 
            </td> 
        </tr> 
    </table> 
    </form> 
</body> 
</html> 
 

Thanks
Atanas Korchev
Telerik team
 answered on 15 May 2009
4 answers
72 views
Hi,

I have a radalert as a confirmation message / error message popup in a usercontrol.  The alert is fired from codebehind via

Me.ctlAjax.ResponseScripts.Add("ModuleMessage('" & strMessage & "');return false;"

which then fires
function ModuleMessage(msg)   
{  
     radalert(msg);  
}  

the js part is wrapped in a RadScriptBlock, ctlAjax is a RadAjaxManager.

This is alsmost working as expected. The issue is that in IE (7 & 8), after the OK button has been clicked, textbox controls on the page cannot be accessed, e.g. cannot receive focus (neither from js nor by clicking in them) until I click on another control like a combox or so on the page. This does not happen in Firefox.

is this a know issue? Can I somehow work around this? What I tried so far is the hook into the add_close event of the alertbox and force focus on any of the textboxes, but this throws a textbox-cannot-receive-focus-because-it-is-not-accessible exception.

Any pointers are greatly appreciated.
Georgi Tunev
Telerik team
 answered on 15 May 2009
1 answer
103 views
I read the Grid control can do caching on clientside for better performance. How much caching is done? How many pages or rows?
Georgi Krustev
Telerik team
 answered on 15 May 2009
1 answer
90 views
Hi,

I am a bit stumped and hope someone can jump start me back into my solution.

I have a page with a radgrid.  I would like the radgrid to initially be empty, clicking a button in the menu displays a radWindow (modal) to prompt user for some input items.

Once I have these items I would like to retrieve data using the user input.  I don't know if it's better to do this with AJAX call or with a Postback?

Anyone have an example of a radgrid being retrieved from a query window?

Thanks in advance.
Sebastian
Telerik team
 answered on 15 May 2009
3 answers
165 views
<telerik:AjaxSetting AjaxControlID="btnAddNew" > 
                    <UpdatedControls >                          
                        <telerik:AjaxUpdatedControl ControlID="rgUsers"  /> 
                        <telerik:AjaxUpdatedControl ControlID="tblHeader" />       
                        <telerik:AjaxUpdatedControl ControlID="rgContract" />                   
                        <telerik:AjaxUpdatedControl ControlID="btnSave" />                       
                        <telerik:AjaxUpdatedControl ControlID="RTSContractInfo" />     
                        <telerik:AjaxUpdatedControl ControlID="RMPContractInfo" />     
                    </UpdatedControls> 
                </telerik:AjaxSetting>   
 
 
 
                <telerik:RadTabStrip runat="server" ID="RTSContractInfo" Orientation="HorizontalTop" SelectedIndex="0" Align="Left" MultiPageID="RMPContractInfo"  > 
                    <Tabs> 
                        <telerik:RadTab Text="Contract Information">  
                        </telerik:RadTab> 
                        <telerik:RadTab Text="Accounting Information">  
                        </telerik:RadTab> 
                    </Tabs> 
                </telerik:RadTabStrip> 
                
              <telerik:RadMultiPage runat="server" ID="RMPContractInfo" SelectedIndex="0" Height="110px">  
                <telerik:RadPageView runat="server" ID="RPVContractInfo" > 
 
                   <asp:Table runat="server"  Width="680px" ID="tblHeader" Enabled="False" BackColor="LightSteelBlue" BorderStyle="Groove" > 
                      
                    <asp:TableRow ID="TableRow3" runat="server" BorderStyle="Solid" > 
                     <asp:TableCell ID="TableCell3"  ColumnSpan="4"  BorderWidth="0px" runat="server"  > 
                             <asp:Label ID="lblStatus" runat="server"  >Status:</asp:Label> 
                            </asp:TableCell> 
                    </asp:TableRow> 
                      
                        <asp:TableRow ID="TableRow4" runat="server" > 
                            <asp:TableCell ID="TableCell4" ColumnSpan="2" Height="5px"  runat="server">  
                                <asp:CheckBox ID="chkIndefinate" runat="server" Text="Indefinate"  AutoPostBack="True" OnCheckedChanged="IndefinateChecked" /> 
                            </asp:TableCell> 
                            <asp:TableCell ID="TableCell5"  runat="server" HorizontalAlign="Right" ColumnSpan="2">  
                                <asp:CheckBox ID="chkNoLimit" runat="server" Text="No Limit" autoPostBack="True" OnCheckedChanged="NoLimitChecked" TextAlign="Left" />   
                            </asp:TableCell>   
                        </asp:TableRow> 
                    </asp:Table>     
                    </telerik:RadPageView> 
                    <telerik:RadPageView runat="server" ID="RPVAccounting" > 
                    <asp:CheckBox ID="CheckBox1" runat="server" Text="Allocate by Objective" autoPostBack="True" OnCheckedChanged="HasObjectiveChecked"  TextAlign="left" Checked="true"/>   
                    </telerik:RadPageView>   
                </telerik:RadMultiPage> 
I have a web page that has a RadAjaxManager on it.  Inside this mananger is a RadTabStrip.  The tab strip works fin in most cases but if the user hits a button to add a new record I want the Tabstrip to default to the first tab.  I have the  code

 RadTabStrip1.SelectedIndex = 0
which the tab os selected but the page that goes with this does not display.  I have to select the other tab and tab back in order to see the page. 

I have also tried RadMultiPage.SelectedIndex = 0 but it did not work either
Is the RadAjaxManager causing the issue?  or is there another step

Protected Sub btnAddNew_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddNew.Click  
 
        'Need to reload with fresh data  
        '_LoadData = True 
        tblHeader.Enabled = True 
        Dim myContractService As New ContractService  
        Dim myContractsData As DataTable = myContractService.GetContractObjectives(Session("testid"), Session("ELAFlag"))  
        'Set the grid and all input fields to the default values for a new record  
        rgContract.Width = 460 
        rgContract.Columns(2).HeaderStyle.Width = 300 
        rgContract.Columns(4).Display = False 
        rgContract.Columns(9).Display = False 
        rgContract.Columns(11).Display = False 
        rgContract.Columns(13).Display = False 
        dpStartDate.DbSelectedDate = Date.Now  
        dpEndDate.DbSelectedDate = DateAdd(DateInterval.Day, 30, Date.Now)  
        lblStatus.Text = "" 
        txtNumber.Text = "" 
        chkIndefinate.Checked = False 
        IndefinateCheck(chkIndefinate.Checked)  
        chkNoLimit.Checked = False 
        NoLimitCheck(chkNoLimit.Checked)  
        rgContract.DataSource = myContractsData 
        UnselectRows()  
        rgUsers.Columns(7).Display = True 
        CollapseGrid(rgUsers)  
        btnSave.Enabled = True 
        Session("ContractId") = 0  
 
        RTSContractInfo.SelectedIndex = 0 
        RMSContractInfo.SelectedIndex = 0 
end sub 

I have also noticed that when I hit the add new button I get the icon and text Error on the page in the lower left hand corner of the ie task bar.  This onl happens when I include  <telerik:AjaxUpdatedControl ControlID="RMPContractInfo" />  
Paul
Telerik team
 answered on 15 May 2009
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?