Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
234 views

I have built a scheduler with the telerik controls and everything went alright. But now I want to display appointments with recurrence. I'm able to add an appointment and add recurrence (save to database and databind ok). When I open my saved appointment the scheduler asks me to edit the series or just the current instance (all ok). When I open my appointment i can see that the recurrence is saved alright.

Now my problem has to do with the view of a recurring appointment. The appointment is only displayed on the day that it is created and not on the other(following) days. Now when the day begins it display all the appointments for that day (recurring. Like yesterday added). How can I let them display as long as they are recurring?

Example:
-> add appointment on (25/11).
-> Set recurring to every day
->I only see the appointment on 25/11 and not on 26/11,27/11,28/11,29/11, ...
-> When it gets to 26/11 (the day after) I’m able to see the appointment that I created on 25/11 but I don't see it on 25/11,27/11,28/11,29/11

it's get well stored and it databinds ok (checked with debugging). I can also change the recurring without any problem. I just want to now why it only displays on the today page and not on any other days

View: file

        <script type="text/javascript">  
            var selectedAppointment = null;  
     
       
                //Called when the user right-clicks an appointment  
            function appointmentContextMenu(sender, eventArgs) {  
                var menu = $find("<%= SchedulerAppointmentContextMenu.ClientID %>");  
                selectedAppointment = eventArgs.get_appointment();  
    
                // menu.show(eventArgs.get_domEvent());  
            }  
 
                //Called when the user clicks an item from the appointment context menu  
            function appointmentContextMenuItemClicked(sender, eventArgs) {  
                if (!selectedAppointment)  
                    return;  
 
                var clickedItem = eventArgs.get_item();  
                var scheduler = $find("<%= RadScheduler1.ClientID %>");  
 
                if (clickedItem.get_parent().get_text) {  
                    //The user clicked the item corresponding to the "Calendar" resource to which the appointment is assigned  
                    if (clickedItem.get_imageUrl())  
                        return;  
 
                    //Clear all resources  
                    selectedAppointment.get_resources().clear();  
                    //Find the resource corresponding to the clicked item  
                    var calendar = scheduler.get_resources().getResourceByTypeAndKey("Calendar", clickedItem.get_value());  
                    //Add it to the appointment resources collection  
                    selectedAppointment.get_resources().add(calendar);  
                    //Update the appointment  
                    scheduler.updateAppointment(selectedAppointment);  
                }  
            }      
              
            function Export(sender, e)  
            {  
                $find("<%= RadAjaxManager1.ClientID %>").__doPostBack(sender.name, "");  
            }              
        </script> 
    </telerik:RadScriptBlock> 
          
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadScheduler1">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
      
 
        <telerik:RadScheduler runat="server" style="z-index:1000" ID="RadScheduler1" SelectedDate="2009-06-04" FirstDayOfWeek="Monday" 
            LastDayOfWeek="Sunday" OnClientAppointmentContextMenu="appointmentContextMenu" 
            DataKeyField="ID" DataSubjectField="Subject" Height="375px" 
            DataStartField="Start" DataEndField="End" DataRecurrenceField="RecurrenceRule" 
            DataRecurrenceParentKeyField="RecurrenceParentID" AllowDelete="false" 
            OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked" 
           Skin="Default" StartInsertingInAdvancedForm="True" ShowFullTime="True" EditFormTimeFormat="HH:mm" HoursPanelTimeFormat="HH:mm" MinimumInlineFormHeight="35" DataDescriptionField="Description" EnableDescriptionField="True" CustomAttributeNames="FileType,DownloadLink,Owner" DayEndTime="1.00:00:00" DayStartTime="00:00:00" WorkDayEndTime="00:00:00" WorkDayStartTime="00:00:00" Culture="(Default)">  
                <AppointmentTemplate> 
                   <u><font size="large"><%#Eval("FileType")%>:</font></u>&nbsp;&nbsp;&nbsp;<b><%# Eval("Subject") %></b><%#Eval("DownloadLink")%> 
                    <div style="text-align: right;"><asp:Button runat="server" ID="btnExport" CssClass="rsExportButton" ToolTip="Export to iCalendar" Style="cursor: pointer;cursor: hand;" CommandName="Export" OnClientClick="Export(this, event); return false;" /></div>  
                    <div>&nbsp;&nbsp;&nbsp;<%# Eval("Description") %></div>  
                </AppointmentTemplate> 
                  
                <AppointmentContextMenus> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">  
                        <Items>                          
                            <telerik:RadMenuItem Text="Open" Value="CommandEdit" runat="server" /> 
                            <telerik:RadMenuItem IsSeparator="True" runat="server" /> 
                            <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="~/Images/delete.gif" runat="server" /> 
                        </Items> 
                    </telerik:RadSchedulerContextMenu> 
                </AppointmentContextMenus> 
                <TimeSlotContextMenus> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerTimeSlotContextMenu">  
                        <Items> 
                            <telerik:RadMenuItem Text="New Appointment" ImageUrl="~/Images/calendar.png" Value="CommandAddAppointment" runat="server" /> 
                        </Items> 
                    </telerik:RadSchedulerContextMenu>   
                </TimeSlotContextMenus>     
            <AdvancedForm TimeFormat="HH:mm" />         
            <MultiDayView DayEndTime="10:00:00" DayStartTime="00:00:00" /> 
            <DayView DayEndTime="1.00:00:00" DayStartTime="00:00:00" /> 
       </telerik:RadScheduler> 
 
