Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
377 views

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

Marin Bratanov
Telerik team
 answered on 01 Sep 2018
5 answers
223 views
Hi telerik Team,

We are using the old RadControls Q42006 version and we are planning to migrate the telerik controls to 2010 version. Before migrate i download the new controls 2010 version and i applied for my application. After i applied new telerik.web.ui, ASP NET chart images are not displaying in the page and also am using telerik grid old version in the same page. am always got the javascript error "RadGrid namespace" is undefined.

Here i post the my aspx page coding.
Please advise me after i apply the new telerik controls why i can't use telerik grid in between <Asp:view></Asp:View> and also why I cant able to see my chart images. Is there any changes I need to do.

Can  i use RadAjax Manager is 2010 version and RadGrid is my old version. Because in master page am using Rad Ajax Manager 2010 version. The below child page am using old version Rad grids. And I so wonder why I cant see ASPNET chart images.

If i apply the new controls, did i need to change my whole application to new controls?

Please reply me ASAP.

ASPX Code :

<%@ 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> &nbsp; &nbsp;
                            <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>

Roshan
Top achievements
Rank 1
 answered on 01 Sep 2018
10 answers
206 views
Hi All,,,,
i am using the Rad Scheduler control on AdvancedForm Templates and user controls as from the demo....

i am using it inside RadPanel like the First Look demo in th follwoing link http://demos.telerik.com/aspnet-ajax/scheduler/examples/outlook2007/defaultcs.aspx

but i changed it to use the user controls instead of the built in advanced form to customize it as i need....

the advanced form in the edit mode is called properly,,, but when i try to call it in the insert mode either by double click the scheduler or from the options button from the inline form; i got the following error:-

Error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object.

i don't not know what is causing this error and i docnt want to disable the ajax since i don't want the page to post back!!!!

any help please....

thanks....

Asa'ad

Mandar
Top achievements
Rank 1
 answered on 31 Aug 2018
1 answer
630 views
How can I parse the recurrence rule to extract all occurrences. I want to do this in a console application. I want to query the database and extract the occurrences in c#.
Peter Milchev
Telerik team
 answered on 31 Aug 2018
15 answers
743 views
Hi,

I have a grid with lines i can edit.

Scrolling is enabled but when you select a row to edit it jumps to the top op the grid and you have to scroll down to see the edit line.
But i want it to stay at the position of the line i selected.

Can someone advise?

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>

Kiranmayee
Top achievements
Rank 1
 answered on 31 Aug 2018
6 answers
862 views
Hello,

I'm trying to catch this error. If you put a end datetime in that is before the start datetime my application is falling over. Obviously, I am doing this deliberately to break it, but want to catch the error in case a hapless user tries to do the same for some bizarre reason.

I insert my appointments via a custom Insert template using the Scheduler_AppointmentCommand event. I can catch the input here with:

try 
                            { 
                                if (eventEnd >= eventStart) 
                                { 
                                    UserEventHelper.ArrangeAppraisal(doctor, eventStart, location, label, eventEnd, user.ID); 
                                    litStatus.Text = string.Empty; 
                                } 
                                else 
                                { 

So, I am not creating an appointment in my business object if the end datetime occurs before the start datetime, but an error is still thrown from the control. Where do I catch this error? Here is the stack trace if that helps:

[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
Peter Milchev
Telerik team
 answered on 31 Aug 2018
1 answer
78 views

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!

Peter Milchev
Telerik team
 answered on 31 Aug 2018
3 answers
204 views

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

Rumen
Telerik team
 answered on 31 Aug 2018
4 answers
112 views

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" />

Ryan
Top achievements
Rank 1
 answered on 30 Aug 2018
1 answer
134 views

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.

 

 

 

 

Richy
Top achievements
Rank 1
 answered on 30 Aug 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?