

01.<asp:UpdatePanel ID="UpdatePanel1" runat="server">02. <ContentTemplate>03. <div>04. <legend>Calendar Layout</legend>05. <asp:RadioButtonList ID="rbDisplay" CellSpacing="5" AutoPostBack="true" RepeatDirection="Horizontal" runat="server">06. <asp:ListItem Value="1"> Verticle </asp:ListItem>07. <asp:ListItem Value="2"> Horizontal </asp:ListItem>08. </asp:RadioButtonList>09. </div>10. <telerik:RadScheduler OnTimeSlotCreated="apertureAppointments_TimeSlotCreated" OverflowBehavior="Auto" runat="server" WeekView-ShowDateHeaders="true" ID="apertureAppointments"11. TimelineView-UserSelectable="false" DayView-UserSelectable="true" AgendaView-UserSelectable="True" DataKeyField="ID" DataSubjectField="Subject" AllowInsert="false" AllowDelete="false" AllowEdit="false"12. DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" DayView-EnableExactTimeRendering="true" WeekView-UserSelectable="True" SelectedView="WeekView"13. DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="EntityDataSource1" StartInsertingInAdvancedForm="True" MonthView-UserSelectable="True" AgendaView-NumberOfDays="5" RowHeight="40px"14. RenderMode="Classic" EnableExactTimeRendering="True" Reminders-Enabled="true" Width="800px" Height="1000px" EnableDatePicker="true" ShowHeader="true"15. DayStartTime="09:00:00" ShowFooter="false" DayEndTime="18:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" HoursPanelTimeFormat="HH:mm tt" OnAppointmentClick="apertureAppointments_AppointmentClick" OnTimeSlotContextMenuItemClicking="apertureAppointments_TimeSlotContextMenuItemClicking"16. EnableDescriptionField="true" AppointmentStyleMode="Default" Skin="Metro">17. 18. <AdvancedForm Modal="True" />19. 20. <TimeSlotContextMenuSettings EnableDefault="false" />21. <AppointmentContextMenuSettings EnableDefault="false" />22. <DayView EnableExactTimeRendering="True" />23. <AdvancedForm Modal="true"></AdvancedForm>24. 25. <ResourceTypes>26. <telerik:ResourceType KeyField="lookup_code" Name="Managers" TextField="lookup_description" ForeignKeyField="managerId"27. DataSourceID="ManagersDataSource"></telerik:ResourceType>28. </ResourceTypes>29. <ResourceStyles>30. <%--AppointmentStyleMode must be explicitly set to Default (see above) otherwise setting BackColor/BorderColor31. will switch the appointments to Simple rendering (no rounded corners and gradients)--%>32. <telerik:ResourceStyleMapping Type="Managers" Text="Natalie Edgar"33. BackColor="#512479" ApplyCssClass="appointment" />34. <telerik:ResourceStyleMapping Type="Managers" Text="Clare Coyle"35. BackColor="#512479" ApplyCssClass="appointment" />36. <telerik:ResourceStyleMapping Type="Managers" Text="Christine Clarke"37. BackColor="#512479" ApplyCssClass="appointment" />38. <telerik:ResourceStyleMapping Type="Managers" Text="Adam Adair"39. BackColor="#512479" ApplyCssClass="appointment" />40. </ResourceStyles>41. </telerik:RadScheduler>42. </ContentTemplate>43. </asp:UpdatePanel>44. 45. <asp:EntityDataSource runat="server" ID="EntityDataSource1" ConnectionString="name=aperturenetEntities"46. DefaultContainerName="aperturenetEntities" EntitySetName="Appointments" EnableDelete="true"47. EnableInsert="true" EnableUpdate="true">48. </asp:EntityDataSource>49. 50. <asp:SqlDataSource ID="RoomsDataSource" runat="server"51. ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:aperturenetSql %>"52. SelectCommand="SELECT * FROM [Rooms]"></asp:SqlDataSource>53. 54. <asp:SqlDataSource ID="ManagersDataSource" runat="server"55. ConnectionString="<%$ ConnectionStrings:aperturenetSql %>" SelectCommand="SELECT * FROM [tblApertureNetLookUps] WHERE lookup_type='11787CA6-DE99-4E0E-83D2-7D96E0FD11A3'"></asp:SqlDataSource>
Now i dont no why its not firing as per the demo but the dialog is not appearing when it should have tested it but no ball
Hi,
Need help Issue in accessing session data in radwindow popup data in IE.
In our ASP.net application we stored datatable in session and using below code to open the popup.
string script = "function f(){$find(\"" + Window.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
but we are facing issue to access session data in popup window(.aspx page) in IE we checked in chrome it is working fine.
Please let us know if more details required, can you please provide solution or any help.
Thank you in advance.
I am using entity frame work to pull my appointments in but I need to be able to set reminders on the appointments i have added the filed DataReminderField but obv i need to be able to set the remidner at the apointment creation side I am doing this through a custom booking form and its been requested I mimic the outlook reminder dialog which your component offers. So my main question is how do i write the valarm code through entity framework ?.
So the string i need to generate is this one
BEGIN:VALARM
TRIGGER:-PT2880M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM

