or
<div id="ctl00_ctl23_g_2c6dbf0b_0bfd_497c_aa14_bf4418896fcd_AverageChart" class="RadChart" style="height:300px;width:400px;"> <img alt="" style="border-width: 0px;" ...</div>| using System; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Text; |
| using AIAPS.DomainModel.Entities; |
| using AIAPS.DomainModel.Repositories; |
| using Telerik.Web.UI; |
| namespace AIAPS.DomainModel.Utilities |
| { |
| public class ApsSchedulerProvider : SchedulerProviderBase |
| { |
| private List<Resource> _resources; |
| private void LoadResources() |
| { |
| _resources = new List<Resource>(); |
| Resource res = new Resource("Machine", "M-001", "M-001"); |
| _resources.Add(res); |
| res = new Resource("Machine", "M-002", "M-002"); |
| _resources.Add(res); |
| res = new Resource("Machine", "M-003", "M-003"); |
| _resources.Add(res); |
| res = new Resource("Machine", "M-004", "M-004"); |
| _resources.Add(res); |
| res = new Resource("Machine", "P-001", "P-001"); |
| _resources.Add(res); |
| res = new Resource("Machine", "P-002", "P-002"); |
| _resources.Add(res); |
| } |
| public ApsSchedulerProvider() |
| { |
| LoadResources(); |
| } |
| public override void Delete(RadScheduler owner, Appointment appointmentToDelete) |
| { |
| throw new NotImplementedException(); |
| } |
| public override IEnumerable<Appointment> GetAppointments(RadScheduler owner) |
| { |
| //throw new NotImplementedException(); |
| List<Appointment> appointments = new List<Appointment>(); |
| foreach (ApsProcessTimeline timeline in ApsProcessTimelinesRepository.List.OrderBy(t => t.BeginTime)) |
| { |
| Appointment app = new Appointment(); |
| app.ID = timeline.ApsProcessTimelineId; |
| app.Start = timeline.BeginTime.Value; |
| app.End = timeline.FinishTime.Value; |
| app.Description = timeline.MachineID; |
| app.Subject = timeline.MachineID; |
| app.Resources.Add(new Resource("Machine", timeline.MachineID, timeline.MachineID)); |
| appointments.Add(app); |
| } |
| owner.TimelineView.ShowResourceHeaders = true; |
| owner.TimelineView.GroupBy = "Machine"; |
| owner.TimelineView.GroupingDirection = GroupingDirection.Vertical; |
| //owner.TimelineView.NumberOfSlots = appointments.Count; |
| owner.TimelineView.HeaderDateFormat = "dd/MM/yy"; |
| owner.SelectedDate = appointments[0].Start; |
| return appointments; |
| } |
| public override IEnumerable<ResourceType> GetResourceTypes(RadScheduler owner) |
| { |
| //throw new NotImplementedException(); |
| List<ResourceType> resourceTypes = new List<ResourceType>(); |
| resourceTypes.Add(new ResourceType("Machine")); |
| return resourceTypes; |
| } |
| public override IEnumerable<Resource> GetResourcesByType(RadScheduler owner, string resourceType) |
| { |
| //throw new NotImplementedException(); |
| return _resources.FindAll(delegate(Resource res) { return res.Type == resourceType; }); |
| } |
| public override void Insert(RadScheduler owner, Appointment appointmentToInsert) |
| { |
| throw new NotImplementedException(); |
| } |
| public override void Update(RadScheduler owner, Appointment appointmentToUpdate) |
| { |
| throw new NotImplementedException(); |
| } |
| } |
| } |
<telerik:RadHtmlChart ID="rhcGraficoResumoLeitos" SkinsOverrideStyles="true" runat="server" Width="350px" Height="300px"> <ChartTitle Text="Ocupação dos leitos"> </ChartTitle> <PlotArea> <Series> <telerik:PieSeries DataFieldY="Quantidade" ColorField="Cor" NameField="Situação" ExplodeField="IsExploded"> <LabelsAppearance DataFormatString="{0:N0}"> </LabelsAppearance> </telerik:PieSeries> </Series> </PlotArea> </telerik:RadHtmlChart>private void CarregarResumoLeitos() { rhcGraficoResumoLeitos.DataSource = GetData(); rhcGraficoResumoLeitos.DataBind(); } private DataSet GetData() { ControladorInternacao controladorInternacao = new ControladorInternacao(); List<SalaAtendimentoDTO> listaSalaAtendimento = controladorInternacao.ListarResumoLeitos(AmbienteConexao.Usuario().Cnes); Color[] barColors = new Color[8]{ Color.Purple, Color.SteelBlue, Color.Aqua, Color.Yellow, Color.Navy, Color.Green, Color.Blue, Color.Red }; DataSet ds = new DataSet("Estabelecimento"); DataTable dt = new DataTable("SalaAtendimento"); dt.Columns.Add("Gênero"); dt.Columns.Add("Situação"); dt.Columns.Add("Quantidade"); dt.Columns.Add("Cor"); dt.Columns.Add("IsExploded"); int i = 0; foreach (SalaAtendimentoDTO salaAtendimentoDTO in listaSalaAtendimento) { dt.Rows.Add(salaAtendimentoDTO.Genero == string.Empty ? "teste" : salaAtendimentoDTO.Genero, salaAtendimentoDTO.SituacaoSala, salaAtendimentoDTO.Quantidade.ToString(), barColors[i++], true); } ds.Tables.Add(dt); return ds; } private static Color CorAleatoria() { Random randonGen = new Random(); KnownColor[] names = (KnownColor[]) Enum.GetValues(typeof(KnownColor)); KnownColor randomColorName = names[randonGen.Next(names.Length)]; Color randomColor = Color.FromKnownColor(randomColorName); return randomColor; }<telerik:RadPanelBar ID="RadPanelBar1" runat="server"> <Items> <telerik:RadPanelItem Text="Launch a Something" runat="server"> <ContentTemplate> <CRWP:ucLaunchSomething id="ucLaunchSomethingCtl" runat="server"></CRWP:ucLaunchSomething> </ContentTemplate> </telerik:RadPanelItem> <telerik:RadPanelItem runat="server" Text="Launch a Something Else"> <ContentTemplate> <CRWP:ucLaunchSomethingElse id="ucLaunchSomethingElseCtl" runat="server"></CRWP:ucLaunchSomethingElse> </ContentTemplate> </telerik:RadPanelItem> </Items></telerik:RadPanelBar>z.style.width=(y-(x+w+v+6))+"px";
.Sitefinity.RadEditor, .Sitefinity.RadEditor * {font-family: Arial,Sans-Serif;}<modules>
<module name="RadEditorDomInspector" />
<module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false" />
</modules>
Please see attached for the screenshot I get when I click to edit or add a list item.
Basically, what I have showing up in SharePoint is not consistent with the demo on your site: http://sharepoint.telerik.com/aspnet-ajax/web-parts/Pages/Content-Editor-Web-Part-using-RadEditor.aspxSelect Case strType.ToUpper() Case "STAFF" typType = New ResourceType(strType, True) lstResource = GetStaffResources(myInfo.intSite_pKey)End SelectIf Not lstResource Is Nothing Then GetResources.Add(typType, lstResource)For Each dr As DataRow In dt.Rows Dim pKey As Integer = dr.Item(dt.Columns.IndexOf("pKey")) Dim Contact_pKey As Integer = dr.Item(dt.Columns.IndexOf("Contact_pKey")) Dim Name As String = dr.Item(dt.Columns.IndexOf("Fullname")) Dim item As New clsSchedResStaff() item.pKey = pKey item.Contact_pKey = Contact_pKey item.Name = Name Dim res As New Resource res.Key = item.pKey res.Text = item.Name res.DataItem = item res.Type = "Staff" GetStaffResources.Add(res)NextPrivate Sub LoadResources(apt As Appointment) Dim arrStaffPKeys As String() = apt.Attributes("StaffPKeys").Split(";") For Each pairResource As KeyValuePair(Of ResourceType, IEnumerable(Of Resource)) In dictResources Dim lstResources As List(Of Resource) = pairResource.Value.ToList() Dim strType As String = pairResource.Key.Name.ToUpper() For Each theResource As Resource In lstResources Select Case strType Case "STAFF" Dim item As clsSchedResStaff = DirectCast(theResource.DataItem, clsSchedResStaff) If arrStaffPKeys.Contains(item.Contact_pKey) Then apt.Resources.Add(theResource) End If End Select Next NextEnd Sub<telerik:RadTileList runat="server" EnableThemeing="true" TileRows="1" SelectionMode="none" OnClientTileClicked="OnClientTileClicked"> <Groups> <telerik:TileGroup> <telerik:RadIconTile Name="Editor" Shape="Wide" Target="_blank" ImageUrl="http://demos.telerik.com/aspnet-ajax/tilelist/Img/Icons/icon_imageeditor.png" BackColor="#00b37d" Title-Text="Image Editor"> <PeekTemplate> <img src="http://demos.telerik.com/aspnet-ajax/tilelist/Img/Wide/img_edit.png" alt="DevTools" style="display: block;" /> </PeekTemplate> <PeekTemplateSettings Animation="Slide" AnimationDuration="800" Easing="easeInOutBack" ShowInterval="5000" CloseDelay="5000" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" /> </telerik:RadIconTile> <telerik:RadIconTile Name="OrgChart" Target="_blank" Shape="Square" ImageUrl="http://demos.telerik.com/aspnet-ajax/tilelist/Img/Icons/icon_orgchart.png"> <Title Text="OrgChart"></Title> </telerik:RadIconTile> <telerik:RadIconTile Name="ListView" Target="_blank" Shape="Square" ImageUrl="http://demos.telerik.com/aspnet-ajax/tilelist/Img/Icons/icon_listview.png" BackColor="#82c92f"> <Title Text="ListView"></Title> </telerik:RadIconTile> </telerik:TileGroup> </Groups> </telerik:RadTileList> <script type="text/javascript"> function OnClientTileClicked(tileList, args) { var tile = args.get_tile(); var url = args.get_oldValue(); //confirm navigation if url has been specified if (tile.get_name() == "OrgChart") { window.location = 'http://demos.telerik.com/aspnet-ajax/orgchart/examples/overview/defaultcs.aspx'; } if (tile.get_name() == "Editor") { window.location = 'http://demos.telerik.com/aspnet-ajax/imageeditor/examples/overview/defaultcs.aspx'; } if (tile.get_name() == "ListView") { window.location = 'http://demos.telerik.com/aspnet-ajax/listview/examples/overview/defaultcs.aspx'; } } </script><asp:UpdatePanel runat="server" ID="pnlObjectX" UpdateMode="Conditional"> <ContentTemplate> <telerik:RadListView ID="ObjectXList" runat="server" ItemPlaceholderID="ObjectXListContainer" OnSelectedIndexChanged="ObjectXList_SelectedIndexChanged"> <LayoutTemplate> <fieldset style="width: 810px; border: none;"> <asp:PlaceHolder ID="ObjectXListContainer" runat="server"></asp:PlaceHolder> </fieldset> </LayoutTemplate> <ItemTemplate> <fieldset style="float: left; width: 250px; padding-left: 20px; border: none;"> <div style="padding: 5px; width: 200px; align-content: center; cursor: pointer;"> <div style="display: none"> <asp:Label runat="server" ID="lblObjectXId" Text='<%# Bind("ObjectXId") %>'></asp:Label> </div> <div class="FirmName"> <asp:LinkButton ID="RemoveObjectX" CssClass="selectedButtons noValidation" runat="server" CommandName="Select" OnClientClick="DisplayConfirmationForDeleteObjectX(this); return false;"> <img src="../App_Themes/Associa/images/bullet_minus.png" style="vertical-align: middle;" /> </asp:LinkButton> <asp:Label runat="server" ID="lblFirstName" Text='<%# Bind("FirstName")%>' Style="margin-left: 5px; vertical-align: middle;"></asp:Label><asp:Label runat="server" ID="lblLastName" Text='<%# Bind("LastName")%>' Style="margin-left: 5px; vertical-align: middle;"></asp:Label> </div> <div class="FirmAddress"> <asp:Label runat="server" ID="lblEmailAddress" Text='<%# Bind("EmailAddress")%>' Style="margin-left: 40px;"></asp:Label> </div> </div> </fieldset> </ItemTemplate> <EmptyDataTemplate> <div style="color: #999999; font-size: 14px; font-weight: bold; padding: 0 40%">No associated ObjectXs</div> </EmptyDataTemplate> </telerik:RadListView></ContentTemplate> </asp:UpdatePanel>functionDisplayConfirmationForDeleteObjectX(button) { window.$ = $telerik.$; function CallBack(arg) { if (arg) { eval(button.href); } else { return false; } } radconfirm("Do you want to delete this Xyz?", CallBack, 450, 180, null, "Delete Xyz");}function onclick(event) {$find('confirm1371571295920').close(true);}<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" PageSize="20" AllowPaging="true" MasterTableView-HierarchyLoadMode="ServerBind" > <PagerStyle Mode="NumericPages" /><Columns> <telerik:GridBoundColumn SortExpression="Amount" HeaderText="Amount" HeaderButtonType="TextButton" DataField="Amount" /> <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="LinkButton" EditText="Edit" /> <telerik:GridEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="LinkButton" EditText="Insert" /> </Columns> <EditFormSettings EditFormType="Template"> <FormTemplate> <telerik:RadTextBox ID="txt_Amount_Edit" runat="server" Width="120px" Value='<%#Eval("Amount")%>' /> </FormTemplate> </EditFormSettings></telerik:RadGrid>