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!

Dear Guru's,
New here and I've been trying to implement the radcombobox to replace a lot of my current listboxes. That all seemed to go quite well, but I ran into an issue that I can't seem to solve with either documentation, google or this forum.
Our webapplication is used in multiple large companies and it should work under any browser the client chooses to use. I found out that the vertical alignment of the text in IE is lower than in, for example Google Chrome. I can't seem to figure out how to resolve this.
Please see that attached image for an example. It's the exact same page, left is IE, right is Chrome. I used the "j" because you can clearly see the difference at the bottom.
Thank you for your time!
Best regards,
-Rem

Hi,
I want to be able to open the RadGrid headercontextmenu on left click instead of right. Currently when I left click, it just changes the sorting, but the sorting can already be accomplished in the context menu. This is the same issue as this thread: https://www.telerik.com/forums/how-to-show-the-radgrid-context-menu-on-left-click-instead-of-right-click but that was a while ago and currently when I implement, the context menu flashes but then disappears. Is there anyway to achieve the appropriate functionality? Here is my code that implements it:
<script type="text/javascript"> function OnColumnClick(sender, args){ args.get_gridColumn().showHeaderMenu(args.domEvent); }</script>
… In the RadGrid …
<ClientEvents OnColumnClick="OnColumnClick" />I'm currently updating a chart from asp.net chart to telerik htmlchart.
I have a line series chart and for one of the series I would like to add a +/- range at each marker to replicate an ErrorBar series from traditional .net chart control.
If I set the + and - line series as having Fillstyle.BackgroundColor as transparent (hide the line) and set the MarkersAppearance.BackgroundColor to black, I was hoping that the marker appearance would overwrite the series color and display only the marker. however this is not working as the fillstyle appears to be the master.
Is there any way of showing only the marker or will I have to re-write and go with a scatter and scatterline chart? Is there any equivalent to the ErrorBar type?
Thanks in advance.