I have a UserControl as custom edit form inside my grid. It's bound directly to a data item using the Data Item property as demonstrated here.
private object _dataItem = null;public object DataItem{ get {return this._dataItem;} set {this._dataItem = value;}}
Binding expressions display values in controls like this:
<div> <asp:TextBox ID="txtApples" runat="server" Text='<%# Bind("Apples") %>' Width="50px" Enabled="false" ></asp:TextBox> <asp:TextBox ID="txtOranges" runat="server" Text='<%# Bind("Oranges") %>' Width="50px" ></asp:TextBox> </div>
Users can edit the number of Oranges and divide Apples/Oranges on button click. The button click event handled in the ascx.cs file, which does the math and updated the value displayed in txtApples.
Now, I want to add a Reset button to the UserControl. When clicked, the original Apple value will display in txtApples. Seems like this value would be availble in the Edited Grid Item as described here:
Accessing the edited grid item from the user control
When RadGrid loads the UserControl Edit Form, the UserControl has full access to the properties of the grid item in which it is loaded. Inside theUserControl, you can access the grid item using the Parent.NamingContainer property:
GridEditableItem editedItem = this.Parent.NamingContainer;Once you have a reference to the GridEditableItem object, you can access any of its properties, such as cell text values, the DataItem object (available in DataBinding event handler), and so on.
How can I access the Apple cell text value?
I created css for RadMenu and it does some things right. However, some issues remain, such as selected tab css, and end of menu css. In addition separation between tabs looks a little incomplete. Can you please take a look? Code and Pic attached
Thank you
.RadMenu .rmItemI currently able to export multiple grids to excel in one file. Problem is that me superiors would like it to be prettier.
Is there a way to export multi grids in html format? Please help!
My current export code is this:
Dim gridControlsFound As New List(Of RadGrid)()
gridControlsFound.Add(grdBCA_Assumptions_TravelDemand)
gridControlsFound.Add(grdBCA_Assumptions_StartupCosts)
gridControlsFound.Add(grdBCA_Assumptions_AnnualCosts)
ExportMultiGrid(gridControlsFound, "GrantReport")
Private Sub ExportMultiGrid( _
ByVal gridControlsFound As List(Of RadGrid), _
ByVal FileName As String)
Dim tableXLS As New xls.Table()
Dim ExportInSingleSpreadsheet As Boolean = True
For Each grid As RadGrid In gridControlsFound
grid.AllowPaging = False
grid.CurrentPageIndex = 0
'grid.Rebind()
GenerateTable(grid, tableXLS)
Next
If ExportInSingleSpreadsheet = True Then
[structure].Tables.Add(tableXLS)
End If
Dim renderer As New xls.XlsBiffRenderer([structure])
Dim renderedBytes As Byte() = renderer.Render()
Response.Clear()
Response.AppendHeader("Content-Disposition:", "attachment; filename=" & FileName & ".xls")
Response.ContentType = "application/vnd.ms-excel"
Response.BinaryWrite(renderedBytes)
Response.[End]()
End Sub
Private Sub GenerateTable(grid As RadGrid, ByRef singleTable As xls.Table)
Dim ExportInSingleSpreadsheet As Boolean = True
If ExportInSingleSpreadsheet = False Then
singleTable = New xls.Table(grid.ID)
row = 1
col = 1
Else
If Not isFirstItem Then
row += 1
Else
isFirstItem = False
End If
End If
For i As Integer = 0 To grid.Columns.Count - 1
If grid.Columns(i).HeaderText.Length = 1 Then
If grid.Columns(i).UniqueName = "Discount1" Then
singleTable.Cells(i + 1, row).Value = txbDiscountRate_1.Text & "% discount rate ($ mil.)"
ElseIf grid.Columns(i).UniqueName = "Discount2" Then
singleTable.Cells(i + 1, row).Value = txbDiscountRate_2.Text & "% discount rate ($ mil.)"
Else
singleTable.Cells(i + 1, row).Value = grid.Columns(i).HeaderText
End If
Else
singleTable.Cells(i + 1, row).Value = grid.Columns(i).HeaderText
End If
Next
row += 1
For Each item As GridDataItem In grid.MasterTableView.Items
For Each column As GridColumn In grid.Columns
singleTable.Cells(col, row).Value = item(column.UniqueName).Text
col += 1
Next
col = 1
row += 1
Next
If ExportInSingleSpreadsheet = False Then
[structure].Tables.Add(singleTable)
End If
End Sub
