public static int TextWidth(string text, string fontName = "Segoe UI", float fontSize = 15){ using (var textBitmap = new Bitmap(1, 1)) { using (var drawGraphics = Graphics.FromImage(textBitmap)) { using (var drawFont = new System.Drawing.Font(fontName, fontSize, GraphicsUnit.Pixel)) { return Convert.ToInt32(drawGraphics.MeasureString(text, drawFont).Width); } } }}public static Unit AutoDropDownWidth(this RadComboBox comboBox){ var rcbWidth = Utilities.TextWidth(comboBox.Items.OrderByDescending(i => i.Text.Length).Take(1).Select(i => i.Text).First()); return rcbWidth <= comboBox.Width.Value ? comboBox.Width : rcbWidth;}In the latest build, Telerik.Web.UI is version 2018.2.710.45, the image manager, media manager and few other popup windows open to the right size and then go 100% in hight or more.
Using Chrome, you can see this happening the ribbon sample in the product demos. Go to https://demos.telerik.com/aspnet-ajax/controls/examples/integration/ribbonbarandeditor/defaultcs.aspx?product=editor and then click Insert followed by Image Manager. You will see it open to the correct size and then grow in height when the contents are displayed.
In my project, it grows to 100% with a strange pink striped line at top and bottom, the online product sample goes even bigger than 100% (probably a skin thing).
On every build I get, I check the image manager to see what it is doing this time and if it working right since it gets broken all the time.
Please fix and TEST properly for the next build. I do not look forward to putting out my web app with this defect.
George

