Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
144 views
Hi,

I have faced a problem when I click on "Export to Outlook" button for a recurring appointment, which is set to recurr yearly on a specific date.
It says "Appointment.ics is not  a valid Internet Calendar file".

I tried creating a  yearly recurring appointment at
http://demos.telerik.com/aspnet-ajax/scheduler/examples/export/defaultcs.aspx
and received the same above mentioned error.

I use Outlook 2007 as the mail client.

The code used is:

#region

 

RadScheduler AppointmentCommand Event

 

 

protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)

 

{

 

if (e.CommandName == "Export")

 

{

 

//RadAjaxManager1.RaisePostBackEvent(e.ToString());

 

 

TimeSpan currentOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now);

 

 

//string iCal = RadScheduler.Export(apt, currentOffset);

 

WriteCalendar(

RadScheduler.ExportToICalendar(e.Container.Appointment, currentOffset));

 

}

}

#endregion



#region

 

WriteCalendar (for export to outlook)

 

 

public void WriteCalendar(string data)

 

{

 

HttpResponse response = Page.Response;

 

response.Clear();

response.Buffer =

true;

 

response.ContentType =

"text/calendar";

 

response.ContentEncoding =

Encoding.UTF8;

 

response.Charset =

"utf-8";

 

response.AddHeader(

"Content-Disposition", "attachment;filename=\"Appointment.ics\"");

 

response.Write(data);

response.End();

}

#endregion



Please let us know if we are missing anything.

Any help urgently will be highly appreciated.
Peter
Telerik team
 answered on 08 Sep 2009
2 answers
134 views
Hi,

I am trying to implement the example of inserting into a grid using a radwindow but im having problems calling the ajax request on the ajax manager.  It can find the ajax manager using the javascript (used an alert to confirm the variable) but when the request method is called I get the following error:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index





to try and find my actual issue I took all the elements off the page and put a breakpoint on the ajax request (server side) even and a button to all it.  With no controls on the page it hit the breakpoint, with the radwindowmanager on it still hit the breakpoint but when the radgrid was added I got the same error and the breakpoint was not hit. so tried on a new page with new controls and still get the same error

Thanks
Paul
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
211 views
Hi,

I'm using a RadListBox to select an item in a list. There is a scroll in the list box since I have several items in the list. When I'm clicking on an item in the top and the whole item is not visible the SelectedIndexChanged event does not fire. The "clicked" item does not get selected either,  it just scrolls the item down the list and makes it "Active" (the css class rlbActive is set to the item I clicked).

To reproduce it use the following code. When the ListBox is loaded, scroll down so the half of the top item in the list is visible. Click that item. The item will not be selected, just "active"...

Thanks in advance

 

 

 

 

<telerik:RadScriptManager ID="rsm" runat="server" /> 
    <div> 
        <telerik:RadListBox ID="rlb" runat="server" Height="100px">  
            <Items> 
                <telerik:RadListBoxItem Text="09:30" /> 
                <telerik:RadListBoxItem Text="10:00" /> 
                <telerik:RadListBoxItem Text="10:30" /> 
                <telerik:RadListBoxItem Text="11:00" /> 
                <telerik:RadListBoxItem Text="11:30" Selected="true" /> 
                <telerik:RadListBoxItem Text="12:00" /> 
                <telerik:RadListBoxItem Text="12:30" /> 
                <telerik:RadListBoxItem Text="13:00" /> 
                <telerik:RadListBoxItem Text="13:30" /> 
            </Items> 
        </telerik:RadListBox> 
    </div> 

 

Simon
Telerik team
 answered on 08 Sep 2009
2 answers
83 views
hi

By default, RAD Scheduler displays hourly. How do I display half hourly eg 1.00pm, 1.30pm, 2.00pm, 2.30pm. Thanks
Peter
Telerik team
 answered on 08 Sep 2009
3 answers
191 views
Hello,

Before grid export, I change some properties like PageSize (to export all rows), replace/hide checkbox columns, rebind, etc. Problem is that sometimes, when the grid is set to update after an ajax request, these changes are visible in the browser.

I can restore the original properties in a try..finally block, of course, but I would rather clone the grid or revert it to before the changes. 

What do you recommend?
Bruno
Top achievements
Rank 2
 answered on 08 Sep 2009
6 answers
232 views
Hi

I have a RadEditor implemented within a dynamic data website.  On my development server everything works fine.  However once I move the application to the shared hosting environment on Go Daddy a strange error happens.

I highlight a word to apply a different style to the word, example a medium title, but it actually makes the word go away.  Displaying the html shows the original line fragment.
<div><span class="content">The situation is very grim in Kisumu. People are missing,  
 This is the result after highlighting the word situation and clicking medium titles from the style drop down.
<div><span class="content">The <span class="mediumTitles" style="font-family: azby; ;"></span>is very grim in Kisumu. People are missing 
Doing the same thing from my development server works correctly and the html shows the following.
<div><span class="content">The <span class="mediumTitles">situation</span> is very grim in Kisumu. People are missing 

If I save the data from the development server and then look at the data from the host environment the Design and Preview both look correct.

Thanks for your help.

Paul
Bulent Can
Top achievements
Rank 1
 answered on 08 Sep 2009
8 answers
103 views
This is the code stub I was using to display appointment data on the schedule control 

 

Protected Sub RS_AppointmentCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.AppointmentCreatedEventArgs) 

Handles RS.AppointmentCreated

 

 

----
----
End
Sub

The Scheduler is now inside a repeater control what do I need to do to get this to work. (The handles RS cant get a handle on the control as its inside the repeater)

Andy
Peter
Telerik team
 answered on 08 Sep 2009
1 answer
208 views

Hello all:

I am working on an ASP.NET web page that requires a tab container with 6 tabs, and 4 separate RadGrids displaying data. There is also a tab where maps are displayed, and the maps are added to the GUI dynamically at run-time because I do not know beforehand how many maps I need. SO data is read from SQL, and for each returned record a map needs to be added to the Tab. In addition I need to be able to sort and page through the data displayed in each of the grids, without affecting the other grids. The data is all loaded based on the selection from a drop-down list

Pics here:

http://thestraumanns.mine.nu/maps/maps.html

Unfortunately the action I am seeing now is that after the data is all loaded. If I click on the “Hotel Name” in the first grid to sort, the sort works, but the maps disappear.

I think I am simply trying to do too much with too many needed page refreshes and that I do not have each grid isolated from the others. I tried putting each grid in its own UpdatePanel, but then they don’t seem to be able to get the info from the drop-down.

Can anyone make a suggestion as to how I should set this up so I can make it work the way I need it to?

Thanks!

John.

 

George
Top achievements
Rank 1
 answered on 08 Sep 2009
3 answers
124 views
Hello,

From the Telerik documentation, it states that I should be able to add a FilterTemplate to a GridTemplateColumn (and not have to create a custom column.)

However, when I do this, I get the following error:

Error Creating Control -
Sebastian
Telerik team
 answered on 08 Sep 2009
9 answers
172 views
Supports,

I am testing and migrating the asp.net control to telerik asp.net for AJAX control,  i haved testing few controls , eg. RadComboBox and RadTextBox, both got problems with the timing of databinding to behind datatable datasource,e.g.  whenenver data been changed (or edited) inside the control like RadCombox selectedIndexChanged event for example, it wont bind to the behind datatable  immediately, rather when formview.updateitem  been called it will reflected the value in the datatable, which is too late for my usage, as my programming all base on the datatable value changed to response relevant actions. So do as other telerick contols. 
Apprecate is any solutions for that or I miss out some points in somewhere ?   
Simon
Telerik team
 answered on 08 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?