Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
473 views
Hello,

My company is considering using your Scheduler component in our application, but we have some reservations due some performance issues we've run into with large datasets. When loading lots of appointments (175 users over a 1-month period, about 250 appts.), the performance is not very good (10-second response time, ~1MB response to postback), and this is over an intranet. We're going to be deploying whichever scheduler we choose in an internet application, where it is critical that the performance be top-notch, so if we can't get it to perform quickly over our intranet, we won't be able to use it, unfortunately, as much as we like the looks and features of the Telerik scheduler. I've tried out a few other schedulers, and the response time for the same dataset is much faster, so I know it's not the size of the data itself causing the slowdown. As best I can I tell, the slowdown seems to be due to the rendering stage. Is there something we can do to reduce the size of the response returned to the postback and to speed up the rendering of the appointments? Also, it's making 20+ requests to WebResource.axd for scripts -- is there a way to tell it to combine, minify, and gzip these scripts into a single request so that it doesn't hamper performance?

Thanks,

Daniel
T. Tsonev
Telerik team
 answered on 09 Apr 2010
1 answer
102 views
How can i start the plot the graph with out leaving any space between axis and plot area.

Attaching a file for helping you understand

<

 

telerik:RadChart ID="RadChart1" runat="server" Skin="BabyBlue" DefaultType="Line">

 

 

<Series>

 

 

<telerik:ChartSeries Name="Test" Type="Line">

 

 

<Items>

 

 

<telerik:ChartSeriesItem XValue="1" YValue="2"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="3" YValue="4"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="4" YValue="6"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="7" YValue="7"></telerik:ChartSeriesItem>

 

 

</Items>

 

 

</telerik:ChartSeries>

 

 

 

</Series>

 

 

<PlotArea>

 

 

<XAxis IsZeroBased="false" AutoScale="true">

 

 

</XAxis>

 

 

<YAxis IsZeroBased="false" AutoScale="true">

 

 

</YAxis>

 

 

</PlotArea>

 

 

</telerik:RadChart>

Hope you guys can understand from attached image what i am trying to achive..

 

Giuseppe
Telerik team
 answered on 09 Apr 2010
9 answers
841 views
Hi there,

Can you please help me on how to disable the add new record button in grid when there is at least one record displayed?
The add new record should appear only in the event of the datasource not returning any records.
Moreover if the button is clicked i want some fields to be auto completed (linked) based on fields appearing in a formview in the same page.
 
Thanxs!


Sebastian
Telerik team
 answered on 09 Apr 2010
3 answers
210 views
Hi,

I ran into a few issues while doing web service binding (custom provider) and using a custom advanced form.  I figured ways around it/fixes and wanted to know if I'm going about this correctly or is there better ways (the documentation for the scheduler client side stuff is not that great):


1)  I have a recurring appointment in the scheduler.  When I click the "master appointment" and select "edit series" it loads up fine BUT if I click an "Occurrence" of the series and select "edit series" the time slots are populated with the dates/times of the current occurrence (not master) and the recurrence panel does not load up correctly (this can get very annoying because I'm building an employee timesheet where an occurrence can repeat for 1+ years).

The issue here is that the "schedulerFormCreated" client side function tries to load the data for the current occurrence which does not have the recurrence rules - I am selecting "edit series" not "current appointment" so it should be loading the master.

The way I solved this:

                 
                    if (!scheduler.get_webServiceSettings().get_isEmpty()) { 
                        // Populate the form with the appointment data 
                        var apt = eventArgs.get_appointment(); 
 
                        var isInsert = mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert; 
                        var editSeries = eventArgs.get_editingRecurringSeries(); 
 
                        if (editSeries && apt.get_recurrenceState() == 2) { 
                            var ParentID = apt.get_recurrenceParentID(); 
                            apt = scheduler.get_appointments().findByID(ParentID); 
                        } 
 
                        advancedTemplate.populate(apt, isInsert, editSeries); 
                    } 

I added the if statement to check if it the appointment is an Occurrence; if so get its parent and load the data for the parent in the form. 

Also the recurrence panel loads if you select the master appointment and select "edit current appointment" (not series) - it should stay closed since we're only editing the current appointment.  A line or two in the populate method in AdvancedForm.js fixed this.

2)  Cannot delete a single occurrence of a recurring appointment (building a employee timesheet system - for example have to delete a single instance if somebody is out sick a certain day).

   My web service method (this is from the tutorial):

        [WebMethod(EnableSession = true)] 
        public IEnumerable<AppointmentData> DeleteAppointment(SchedulerInfo schedulerInfo, AppointmentData appointmentData, bool deleteSeries) { 
                return Controller.DeleteAppointment(schedulerInfo, appointmentData, deleteSeries); 
        } 
 