T. Tsonev
Telerik team
 answered on 05 Jul 2010
3 answers
100 views
Hi
This code in the page load and I am not control page postback.
 
.......  
RadGrid1.Columns.Clear();  
RadGrid1.MasterTableView.Columns.Clear();  
RadGrid1.AutoGenerateColumns = false;  
 
GridBoundColumn boundColumn;  
for (int i = 0; i < dt.Columns.Count; i++)  
{  
if (Request.QueryString["calc"].ToString().Contains(dt.Columns[i].ColumnName.ToString()))  
{  
    boundColumn = new GridBoundColumn();  
    boundColumn.DataField = dt.Columns[i].ColumnName.ToString();  
    boundColumn.HeaderText = dt.Columns[i].ColumnName.ToString();  
    boundColumn.Groupable = true;  
    boundColumn.UniqueName = dt.Columns[i].ColumnName.ToString();  
 
    string[] sumColums = Request.QueryString["calc"].ToString().Split('-');  
 
    for (int a = 0; a < sumColums.Length; a++)  
    {  
        if (sumColums[a].Contains(dt.Columns[i].ColumnName.ToString()))  
        {  
            string[] colFormat = sumColums[a].Split(',');  
            boundColumn.FooterAggregateFormatString = colFormat[1].ToString();  
 
            if (colFormat[2].ToString() == "sum")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Sum;  
            }  
            else if (colFormat[2].ToString() == "count")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Count;  
            }  
            else if (colFormat[2].ToString() == "avg")  
            {  
                boundColumn.Aggregate = GridAggregateFunction.Avg;  
            }  
        }  
    }  
 
    RadGrid1.MasterTableView.Columns.Add(boundColumn);  
}  
 
.... 

So my problem is, when I filter a columns is ok, but when I filter other columns, my before filter values gone. I miss my before filter values. My question, how can I set again before filter columns values?

Hashtable hsFiltering = new Hashtable();  
for (int i = 0; i < RadGrid1.Columns.Count; i++)  
{  
    hsFiltering[RadGrid1.Columns[i].HeaderText] = RadGrid1.Columns[i].CurrentFilterValue;  
} 
I get before filter values via this code, but I can not bind filter value again after postback.

Thank you.

Pavlina
Telerik team
 answered on 05 Jul 2010
1 answer
102 views
Hi,

My RadRotator suddendly stopped displaying with Internet Explorer on 3 differents sites located on the same server. Everything seems fine with all the other browsers. I did not make any change in the code and I've ask my server manager, and no change or update has been made.

If you can, at least, give me some direction where I can start looking for the solution, I would really appreciate it.

Thx!

Jeff

Fiko
Telerik team
 answered on 05 Jul 2010
3 answers
136 views
Hi,

I tried setting-up the RadScheduler for an ASP.Net MVC website using the sample provided by the Telerik team in the following thread:


...and most features seem to work as expected except for tracking the availability of resources (http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx). For some reason, the date in the header shows in week range format (e.g. 3/25/2007 - 3/31/2007) and not in day format (e.g. Friday, March 30, 2007). Also, when I click on the next/previous buttons in the scheduler header, it is advanced a full week and not a day.

I've tried updating to the latest version of the "Telerik.Web.UI" assembly and still no luck.

Any clues as to what could be causing this?

BTW, you can test this by taking the sample provided in the thread above and adding a "GroupBy" for one of the available resources.
Peter
Telerik team
 answered on 05 Jul 2010
1 answer
122 views
I am trying to replace the background-image in a modal AdvancedEdit form
I have tried adjusting the following styles with no results:
..RadScheduler_Outlook .rsAdvTitle, RadScheduler_Outlook .rsAdvInnerTitle, RadScheduler_Outlook .rsAdvancedEdit, RadScheduler .rsAdvTitle, RadScheduler .rsAdvInnerTitle, RadScheduler .rsAdvancedEdit
        {
            background-image: url('gradient.png') !important;
            background-position: 0 0 important;
        }
       
Nothing seems to have any impact on that bar - I've tried it with/without skin, same results.
Kamen Bundev
Telerik team
 answered on 05 Jul 2010
1 answer
98 views
I have a problem with a RADTimePicker, when I click the icon 'open time view popup'  the popup menu has no styling, I get a list of times displayed, but the background is transparent

<telerik:RadTimePicker ID="RadTimePicker1" runat="server" Skin="Sunset" 
            Culture="English (United Kingdom)">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" runat="server"></Calendar>

<TimeView CellSpacing="-1" Culture="English (United Kingdom)" BorderStyle="Solid" runat="server"></TimeView>

<TimePopupButton CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton>

<DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton>

<DateInput Width="" LabelCssClass="" runat="server"></DateInput>
        </telerik:RadTimePicker>
Dimo
Telerik team
 answered on 05 Jul 2010
0 answers
1.0K+ views

Error Code:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 5 Jul 2010 07:18:22 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: An error occurred while updating the entries. See the InnerException for details.
Line: 6
Char: 62099
Code: 0
URI: http://localhost/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.1.519.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3ade159df8-0f5c-4359-b83b-7527ae5c79c0%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3a1e771326%3aa7e79140%3a4cacbc31%3ab7778d6c%3aaa288e2d%3a8674cba1%3ac08e9f8a%3aa51ee93e%3a59462f1%3a58366029

 

tiger_ybz
Top achievements
Rank 1
 asked on 05 Jul 2010
1 answer
113 views


hi,
   I am using Rad panelbar , i added this panelbar to master page. we i click on any menu of panelbar,it display me it's contains. my panelbar is on left hand side of page. in right hand side i put my content place holder.
 now for example 
panelmenu contains 2 menu other r sub menu under menu.
Home  
     aaa
    bbb
Search 
    CCC
     ddd

when i click on aaa then it's data should display below i.e in panelbar only (--it's work)
on same time i want to navigate other page
i.e i click on aaa
then it show data of aaa in panelbar(i bind data in grid)
& same time it should goes to default.aspx

how can i handle both things in one click?


Shinu
Top achievements
Rank 2
 answered on 05 Jul 2010
1 answer
81 views

We have a grid with More than 11,000 records.

Initially, some times  the records is loading and some times no.

But even when it's loading , each event  that happened brigns JS error and not giving what that ask.

No paging no filtering and no Hierarchy.

Attached images: file of the grid and file of the   error.

Thank you!

Yavor
Telerik team
 answered on 05 Jul 2010
1 answer
136 views
Based on documentation and samples, I added the following to my web.config in the appSettings section
<add key="Telerik.ScriptManager.TelerikCdn" value="Enabled"/>
        <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled"/>
    <add key="EnableEmbeddedSkins" value="false"/>

The EnableEmbeddedSkins setting seems to have no effect as for each control I'm still having to set this attribute to use a custom skin.
Did I miss something maybe?





Lini
Telerik team
 answered on 05 Jul 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?