| <%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="CompanySummary.aspx.cs" Inherits="MaxApplication.Admin.CompanySummary" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server"> |
| <h1> |
| <asp:Label ID="lblCompanyName" runat="server" Text=""></asp:Label> |
| </h1> |
| <asp:SqlDataSource ID="SqlDataSourceCompany" runat="server" |
| ConnectionString="<%$ ConnectionStrings:MaxSQLConnectionString %>" |
| SelectCommand="SELECT * FROM [company] WHERE ([Comp_CompanyId] = @Comp_CompanyId)" |
| ConflictDetection="CompareAllValues" |
| DeleteCommand="DELETE FROM [company] WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))" |
| InsertCommand="INSERT INTO [company] ([Comp_Name], [Comp_UserId], [Comp_Deleted], [Comp_CreatedDate], [Comp_UpdatedDate], [Comp_Type], [Comp_PhoneNumber], [Comp_Address1], [Comp_Address2], [Comp_Address3], [Comp_Address4], [Comp_City], [Comp_Postcode], [Comp_Country], [Comp_EmailAddress]) VALUES (@Comp_Name, @Comp_UserId, @Comp_Deleted, @Comp_CreatedDate, @Comp_UpdatedDate, @Comp_Type, @Comp_PhoneNumber, @Comp_Address1, @Comp_Address2, @Comp_Address3, @Comp_Address4, @Comp_City, @Comp_Postcode, @Comp_Country, @Comp_EmailAddress)" |
| OldValuesParameterFormatString="original_{0}" |
| UpdateCommand="UPDATE [company] SET [Comp_Name] = @Comp_Name, [Comp_UserId] = @Comp_UserId, [Comp_Deleted] = @Comp_Deleted, [Comp_CreatedDate] = @Comp_CreatedDate, [Comp_UpdatedDate] = @Comp_UpdatedDate, [Comp_Type] = @Comp_Type, [Comp_PhoneNumber] = @Comp_PhoneNumber, [Comp_Address1] = @Comp_Address1, [Comp_Address2] = @Comp_Address2, [Comp_Address3] = @Comp_Address3, [Comp_Address4] = @Comp_Address4, [Comp_City] = @Comp_City, [Comp_Postcode] = @Comp_Postcode, [Comp_Country] = @Comp_Country, [Comp_EmailAddress] = @Comp_EmailAddress WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))"> |
| <SelectParameters> |
| <asp:QueryStringParameter Name="Comp_CompanyId" |
| QueryStringField="Comp_CompanyId" Type="Int32" /> |
| </SelectParameters> |
| <DeleteParameters> |
| <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> |
| <asp:Parameter Name="original_Comp_Name" Type="String" /> |
| <asp:Parameter Name="original_Comp_UserId" Type="String" /> |
| <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_Type" Type="String" /> |
| <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address1" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address2" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address3" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address4" Type="String" /> |
| <asp:Parameter Name="original_Comp_City" Type="String" /> |
| <asp:Parameter Name="original_Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="original_Comp_Country" Type="String" /> |
| <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="Comp_Name" Type="String" /> |
| <asp:Parameter Name="Comp_UserId" Type="String" /> |
| <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_Type" Type="String" /> |
| <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="Comp_Address1" Type="String" /> |
| <asp:Parameter Name="Comp_Address2" Type="String" /> |
| <asp:Parameter Name="Comp_Address3" Type="String" /> |
| <asp:Parameter Name="Comp_Address4" Type="String" /> |
| <asp:Parameter Name="Comp_City" Type="String" /> |
| <asp:Parameter Name="Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="Comp_Country" Type="String" /> |
| <asp:Parameter Name="Comp_EmailAddress" Type="String" /> |
| <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> |
| <asp:Parameter Name="original_Comp_Name" Type="String" /> |
| <asp:Parameter Name="original_Comp_UserId" Type="String" /> |
| <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="original_Comp_Type" Type="String" /> |
| <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address1" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address2" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address3" Type="String" /> |
| <asp:Parameter Name="original_Comp_Address4" Type="String" /> |
| <asp:Parameter Name="original_Comp_City" Type="String" /> |
| <asp:Parameter Name="original_Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="original_Comp_Country" Type="String" /> |
| <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="Comp_Name" Type="String" /> |
| <asp:Parameter Name="Comp_UserId" Type="String" /> |
| <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> |
| <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> |
| <asp:Parameter Name="Comp_Type" Type="String" /> |
| <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> |
| <asp:Parameter Name="Comp_Address1" Type="String" /> |
| <asp:Parameter Name="Comp_Address2" Type="String" /> |
| <asp:Parameter Name="Comp_Address3" Type="String" /> |
| <asp:Parameter Name="Comp_Address4" Type="String" /> |
| <asp:Parameter Name="Comp_City" Type="String" /> |
| <asp:Parameter Name="Comp_Postcode" Type="String" /> |
| <asp:Parameter Name="Comp_Country" Type="String" /> |
| <asp:Parameter Name="Comp_EmailAddress" Type="String" /> |
| </InsertParameters> |
| </asp:SqlDataSource> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All"/> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" |
| Skin="Default"> |
| </telerik:RadAjaxLoadingPanel> |
| <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px" |
| width="100%"> |
| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" |
| MultiPageID="RadMultiPage1" SelectedIndex="0"> |
| <Tabs> |
| <telerik:RadTab runat="server" Text="Summary" Selected="True"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Jobs"> |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" Text="Invoices"> |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0"> |
| <telerik:RadPageView ID="RadPageView1" runat="server"> |
| <div class="smallwindow"> |
| <h2>Summary</h2> |
| <asp:FormView ID="FormView1" runat="server" DataKeyNames="Comp_CompanyId" |
| DataSourceID="SqlDataSourceCompany" Width="100%" onitemcommand="FormView1_ItemCommand" |
| oniteminserting="FormView1_ItemInserting" onload="FormView1_Load" |
| onitemupdated="FormView1_ItemUpdated"> |
| <EditItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:TextBox ID="Comp_NameTextBox" runat="server" |
| Text='<%# Bind("Comp_Name") %>' /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:TextBox ID="Comp_Address1TextBox" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:TextBox ID="Comp_Address2TextBox" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:TextBox ID="Comp_Address3TextBox" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:TextBox ID="Comp_CityTextBox" runat="server" |
| Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:TextBox ID="Comp_PostcodeTextBox" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:HiddenField ID="Comp_Type" runat="server" |
| Value='<%# Eval("Comp_Type") %>' /> |
| <br /> |
| <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" |
| CommandName="Update" Text="Update" /> |
| <asp:LinkButton ID="UpdateCancelButton" runat="server" |
| CausesValidation="False" CommandName="Cancel" Text="Cancel" /> |
| </EditItemTemplate> |
| <InsertItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:TextBox ID="Comp_NameTextBox" runat="server" |
| Text='<%# Bind("Comp_Name") %>' /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:TextBox ID="Comp_Address1TextBox" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:TextBox ID="Comp_Address2TextBox" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:TextBox ID="Comp_Address3TextBox" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:TextBox ID="Comp_CityTextBox" runat="server" |
| Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:TextBox ID="Comp_PostcodeTextBox" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:HiddenField ID="Comp_Type" runat="server" |
| Value='<%# Eval("Comp_Type") %>' /> |
| <br /> |
| <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" |
| CommandName="Insert" Text="Insert" /> |
| <asp:LinkButton ID="InsertCancelButton" runat="server" |
| CausesValidation="False" CommandName="Cancel" Text="Cancel" /> |
| </InsertItemTemplate> |
| <ItemTemplate> |
| <table style="width: 100%" cellpadding="2"> |
| <tr> |
| <td > |
| Name |
| <br /> |
| <asp:Label ID="Comp_NameLabel" runat="server" Text='<%# Bind("Comp_Name") %>' /> |
| <br /> |
| </td> |
| <td> |
| Email<br /> |
| <asp:Label ID="Comp_EmailAddressLabel" runat="server" |
| Text='<%# Bind("Comp_EmailAddress") %>' /> |
| </td> |
| <td> |
| Phone<br /> |
| <asp:Label ID="Comp_PhoneNumberLabel" runat="server" |
| Text='<%# Bind("Comp_PhoneNumber") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| </td> |
| <td> |
| </td> |
| <td> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Address1<br /> |
| <asp:Label ID="Comp_Address1Label" runat="server" |
| Text='<%# Bind("Comp_Address1") %>' /> |
| </td> |
| <td> |
| Address 2<br /> |
| <asp:Label ID="Comp_Address2Label" runat="server" |
| Text='<%# Bind("Comp_Address2") %>' /> |
| </td> |
| <td> |
| Address 3<br /> |
| <asp:Label ID="Comp_Address3Label" runat="server" |
| Text='<%# Bind("Comp_Address3") %>' /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| City<br /> |
| <asp:Label ID="Comp_CityLabel" runat="server" Text='<%# Bind("Comp_City") %>' /> |
| </td> |
| <td> |
| Post Code<br /> |
| <asp:Label ID="Comp_PostcodeLabel" runat="server" |
| Text='<%# Bind("Comp_Postcode") %>' /> |
| </td> |
| <td> |
| </td> |
| </tr> |
| </table> |
| <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" |
| CommandName="Edit" Text="Edit" /> |
| </ItemTemplate> |
| </asp:FormView> |
| </div> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView2" runat="server"> |
| <div class="smallwindow"><h2>Jobs</h2></div> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView3" runat="server"> |
| <div class="smallwindow"><h2>Invoices</h2></div> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| </telerik:RadAjaxPanel> |
| </asp:Content> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> |
| <telerik:RadSplitter runat="server" ID="RadSplitter1" PanesBorderSize="0" Width="100%" Height=700px |
| > |
| <telerik:RadPane runat="Server" ID="leftPane" Width="20%" MinWidth="200" |
| Scrolling="Y" |
| OnClientResizing="hideScrollableArea" OnClientResized="showScrollableArea" |
| OnClientExpanding="hideScrollableArea" OnClientExpanded="showScrollableArea" |
| OnClientCollapsing="hideScrollableArea" OnClientCollapsed="showScrollableArea" |
| > |
| <div class="calendar-container"> |
| <telerik:RadCalendar runat="server" Width="100%" ID="RadCalendar1" AutoPostBack="true" |
| EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="true" |
| EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar1_SelectionChanged" |
| FastNavigationStep=12 |
| > |
| </telerik:RadCalendar> |
| </div> |
| <telerik:RadPanelBar runat="server" ID="PanelBar" Width="100%" > |
| <Items> |
| <telerik:RadPanelItem id="RadPanelItem1" runat="server" Text="Eventos" Expanded="true"> |
| <Items> |
| <telerik:RadPanelItem runat="server" Width="100%"> |
| <ItemTemplate> |
| <div class="rpCheckBoxPanel"> |
| <asp:Repeater runat="server" ID="rep_tipo_evento_trab">... </asp:Repeater> |
| </div> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |
| </telerik:RadPane> |
| <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" /> |
| <telerik:RadPane runat="Server" ID="rightPane" Scrolling=Y Width="80%" > |
| <telerik:RadScheduler runat="server" ID="RadScheduler1" Height=700px |
| ... |
| OverflowBehavior="Expand" |
| ... > |
| </telerik:RadScheduler> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
| cb.Attributes.Add("onkeydown", string.Format("ControlKeyPress(this,event,'{0}',{1});", "PurchaseComboBox", dataItem.ItemIndex)); |
| function ControlKeyPress(sender, args, control, index) { |
| if (args.keyCode == 13) { |
| var dataItems = createGrid.get_masterTableView().get_dataItems(); |
| if (index < dataItems.length) { |
| var nextControl = dataItems[index + 1].findControl(control); |
| var input; |
| if (typeof (nextControl.get_inputDomElement) == "undefined") { |
| input = nextControl; |
| } else { |
| input = nextControl.get_inputDomElement(); |
| } |
| window.setTimeout(function() { input.focus(); }, 0); |
| } |
| } |
| } |
http://www.telerik.com/help/aspnet/window/differencesbrowser.html, http://www.telerik.com/help/aspnet/window/keyboardsupport.html), states there is possibility to close as well as change the active window through Keyboard Shortcuts. I am tried in my project but I couldn't able to create an instance to WindowShortcut class as mentioned in the articles.
Can anyone help me to fix it up. Really I am running out of time.
Thanks in advance.
When I submit, the initial Wednesday entry does not show in the Scheduler, only the 3 Monday recurrences.
What then happens is if I show my events in a RadGrid, the initial Wednesday event shows in the grid, but when I open the Scheduler, it doesn't.
Any advise?
Greetings
Gerrit
| <telerik:RadGrid ID="RadGrid1" runat="server" Skin="Black" AllowPaging="true" PageSize="20" |
| AutoGenerateColumns="False" AllowSorting="True" AllowFilteringByColumn="True"> |
| <ClientSettings EnableRowHoverStyle="true"> |
| <ClientEvents OnRowDblClick="RowDblClick" /> |
| </ClientSettings> |
| <MasterTableView CommandItemDisplay="Top" DataKeyNames="id_film" CommandItemSettings-AddNewRecordText="Ajoutez un film" |
| NoMasterRecordsText="Aucun résultat" AllowMultiColumnSorting="true"> |
| <Columns> |
| <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="id_film" DataImageUrlFormatString="Affiches/{0}_Mini.jpg" |
| DataAlternateTextField="titre" ImageAlign="Middle" ImageHeight="100" ImageWidth="75" |
| AllowSorting="false" AllowFiltering="false" UniqueName="affiche" /> |
| </Columns> |
| <EditFormSettings EditFormType="Template"> |
| <FormTemplate> |
| <asp:Button ID="Button1" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Enregistrer", "Modifier") %>' |
| runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'> |
| </asp:Button> |
| </FormTemplate> |
| </EditFormSettings> |
| </MasterTableView> |
| </telerik:RadGrid> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadGrid1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand |
| If (e.CommandName = RadGrid.UpdateCommandName) Then |
| 'Upload Affiche |
| Dim myRequest As HttpWebRequest |
| Dim myResponse As HttpWebResponse |
| Dim s As System.IO.Stream |
| Dim graphicTemp As System.Drawing.Graphics |
| Dim ImageSource As System.Drawing.Image |
| Dim affiche_url = "http://thenewimage" |
| myRequest = WebRequest.Create(affiche_url) |
| myResponse = myRequest.GetResponse() |
| s = myResponse.GetResponseStream() |
| ImageSource = System.Drawing.Image.FromStream(s) |
| graphicTemp = System.Drawing.Graphics.FromImage(ImageSource) |
| graphicTemp.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver |
| graphicTemp.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality |
| graphicTemp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality |
| graphicTemp.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic |
| graphicTemp.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality |
| graphicTemp.DrawImage(ImageSource, 0, 0, ImageSource.Size.Width, ImageSource.Size.Height) |
| graphicTemp.Dispose() |
| ImageSource.Save(Server.MapPath("~/Media/Affiches/" & e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("id_film") & "_Normal.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg) |
| ImageSource.Dispose() |
| s.Close() |
| myResponse.Close() |
| End If |
| End Sub |
Hi,
I've a radgrid wrapped inside a panel.
The cssclass 'panel_css' contains height and width of 100%.
the problem I'm facing is in compatibilty mode on, the below code is fine. It renders properly.
But if compatibility mode is turned off, then when I resize the columns by moving the column handle, the whole grid can be stretched beyond the width of the screen. I don't want this weird behaviour. the grid should always be fixed(but I don't want to give width in pixels). I even tried setting the table layout to fixed. but this didn't work.
Note: the grid stretches beyond the width of the screen only if compatibility is turned off.
If compatibility is turned on, this works fine.
<asp:Panel ID="panel1"
runat="server"
CssClass ="panel_css">
<telerik:RadGrid ID="m_radGrid"
GridLines="None"
runat="server"
AllowMultiRowSelection= "True"
AllowFilteringByColumn= "True"
onneeddatasource = "m_radGrid_NeedDataSource"
OnSelectedIndexChanged = "m_radGrid_SelectedIndexChanged"
OnItemCommand = "m_radGrid_ItemCommand" OnItemDataBound ="m_radGrid_ItemDataBound" TabIndex = "0">
<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"
PagerStyle-Mode="NextPrevAndNumeric" PageSize="10">
<PagerStyle AlwaysVisible="true" />
<RowIndicatorColumn>
<HeaderStyle/>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle />
</ExpandCollapseColumn>
</MasterTableView>
<GroupingSettings CaseSensitive="false" />
<ClientSettings AllowKeyboardNavigation="True" Selecting-AllowRowSelect="true" Resizing-AllowColumnResize="true">
<Scrolling AllowScroll ="true" SaveScrollPosition ="true" UseStaticHeaders ="true"/>
</ClientSettings>
</telerik:RadGrid>
</asp:Panel>