Custom Provider:

        public override void Delete(RadScheduler owner, Appointment appointmentToDelete) 
        { 
            if (!PersistChanges) 
            { 
                return; 
            } 
                Connectors.TimeLog MyLog = db.TimeLogs.Where(p => p.TimeTableID == (int)appointmentToDelete.ID).First(); 
                db.TimeLogs.DeleteOnSubmit(MyLog); 
                db.SubmitChanges(); 
        } 




The issue that happened to me here is that the web service calls the Delete method of the custom provider even if  the appointment is an occurrence and the linq statement fails because there is no database entry for an occurrence of an appointment (only for the masters and exceptions there are db entries) - to "delete" an occurrence you have to add an exception to the RecurrenceRule of the master appointment.

What I did here is modify the DeleteAppointment method:

- if delete series or master or exception do return Controller.DeleteAppointment(schedulerInfo, appointmentData, deleteSeries);

- if delete single appointment check if appointment is master if master get the RecurrenceRule (from db) if an Occurrence get the master appointment then get its RecurrenceRule (from db).  Then I used the RecurrenceRuleConverter to convert from recurrence string then add an exception for the "Start" property of the passed "appointmentData" then convert back to string, save to database, and reload  appointments.

Am I going about this the right way?  Maybe there's an easier method but I've searched the documentation/forums with no luck...
T. Tsonev
Telerik team
 answered on 09 Apr 2010
1 answer
184 views
Hi,

I'm trying to use a RadTreeview in a RadComboBox, all is good except I want to see the text of my selected node after a postback in the combo. For example in the travelisimo example, if you want to have the name of the selected country in the dropdown after clicking on submit, how would you do (actually after submit I've "choose a destination") ?

Thanks
Veronica
Telerik team
 answered on 09 Apr 2010
1 answer
166 views
Hi,
         Can someone please help me to set up Ajax setting for the following scenario.