Our application on our development environment is on the latest version of ASP.NET AJAX controls (2018.2.710). Production is on version 2018.2.516.
The RadConfirm OK and CANCEL buttons are outside the window. Please see attached. Is this something wrong in the latest version?
Hi
I had a RadGrid with EditMode as InPlace which was working properly.Now I am trying to change it to Batch Mode.
The issue is with the click of Add New Button I need to set the default values which are populated from database .
Previously when the Grid was in InPlace mode the ItemCommand used to do that work with the command name InitInsertCommand but with Batch EditMode this don't seem to work.
Please tell me how to achieve this
<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ActivationDetails.aspx.cs"
Inherits="RR_Web.ActivationDetails" Title="Activation Details" %>
<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table cellpadding="5">
<tr>
<td rowspan="3" width="20%" valign="top" class="detsTblBg">
<table width="100%" cellpadding="4">
<tr><td><asp:LinkButton ID="lnkGeneral" runat="server" OnClick="lnkGeneral_Click" skinID="lnkBtn">General Information</asp:LinkButton></td> </tr>
<tr><td><asp:LinkButton ID="lnkActResult" runat="server" OnClick="lnkActResult_Click" skinID="lnkBtn">Activation Results</asp:LinkButton></td></tr>
<tr><td><asp:LinkButton ID="lnkSMSDetails" runat="server" OnClick="lnkSMSDetails_Click" skinID="lnkBtn">SMS Details</asp:LinkButton></td></tr>
<tr><td><asp:LinkButton ID="lnkVoiceDetails" runat="server" OnClick="lnkVoiceDetails_Click" skinID="lnkBtn">Voice Details</asp:LinkButton></td></tr>
</table>
</td>
<td width="80%">
<asp:MultiView ID="multiViewActDetails" runat="server" ActiveViewIndex="0">
<asp:View ID="View1" runat="server">
<table cellpadding="3">
<tr><td> <asp:Label runat="server" Text="General Information" SkinID="sideHead"></asp:Label> </tr>
<tr>
<td>
<asp:Label ID="Label2" runat="server" Font-Bold="true" Text="Activation ID"></asp:Label>
</td>
<td>
<asp:Label ID="lblID" runat="server"></asp:Label>
</td>
</tr>
<tr>
<td><asp:Label ID="lbl2" Text="Activation Name" runat="server" Font-Bold="true"></asp:Label></td>
<td><asp:Label ID="lblActName" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="Label5" Text="Created By" runat="server" Font-Bold="true"></asp:Label></td>
<td><asp:Label ID="lblCreatedBy" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="Label12" Text="Started" runat="server" Font-Bold="true"></asp:Label></td>
<td><asp:Label ID="lblStarted" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="lblExpiringOn" Text="Expiring On" runat="server"
Font-Bold="true"></asp:Label>
<asp:Label ID="lblCompletedOn" runat="server" Font-Bold="true" Text="Completed"></asp:Label>
</td>
<td><asp:Label ID="lblExpireComplete" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="lbl2a" Text="Status" Font-Bold="true" runat="server"></asp:Label>
</td>
<td><asp:Label ID="lblStatus" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="Label3" Text="SMS Text" runat="server" Font-Bold="true"></asp:Label></td>
<td><asp:Label ID="lblSMSText" runat="server"></asp:Label></td>
</tr>
<tr>
<td><asp:Label ID="Label6" Text="Announcement File" runat="server" Font-Bold="true"></asp:Label></td>
<td>
<asp:HyperLink ID="lblVoiceMsg" runat="server" Text="Play"></asp:HyperLink>
</td>
</tr>
<tr>
<td><asp:Label ID="Label13" Text="Acknowledgement File " runat="server"
Font-Bold="true"></asp:Label></td>
<td><asp:HyperLink runat="server" ID="lblAckMsg" Text="Play"></asp:HyperLink></td>
</tr>
</table>
</asp:View>
<asp:View ID="View2" runat="server">
<table cellpadding="3">
<tr>
<td><asp:Label ID="Label14" runat="server" Text="Activation Results" SkinID="sideHead"></asp:Label></td>
</tr>
<tr>
<td>
<asp:Label ID="lblNumRecp" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumAck" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblPctAck" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumNonResp" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblPctNonResp" runat="server" Text="0" Visible="false"></asp:Label>
</td>
</tr>
<tr>
<td><asp:Label ID="Label11" Text="Total Call Time" runat="server" Font-Bold="true"></asp:Label>
<asp:Label ID="lblTotalCallTime" runat="server" Text="0"></asp:Label>sec</td>
</tr>
<tr>
<td colspan="2" align="left">
<table cellpadding ="4">
<tr>
<td align="left" valign="top">
<asp:Chart ID="Chart1" runat="server" SkinID="chartSkin">
<Series>
<asp:Series Name="Series1">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
</td>
<td align="left" valign="top">
<asp:Chart ID="Chart2" runat="server" SkinID="chartSkin" Width="500px">
<Series>
<asp:Series Name="Series1">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top">
<asp:Chart ID="Chart3" runat="server" SkinID="chartSkin" Width="500px" Height="400px">
<Series>
<asp:Series Name="Series1">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
<asp:Label ID="lblNumSMS_Att1" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumSMS_Att2" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumSMS_Att3" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumSMS_Ack" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumIVR_Att1" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumIVR_Att2" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumIVR_Att3" runat="server" Text="0" Visible="false"></asp:Label>
<asp:Label ID="lblNumIVR_Ack" runat="server" Text="0" Visible="false"></asp:Label>
</td>
</tr>
</table>
</asp:View>
<asp:View ID="View3" runat="server">
<table cellpadding="3">
<tr>
<td><asp:Label ID="Label15" runat="server" Text="SMS Details" SkinID="sideHead"></asp:Label></td>
</tr>
<tr height="10px">
<td>
<b>SMS Attempt 1</b></td>
</tr>
<tr> <td>
<radG:RadGrid ID="gridDetailsSMS_Att1" runat="server"
AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="true" DataSourceID="RR_SMSAtt1" Font-Size="Medium"
GridLines="None" OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_SMSAtt1">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td> </tr>
<tr>
<td>
<b>SMS Attempt 2</b></td>
</tr>
<tr>
<td>
<radG:RadGrid ID="gridDetailsSMS_Att2" runat="server"
AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="true" DataSourceID="RR_SMSAtt2" Font-Size="Medium"
GridLines="None" OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_SMSAtt2">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td>
</tr>
<tr> <td> <b>SMS Attempt 3</b></td> </tr>
<tr>
<td valign="top">
<radG:RadGrid ID="gridDetailsSMS_Att3" runat="server"
AllowFilteringByColumn="false" SkinID="myGrid"
AllowPaging="True" AllowSorting="True" Font-Size="Medium"
GridLines="None" AutoGenerateColumns="true" DataSourceID="RR_SMSAtt3"
OnItemDataBound="RadGrid_DataBound">
<MasterTableView CommandItemDisplay="None" AutoGenerateColumns="true"
DataSourceID="RR_SMSAtt3">
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</radG:RadGrid>
</td>
</tr>
<tr>
<td>
<b>SMS Acknowledgement</b></td>
</tr>
<tr> <td>
<radG:RadGrid ID="gridDetailsSMSAck" runat="server"
AllowFilteringByColumn="false" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="true" DataSourceID="RR_SMSAck" Font-Size="Medium"
GridLines="None" SkinID="myGrid">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_SMSAck">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td> </tr>
</table>
</asp:View>
<asp:View ID="View4" runat="server">
<table cellpadding="3">
<tr> <td><asp:Label ID="Label16" runat="server" Text="Voice Details" SkinID="sideHead"></asp:Label></td>
<tr>
<td>
<b>IVR Attempt 1</b>
</td>
</tr>
<tr> <td>
<radG:RadGrid ID="gridIVRAtt1" runat="server" AllowFilteringByColumn="false"
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
DataSourceID="RR_IVRAtt1" Font-Size="Medium" GridLines="None"
OnItemDataBound="RadGrid_DataBound" SkinID="myGrid">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_IVRAtt1">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td> </tr>
<tr>
<td>
<b>IVR Attempt 2</b>
</td>
</tr>
<tr>
<td valign="top">
<radG:RadGrid ID="gridIVRAtt2" runat="server" AllowFilteringByColumn="false"
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
DataSourceID="RR_IVRAtt2" Font-Size="Medium" GridLines="None"
OnItemDataBound="RadGrid_DataBound" SkinID="myGrid" Width="600px">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_IVRAtt2">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td>
</tr>
<tr> <td> <b>IVR Attempt 3</b> </td> </tr>
<tr>
<td valign="top">
<radG:RadGrid ID="gridIVRAtt3" runat="server" AllowFilteringByColumn="false"
AllowPaging="True" SkinID="myGrid"
AllowSorting="True" Font-Size="Medium" Width="600px" GridLines="None"
AutoGenerateColumns="true" DataSourceID="RR_IVRAtt3"
OnItemDataBound="RadGrid_DataBound">
<MasterTableView CommandItemDisplay="None" AutoGenerateColumns="true"
DataSourceID="RR_IVRAtt3">
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</radG:RadGrid>
</td>
</tr>
<tr>
<td>
<b>IVR Acknowledgement</b>
</td>
</tr>
<tr> <td valign="top">
<radG:RadGrid ID="gridIVRAck" runat="server" AllowFilteringByColumn="false"
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true"
DataSourceID="RR_IVRAck" Font-Size="Medium" GridLines="None" SkinID="myGrid"
Width="600px">
<MasterTableView AutoGenerateColumns="true" CommandItemDisplay="None"
DataSourceID="RR_IVRAck">
</MasterTableView>
<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</radG:RadGrid>
</td> </tr>
</table>
</asp:View>
</asp:MultiView>
</td>
</tr>
<tr>
<td>
<asp:Button ID="btnBack" Text="Back" runat="server" CausesValidation="false" PostBackUrl="~/Activations.aspx" />
<asp:Button ID="btnRefresh" Text="Refresh" Visible="true" runat="server" OnClick="btnRefresh_Click" />
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblError" runat="server" ForeColor="Red" Text="There is an error. Please try again."
Visible="False" EnableViewState="false"></asp:Label>
</td>
</tr>
</table>
<asp:SqlDataSource ID="RR_SMSAtt1" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
SelectCommand="SELECT RecipientName AS [Recipient Name], FirstSMSNumber AS [SMS Number], FirstSMSStartTime AS [Start Time], FirstSMSQueueTime AS [Queue Time], FirstSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE FirstSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
OldValuesParameterFormatString="original_{0}" OnSelected="RR_SMSAtt1_Selected">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="RR_SMSAtt2" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
SelectCommand="SELECT RecipientName AS [Recipient Name], SecondSMSNumber AS [SMS Number], SecondSMSStartTime AS [Start Time], SecondSMSQueueTime AS [Queue Time], SecondSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE SecondSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="RR_SMSAtt3" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
SelectCommand="SELECT RecipientName AS [Recipient Name], ThirdSMSNumber AS [SMS Number], ThirdSMSStartTime AS [Start Time], ThirdSMSQueueTime AS [Queue Time], ThirdSMSStatus AS [Status] FROM RR_tblActivationDetails WHERE ThirdSMSStartTime IS NOT NULL AND ActivationID=@ActivationID"
OldValuesParameterFormatString="original_{0}">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource OnSelected="RR_SMSAck_Selected" ID="RR_SMSAck" runat="server"
ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], '' AS [SMS Number], AcknowledgeSMS as [Replied Text], AcknowledgeTime AS [Acknowledge Time] FROM RR_tblActivationDetails WHERE AcknowledgeVia='S' AND ActivationID=@ActivationID">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource OnSelected="RR_IVRAtt1_Selected" ID="RR_IVRAtt1" runat="server"
ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], FirstIVRNumber AS [Voice Number], FirstIVRStartTime AS [Queued], FirstIVRCallTime AS [Called], FirstIVRCompleteTime AS [Completed], FirstIVRStatus AS [Status], FirstIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE FirstIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="RR_IVRAtt2" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
SelectCommand="SELECT RecipientName AS [Recipient Name], SecondIVRNumber AS [Voice Number], SecondIVRStartTime AS [Queued], SecondIVRCallTime AS [Called], SecondIVRCompleteTime AS [Completed], SecondIVRStatus AS [Status], SecondIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE SecondIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="RR_IVRAtt3" runat="server" ConnectionString="<%$ ConnectionStrings:RRSqlServer %>"
SelectCommand="SELECT RecipientName AS [Recipient Name], ThirdIVRNumber AS [Voice Number], ThirdIVRStartTime AS [Queued], ThirdIVRCallTime AS [Called], ThirdIVRCompleteTime AS [Completed], ThirdIVRStatus AS [Status], ThirdIVRTotalRetries AS [Total Retries] FROM RR_tblActivationDetails WHERE ThirdIVRStartTime IS NOT NULL AND ActivationID=@ActivationID">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource OnSelected="RR_IVRAck_Selected" ID="RR_IVRAck" runat="server"
ConnectionString="<%$ ConnectionStrings:RRSqlServer %>" SelectCommand="SELECT RecipientName AS [Recipient Name], AcknowledgeNumber AS [Voice Number], AcknowledgeIVR as [Key Pressed], AcknowledgeTime AS [Acknowledge Time] FROM RR_tblActivationDetails WHERE AcknowledgeVia='V' AND ActivationID=@ActivationID">
<SelectParameters>
<asp:Parameter Type="String" Name="ActivationID" />
</SelectParameters>
</asp:SqlDataSource>
</asp:Content>
protected void Page_Load(object sender, EventArgs e)
{}
public void RadGridLegalEntities_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
List<OM.LegalEntity> entities = new DA.LegalEntity().GetLegalEntities();
RadGridLegalEntities.DataSource = entities;
}
<telerik:RadGrid ID="RadGridLegalEntities" runat="server" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" Skin="Office2007"OnNeedDataSource="RadGridLegalEntities_NeedDataSource" Width=95% Height="465px"
OnInsertCommand="RadGridLegalEntities_InsertCommand"
OnUpdateCommand="RadGridLegalEntities_UpdateCommand"
OnDeleteCommand="RadGridLegalEntities_DeleteCommand"
AllowMultiRowEdit="false" ShowStatusBar="True" >
<
MasterTableView EditMode=InPlace DataKeyNames="LegalEntityID" CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border" TableLayout="Auto" CommandItemDisplay="Top">
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
| try |
| { |
| if (eventEnd >= eventStart) |
| { |
| UserEventHelper.ArrangeAppraisal(doctor, eventStart, location, label, eventEnd, user.ID); |
| litStatus.Text = string.Empty; |
| } |
| else |
| { |
[Exception: Appointment is invalid: Start time must be before the End time.]
Telerik.Web.UI.Appointment.Validate() +162
Telerik.Web.UI.Scheduling.AppointmentController.InsertAppointmentThroughProvider(Appointment appointment) +17
Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +106
Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +326
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Hi,
I'd like to know if there is an option to apply mixed font color in the same event in the scheduler.
For example, if the event states: "Meeting with DR. Monroe"
have "Meeting with" colored in blue and "Dr. Monroe" in red.
Thanks!