Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
97 views
I'm having a problem with using the exchange provider with rad scheduler. The load time for data is excessive on calendars, esp when they have many recurring events. I think the reason boils down to 2 things (please let me know if there's more...):

1. the size of the XML returned by EWS
2. the fact that the exchange provider requests all recurring events, regardless if they will actually have an instance within the date range or not.

1. the size of the XML returned by EWS:

In the GetCalendarItems() method in ExchangeSchedulerProvider, I changed BaseShape from AllProperties to Default, and added the following additional properties:
UnindexedFieldURIType.itemBody
UnindexedFieldURIType.calendarTimeZone
UnindexedFieldURIType.calendarRecurrence
UnindexedFieldURIType.calendarFirstOccurrence
UnindexedFieldURIType.calendarLastOccurrence

this *seems* to give radscheduler all that it needs, and the returned xml doc from EWS shrank from 2.6MB (!) to about 200K, for 124 records. This actually still seems kind of big to me, and I'm worried about scalability.

2. Exchange Provider requests all recurring events

It also looks like in the GetAppointments() method, the provider gets all "regular" events within the given timespan, as well as all recurring events:

if ((item.Start < owner.VisibleRangeEnd && item.End > owner.VisibleRangeStart) ||
                  item.CalendarItemType1 == CalendarItemTypeType.RecurringMaster)
                {
                    itemIds.Add(item.ItemId);
                }

Thinking about it, this kind of makes sense. How would we know if any given recurring event has a recurrence within a given timespan if we don't get all recurring masters, and then parse their recurrence rule, checking to see if there's an actual instance in the time we're looking at. However, this is hugely inefficient, and there must be a better way. In that example above, I'm getting 124 event records. But in that same example, I'm actually only displaying 2 of them (!). All the rest are recurring events that were set up way in the past (years sometimes), and whose recurrence has completed. And we use outlook web access here at work, where my calendars display correctly, and don't take seconds (or minutes) to load.

Could anyone offer assistance about how to improve the responsiveness of radscheduler with EWS, esp in the case of a calendar with many recurring events.

Thanks in advance

Jonathan
Hans Santens
Top achievements
Rank 1
 answered on 22 Nov 2010
1 answer
39 views
Hi,

I have developed a custom control which is placed inside the <FilterTemplate> of a GridBoundColumn. I am hoping to be able to get a reference to that GridBoundColumn from the control, in order to read certain properties (UniqueName, DataField, and CurrentFilterValue), but looking through the Parent hierarchy, I wasn't able to spot it.

Can you recommend a way of getting the column object reference?

Thanks,
Veli
Telerik team
 answered on 22 Nov 2010
1 answer
70 views
Dear Sir ,

I am using following code for open Appointment Context Menu using left menu Click this code is provided by your team now Context Menu is Opening but when i click on any menu item then its shows error  java script error _internalId is null or not and object.


function OnClientAppointmentClick(sender, args) {
            sender.get_appointmentContextMenus()[0].show(args.get_domEvent());

        }


I have attached error screen shots please give me solution.


Thanks
Chandan Kumar
Veronica
Telerik team
 answered on 22 Nov 2010
1 answer
103 views

Hi,

My application loads external links in a radwindow and I would like to show a custom error message rather than the standard page based on error messages. I was wondering how this could be accomplished using Radwindows. I dont see any obvious events i could use.

The error messages could possibly be based on HTTP standard response codes.

TIA 
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
1 answer
53 views
I found in some other thread an answer to my question about stopping the Rotator to continue scrolling past the last item (WrapFrames)...
And I found a thread that shows how to preserve the selectedIndex in the rotator as well... however, when combining WrapFrames="False" and setting the InitialItemIndex to the correct index the RotatorScrolling seems to get messed up.

For example, if you have 10 elements in the rotator and only 5 items are shown at the time, you can scroll to the next 5 elements without problems. If you then select item #6, it correctly shows me element 6 (index=5), the index is preserved correctly but I'm suddenly able to scroll NEXT, but not back. If I click the Next (show the next 5 elements), I see the first 5 elements...

