| <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None" |
| Width="100%" Height="175px" DataSourceID="odsDataSource" OnItemCreated="RadGrid1_ItemCreated" |
| ShowStatusBar="True" OnPreRender="RadGrid1_PreRender" OnItemInserted="RadGrid1_ItemInserted" |
| OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand" OnInsertCommand="RadGrid1_InsertCommand" |
| OnUpdateCommand="RadGrid1_UpdateCommand" OnDeleteCommand="RadGrid1_DeleteCommand" |
| ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Scrolling-SaveScrollPosition="true" |
| AllowAutomaticInserts="False" AllowAutomaticUpdates="False" AllowAutomaticDeletes="false" |
| Visible="False" HeaderStyle-Font-Size="XX-Small" HeaderStyle-Font-Bold="true" |
| Font-Size="XX-Small" TabIndex="50"> |
| <MasterTableView CommandItemDisplay="Top" CommandItemSettings-RefreshText="Refresh List" DataSourceID="odsDataSource" |
| ShowHeadersWhenNoRecords="true" NoMasterRecordsText="No Entries" EditMode="InPlace" |
| ItemStyle-Font-Size="XX-Small" Font-Size="XX-Small" EditItemStyle-Font-Size="XX-Small" |
| EditFormSettings-EditColumn-ItemStyle-Font-Size="XX-Small"> |
| <CommandItemSettings RefreshText="Refresh List"></CommandItemSettings> |
| <Columns> |
| <telerik:GridEditCommandColumn ButtonType="LinkButton" EditText="Edit" CancelText="Cancel" |
| UniqueName="EditColumn" ItemStyle-Font-Size="XX-Small"> |
| </telerik:GridEditCommandColumn> |
| <telerik:GridDateTimeColumn DataField="CHECKER_DATE" HeaderText="Date" ReadOnly="false" |
| UniqueName="CHECKER_DATE" ItemStyle-Font-Size="XX-Small" ColumnEditorID="CHECKER_DATE" |
| Resizable="false" PickerType="DatePicker" DataFormatString="{0:MM/dd/yyyy}" MinDate="2007-10-01"> |
| </telerik:GridDateTimeColumn> |
| </Columns> <!-- Big grid. Other columns truncated to save space --> |
| </MasterTableView> |
| </telerik:RadGrid> |
| protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
| { |
| GridEditableItem item = e.Item as GridEditableItem; |
| if (e.Item.ItemIndex == -1) |
| { |
| (editedItem["CHECKER_DATE"].Controls[0] as RadDatePicker).SelectedDate = DateTime.Today; |
| } |
| } |
| } |
| protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
| { |
| GridEditableItem item = e.Item as GridEditableItem; |
| if ((editedItem["CHECKER_DATE"].Controls[0] as RadDatePicker).SelectedDate.ToString().Length == 0) |
| { |
| editedItem["CHECKER_DATE"].Controls[0] as RadDatePicker).SelectedDate = DateTime.Today; |
| } |
| } |
| } |
| I am trying to use the rad scheduler but when I change the view from say day to week (top right) I get a full postback rather than a nice ajax update on the page, can someone advise please? My code as follows:- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="PulsionTechnology.RefugeeCouncil.WebForm3" %> |
| <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> |
| <!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 id="Head1" runat="server"> |
| </head> |
| <body class="BODY"> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager runat="Server" ID="RadScriptManager1" /> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadScheduler1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <div class="bigModule"> |
| <div class="bigModuleBottom"> |
| In this example <strong>RadScheduler</strong> is bound to a custom provider - the |
| XmlSchedulerProvider. |
| <br /> |
| The provider uses an XML document for data storage. |
| <br /> |
| Please, refer to the documentation for the complete source code of the provider |
| and information about implementing your own providers. |
| </div> |
| </div> |
| <telerik:RadScheduler runat="server" ID="RadScheduler1" Width="750px" TimeZoneOffset="03:00:00" |
| SelectedDate="2007-03-30" DayStartTime="08:00:00" DayEndTime="18:00:00" OnDataBound="RadScheduler1_DataBound"> |
| <AdvancedForm Modal="true" /> |
| </telerik:RadScheduler> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Web.UI; |
| using Telerik.Web.UI; |
| namespace PulsionTechnology.RefugeeCouncil |
| { |
| public partial class WebForm3 : System.Web.UI.Page |
| { |
| private const string ProviderSessionKey = "Telerik.Web.Examples.Scheduler.XmlSchedulerProvider.DefaultCS"; |
| // You can safely ignore this method. |
| // Its purpose is to limit the changes to the underlying data only to the active user session. |
| protected void Page_Init(object sender, EventArgs e) |
| { |
| XmlSchedulerProvider provider; |
| provider = new XmlSchedulerProvider(Server.MapPath("~/App_Data/Appointments.xml"), false); |
| RadScheduler1.Provider = provider; |
| } |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| } |
| protected void RadScheduler1_DataBound(object sender, EventArgs e) |
| { |
| // Turn off the support for multiple resource values. |
| foreach (ResourceType resType in RadScheduler1.ResourceTypes) |
| { |
| resType.AllowMultipleValues = false; |
| } |
| } |
| } |
| } |

My grid
On browser if we scroll to the last Column of the grid the Scroll-bar disappears!!!!..please HELP
as described here
http://www.telerik.com/help/aspnet-ajax/appearance-setting-appointment-style.html
I think that these are a great way of quickly implementing appointment types and being able to differentiate them using the different styles. In my application I am attempting to use them in conjunction with the RadToolTip however. I was hoping that it would in turn have the same set of styles that we could apply to it. Ie the green appointments would have a green tooltip, etc.
I will probably manually implement each one but wanted to quickly check with both Telerik and the community that someone else hasn't already gone to the trouble.
Thanks
I want to disable/enable RadComboBox on item selection changes of another RadCombobox.
I am trying to achieve this by using below code snippet, but getting error "Disable()" is not a valid method.
| <rad:RadComboBox id="Combo1" runat="server" OnClientSelectedIndexChanging="LoadCombo2"> |
| <Items> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem1"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem2"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem3"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem4"></rad:RadComboBoxItem> |
| </Items> |
| </rad:RadComboBox> |
| <rad:RadComboBox id="Combo2" runat="server" OnClientItemsRequested="SetCombo2"> |
| <Items> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem1"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem2"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem3"></rad:RadComboBoxItem> |
| <rad:RadComboBoxItem runat="server" Text="RadComboBoxItem4"></rad:RadComboBoxItem> |
| </Items> |
| </rad:RadComboBox> |
| <script type="text/javascript"> |
| var ThisCombo2 = <%= Combo2.ClientID %>; |
| function LoadCombo2(item) { |
| ThisCombo2.Disable(); |
| ThisCombo2.ClearSelection(); |
| ThisCombo2.RequestItems(item.Value, false); } |
| function SetCombo2(item) { |
| item.SetText(item.Items[0].Text); |
| item.Enable(); |
| if (item.Items.length > 1) { item.ShowDropDown(); } } </script> |