1) There is a RadAjax Manager in Master Page.
2) In Content page, I have the following Control structure.
<asp:Content ID="topPaneContent" ContentPlaceHolderID="Right_Content" runat="server">     
 <telerik:RadAjaxPanel ID="IDRLoadingPanel" runat="server" EnableAJAX="false"> 
  
  <telerik:RadSplitter ID="IDRSplitter" runat="server" Orientation="Horizontal" Width="100%"> 
       <telerik:RadPane ID="IDRMainPane" runat="server"> 
            <asp:Button ID="UpdateBtn" runat="server" Text="Update" OnClick="UpdateBtn_OnClick"/> 
            <asp:Button ID="AddBtn" runat="server" Text="Add" OnClick="AddBtn_OnClick"/> 
            <asp:Button ID="DeleteBtn" runat="server" Text="Delete" OnClick="DeleteBtn_OnClick"/> 
            <asp:Button ID="RefreshBtn" runat="server" Text="Refresh" OnClick="RefreshBtn_OnClick"/> 
             
            <asp:SqlDataSource ID="dataSourceIDRs" runat="server" ConnectionString="<%$ ConnectionStrings:SQL_AppConString %>" 
            SelectCommand="IDR_GET_IDR_LIST" SelectCommandType="StoredProcedure"> 
                <SelectParameters> 
                    <asp:Parameter Name="IDRType" DefaultValue="~" /> 
                </SelectParameters> 
            </asp:SqlDataSource> 
             
            <telerik:RadGrid ID="grdIDR" runat="server" DataSourceID="dataSourceIDRs"  
            AllowFilteringByColumn="True" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True"  
            GridLines="None" Width="100%" OnSelectedIndexChanged="grdIDR_SelectedIndexChanged"  
            ClientSettings-Selecting-AllowRowSelect="true" ClientSettings-EnablePostBackOnRowClick="true" > 
                <PagerStyle HorizontalAlign="Left" Mode="NextPrev" Position="Top"  
                    VerticalAlign="Top" Wrap="True" AlwaysVisible="True" BorderStyle="None" /> 
                <MasterTableView> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns>   
                            
                           <telerik:GridBoundColumn DataField="IDR_ID" HeaderText="IDRID" UniqueName="IDR_ID" ReadOnly="True">    
                           </telerik:GridBoundColumn> 
                           <telerik:GridBoundColumn DataField="IDR_TYPE" HeaderText="IDR Type" UniqueName="IDR_TYPE" ReadOnly="True">    
                           </telerik:GridBoundColumn>   
                           <telerik:GridBoundColumn DataField="REQUESTOR_CERT_REG_NUMBER" HeaderText="Certfication/Registration No" UniqueName="REQUESTOR_CERT_REG_NUMBER">    
                           </telerik:GridBoundColumn>   
                           <telerik:GridBoundColumn DataField="REQUESTOR_FIRST_NAME" HeaderText="First Name" UniqueName="REQUESTOR_FIRST_NAME">    
                           </telerik:GridBoundColumn>   
                           <telerik:GridBoundColumn DataField="REQUESTOR_LAST_NAME" HeaderText="Last Name" UniqueName="REQUESTOR_LAST_NAME">    
                           </telerik:GridBoundColumn>   
                                              
                            
                    </Columns>   
                </MasterTableView> 
                <ClientSettings EnablePostBackOnRowClick="True"> 
                    <Selecting AllowRowSelect="True" /> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                </ClientSettings> 
            </telerik:RadGrid> 
             
       </telerik:RadPane> 
        
       <telerik:RadSplitBar ID="IDRSplitBar" runat="server" CollapseMode="Both" /> 
        
       <telerik:RadPane ID="IDRDetailPane" runat="server"> 
            <telerik:RadTextBox ID="IdrIdTB" runat="server" Text="" BorderWidth="0" ReadOnly="true" ReadOnlyStyle-BackColor="LightGray"></telerik:RadTextBox>  
            <telerik:RadSplitter ID="IDRBottomPaneSplitter" runat="server" Orientation="Horizontal" Width="100%"> 
                     <telerik:RadPane ID="IDRDetailToppane" runat="server"> 
                         <telerik:RadAjaxPanel ID="IDRDetailRAP" runat="server" /> 
                     </telerik:RadPane> 
                      
                     <telerik:RadSplitBar ID="IDRDetailSplitBar" runat="server" CollapseMode="Both" /> 
                      
                     <telerik:RadPane ID="IDRDetailBottomPane" runat="server"> 
                        <telerik:RadAjaxPanel ID="SaveMenuPanel" runat="server">    
                            <telerik:RadMenu ID="IDRSaveMenu" runat="server" Width="100%" OnItemClick="IDRSaveMenu_ItemClick"> 
                                 <DefaultGroupSettings ExpandDirection="Auto" Flow="Horizontal" /> 
                                 <Items> 
                                    <telerik:RadMenuItem runat="server" Text="Save" Value="Save"/> 
                                    <telerik:RadMenuItem runat="server" Text="Cancel" Value="Cancel"/> 
                                    <telerik:RadMenuItem runat="server" Text="Add" Value="Add"/> 
                                 </Items> 
                            </telerik:RadMenu> 
                       </telerik:RadAjaxPanel>    
                     </telerik:RadPane> 
                 </telerik:RadSplitter> 
       
       
      </telerik:RadPane>    
  </telerik:RadSplitter> 
 </telerik:RadAjaxPanel> 
</asp:Content> 
 


Objective:
IDRDetailRAP dynamiccally loads a form as user control. my objective is when the Update button is clicked , all the controls should get refreshed without flickering.

I tried to put all the control inside a RadajaxPanel, but it did not work.

Please help me.

Thanks!
  
Radoslav
Telerik team
 answered on 09 Apr 2010
2 answers
197 views
Hello,

I am trying to change the color of a visited link (which is a GridButtonColumn) in a RadGrid, AND then maintain that color if the user hits the back button.

Here's my problem.  When the user clicks the link (GridButtonColumn), the link changes to my specified color via my CSS and then the link takes the user to a new page.  However, if the user hits the back button on the web browser, the visited link in the RadGrid resorts back to it's original color and not the visited link color.  How can I maintain the visited link color when the user pages back?

My CSS:

.RadGrid

 

a:visited {color:Orange !important;}

My RadGrid Code:

 