Know issue? Or have I done something wrong ?
Fiko
Telerik team
 answered on 22 Nov 2010
3 answers
87 views
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
1 answer
111 views
I am using the RadWindow as a dialog functionally it works fine for everything I am doing. There are two more cosmetic things I want to do and I am having trouble with them.

1. I want to set the initial focus to a textbox in the window. I have tried this in a javascript, form tag, and in the page load on the code behind and neither has worked:

javascript:

 

 

var templateName = document.getElementById("txtTemplateName");

 

templateName.focus();


code behind:

txtTemplateName.Focus();

form tag:

 

<

 

 

form id="form1" method="post" runat="server" defaultfocus="txtTemplateName">

 

 

 

 


2. I want to make a button on the window the default button and allow the enter key to press the button. I have set the button as the default button in the form tag and it appears to make it the default, but I press enter and the window clears all input, but it doesn't run the code for the button, then if I reenter the input and click the button with the mouse I get javascript errors.

form tag:

<

 

 

form id="form1" method="post" runat="server" defaultbutton="btnOK" >

 


Thank you in advance for your help.
Georgi Tunev
Telerik team
 answered on 22 Nov 2010
10 answers
207 views
Hi all

I want to use the RadBinary image control in my app but I cannot find anything on how to limit the size of the file to be uploaded.

what I need to do is limit the size of images to be uploaded to less than 5mb.

Has anyone had any experience with this?

Thanks

chommy
Nikolay Rusev
Telerik team
 answered on 22 Nov 2010
1 answer
235 views
Hi,

I just downloaded the trial version of the Telerik Controls and am trying to convert an existing gridview to a Rad Gridview.  In my old grid I had a button in one of the columns that when clicked it would open a modal popup window.

Here is the code I used for the onclick event of the button in my original grid, but it doesn't work for the rad grid.  I get the error message
Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'System.Web.UI.WebControls.GridViewRow'.

Public Sub ibtShowWarnings_OnClick(ByVal sender As Object, ByVal e As EventArgs)

        Dim ibtWarnings As ImageButton = DirectCast(sender, ImageButton)
        Dim SelectedRow As GridViewRow = DirectCast(ibtWarnings.NamingContainer, GridViewRow)
        Dim hdfMessage As HiddenField = DirectCast(SelectedRow.FindControl("hdfWarningMessage"), HiddenField)
        Dim lblSource As Label = DirectCast(SelectedRow.FindControl("lblSourceName"), Label)
        Dim aryMessages As New ArrayList
        Me.lblMessageHeading.Text = "Warnings For Source " & lblSource.Text
        aryMessages.AddRange(Split(hdfMessage.Value.ToString, "~"))
        Me.bltMessages.DataSource = aryMessages
        Me.bltMessages.DataBind()
        Me.pnlPage.BackImageUrl = "~/App_Themes/Images/Gradient Fills/Blue/Gradient Med Blue Beige 1000 x 400.png"
        Me.mpeWarningErrorMessages.Show()

    End Sub


I understand that it doesn't consider a gridview row as a rad grid row, but how do you declare a rad grid row?

I found one demo in the samples that does something similar but it used java script. 
Is there a way to get the row of the button that was clicked in the code behind using vb or c?

Thanks for you help.

Shinu
Top achievements
Rank 2
 answered on 22 Nov 2010
4 answers
69 views

when i use below html code with RadAjaxLoadingPanel code the RadAjaxLoadingPanel Goes outside the div tag

<elerik:RadAjaxManager ID="radAjaxManager" runat="server" DefaultLoadingPanelID="radAjaxLoadingPanel">

<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="pnl">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="pnl" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel" runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>

<div style="padding:15px 10px 15px 10px;">

        <asp:Panel ID="pnl" runat="server">

               <!-- other codes -->

        </asp:Panel>

</div>

Amir
Top achievements
Rank 2
 answered on 22 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?