<telerik:RadGrid ID="radgrdAssignment" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="True" ShowStatusBar="False" PageSize="25" GridLines="None" HorizontalAlign="NotSet" runat="server">  
    <MasterTableView DataKeyNames="AssignmentID" ShowHeadersWhenNoRecords="True">  
    <Columns> 
        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn">  
        <HeaderStyle Width="30px" HorizontalAlign="Center" /> 
        <ItemStyle Width="30px" HorizontalAlign="Center" /> 
        </telerik:GridClientSelectColumn> 
        <telerik:GridButtonColumn ButtonType="LinkButton" DataTextField="AssignmentID" SortExpression="AssignmentID" HeaderText="EvalID" UniqueName="AssignmentIDButton" CommandName="Select">  
        <ItemStyle CssClass="RadGrid" /> 
        </telerik:GridButtonColumn> 
        <telerik:GridBoundColumn DataField="AssignmentID" HeaderText="AssignmentID" UniqueName="AssignmentIDData" Display="False"></telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="ProjectName" HeaderText="Project"></telerik:GridBoundColumn> 
    </Columns> 
    </MasterTableView> 
    <ClientSettings EnableRowHoverStyle="True">  
    <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
    <pagerstyle mode="NextPrevAndNumeric" AlwaysVisible="True" Position="Top" /> 
</telerik:RadGrid> 

Thanks you,
Jason

Jason Zam
Top achievements
Rank 1
 answered on 09 Apr 2010
3 answers
95 views
Hi,

I have a radcalendar, which is user typeable.

Upon typing a number like 120000 it takes the date as 12-Dec-1998.

When i type just 12 , it takes the date as 12 + current Month + current Year

When i type the 1200 it does not change anything

What is reason that it takes this date. How can I stop the auto intelligence of the calendar control.

Sample rad calendar decalration used :

<

 

radCln:RadDatePicker ID="rdTransactionStartDate" runat="server">

 

 

<DateInput Skin="None" DateFormat="dd-MMM-yyyy">

 

 

</DateInput>

 

 

<Calendar Skin="Office2007" ShowOtherMonthsDays="False" FastNavigationPrevToolTip="Previous Year"

 

 

FastNavigationNextToolTip="Next Year" NavigationNextToolTip="Next Month" NavigationPrevToolTip="Previous Month"

 

 

FastNavigationStep="12" ShowRowHeaders="false">

 

 

</Calendar>

 

 

<DatePopupButton CssClass="mLeft10" />

 

 

</radCln:RadDatePicker>

 

Daniel
Telerik team
 answered on 09 Apr 2010
3 answers
201 views
I want to find the tree view so I bind the data, how can I find the RadTreeView1 inside the Rad-PanelBar
here is my code if anyone know please give me the code.


 <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Forest"> 
        <Items> 
            <telerik:RadPanelItem Text="Panel1"> 
                <Items> 
                    <telerik:RadPanelItem Text="ProfileTree"> 
                        <Items> 
                            <telerik:RadPanelItem Text=""> 
                                <ItemTemplate> 
                                    <telerik:RadTreeView runat="server" ID="RadTreeView1"> 
                                      
                                    </telerik:RadTreeView> 
                                </ItemTemplate> 
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem Text="Demo"> 
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem Text="Demo1"> 
                    </telerik:RadPanelItem> 
                    <telerik:RadPanelItem Text="Demo2"> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
            <telerik:RadPanelItem Text="Services"> 
                <Items> 
                    <telerik:RadPanelItem Text="Demo"> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelItem> 
        </Items> 
    </telerik:RadPanelBar> 

Princy
Top achievements
Rank 2
 answered on 09 Apr 2010
1 answer
135 views
Hi,

I have a rad window manager and rad window in a page. and i open the rad window at client side. i set the size even then i am not able to open the window with the size fixed.
   
    /// <summary>
    /// This method helps in opening the window for the popup messages
    /// </summary>
    public void OpenWindow(Telerik.Web.UI.RadWindowManager rwmdialogue)
    {
        rwmdialogue.Windows.Clear();

        Telerik.Web.UI.RadWindow newwin = new Telerik.Web.UI.RadWindow();
        newwin.ID = "rddialog";
        newwin.NavigateUrl = "popupmessages.aspx";
        newwin.VisibleOnPageLoad = true;
        newwin.Width = 600;
        newwin.Height = 30;
        newwin.Modal = true;
        newwin.VisibleStatusbar = false;
        newwin.VisibleTitlebar = false;
        newwin.DestroyOnClose = true;
        rwmdialogue.Windows.Add(newwin);
    }

i have convered this to pixel / unit nothing works out

Please need help to open the rad window in the specified size.
Fiko
Telerik team
 answered on 09 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?