Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
141 views
Hi,

I have been working around with the scheduler and now I have somehow provoked the error underneith.
To provoke the error I drag-resize an appointment in week or day view. The Update method in my custom SchedulerProvider is run without a problem and after that the page just displays the error.

Any Idea what I am doing wrong to make it fail in the Telerik.Web.UI.AppointmentControl.Initialize() method?

 

Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.AppointmentControl.Initialize() +17
   Telerik.Web.UI.DayViewAppointmentControl..ctor(Appointment appointment, DateTime visibleStart, DateTime visibleEnd, Int32 minutesPerRow) +255
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateAppointmentControls(Control container, SchedulerTimeSlot slot) +213
   Telerik.Web.UI.Scheduler.Views.RowBuilder.CreateDayViewCell(SchedulerTimeSlot slot, Int32 zIndex) +84
   Telerik.Web.UI.Scheduler.Views.RowBuilder..ctor(IList`1 slotList, Int32 maxColumnWidth) +494
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateViewRows(IList`1 slotLists) +151
   Telerik.Web.UI.Scheduler.Views.Week.RendererBase.CreateInnerContentTable(Control container, IList`1 slotLists) +88
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetInnerContent() +131
   Telerik.Web.UI.Scheduler.Views.Week.Renderer.GetContent() +82
   Telerik.Web.UI.RadScheduler.CreateContent() +121
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +106
   Telerik.Web.UI.RadScheduler.ClearChildControls() +67
   Telerik.Web.UI.RadScheduler.Rebind() +13
   Telerik.Web.UI.RadScheduler.FinishResize(Appointment originalAppointment, Appointment modifiedAppointment) +124
   Telerik.Web.UI.RadScheduler.ResizeAppointment(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +203
   Telerik.Web.UI.RadScheduler.Telerik.Web.UI.IScheduler.HandleResize(Appointment appointmentToResize, DateTime appointmentEnd, Boolean editSeries) +27
   Telerik.Web.UI.Scheduler.Views.Week.Model.HandleResize(Appointment appointment, ISchedulerTimeSlot sourceSlot, ISchedulerTimeSlot targetSlot, Boolean editSeries) +196
   Telerik.Web.UI.Scheduler.Views.Week.ModelBase.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +306
   Telerik.Web.UI.RadScheduler.ProcessPostBackCommand(SchedulerPostBackEvent postBack) +3006
   Telerik.Web.UI.RadScheduler.RaisePostBackEvent(String eventArgument) +62
   Telerik.Web.UI.RadScheduler.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) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Peter
Telerik team
 answered on 10 Aug 2009
1 answer
144 views
Quick question.

What are the defaults for OutputCompression, EnableScriptCombine and EnableStyleSheetCombine for these controls and how does debug=false in the config affect the default if at all?

Thanks
Matt
Veselin Vasilev
Telerik team
 answered on 10 Aug 2009
4 answers
279 views
I have a RadGrid that has two columns that are invisible to begin with.
When I click a button outside the Grid I want the columns to become visible.
I know that there is a property in the grid (e.g. this.RadGrid1.Columns[0].Visible = true;), but the columns still won't show after setting them to visible in the button click event.
The interesting thing is that if I click the "Refresh" button within the Grid after having clicked the external button the columns show up.
I tried this.RadGrid1.Rebind(), but that doesn't do it either. It seems like only the "Refresh" in the Grid itself makes the columns visible.

How do I get the columns to become visible on the button click outside the grid?

This has got to be something fairly obvious, but I just don't see it.

Any help is appreciated.
Stephan
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
121 views
I have run into an issue with the timeline view. I set the properties as follows.

<TimelineView 
  ColumnHeaderDateFormat="hh:mm"  
  GroupingDirection="Vertical" 
  HeaderDateFormat="hh:mm" 
  NumberOfSlots="33" 
  SlotDuration="01:00:00" 
  StartTime="08:00:00" 
/> 

When I open the Advance Form from one of the empty time slots, it sets the appointment to all day. Does anyone know a way around this? I have tried this using both versions 2008.3.1314.35 and 2009.2.701.35.
Peter
Telerik team
 answered on 10 Aug 2009
19 answers
240 views
About two months ago I was told RTL is not officialy supported. Do you support it now officialy ?

Oren
Tervel
Telerik team
 answered on 10 Aug 2009
4 answers
153 views
Hello!

I was just wondering why I get a "Deleting a recurring appointment"-box when I use the little X-icon for deleting the recurring appointment in Scheduler / RadScheduler Context Menu , but not when I delete the appointment through the contextmenu? Would it be possible to also display this messagebox?

Thanks in advance,

Bart
Peter
Telerik team
 answered on 10 Aug 2009
2 answers
162 views
Hello guys, i'm pretty new to ASP and telerik's controls.
I have a RagGrid control, that's contains table with data.
When pressing on entity expand's my nested view with 2 tabs, like in "Hierarchy with Templates" demo.
So, i need to establish relation between selected row in MasterTable and my tabs in nestedView.

...  
<MasterTableView DataSourceID="NewsDataSource" DataKeyNames="ID" ...> 
      <NestedViewTemplate> 
             <ParentTableRelation> 
                    <telerik:GridRelationFields DetailKeyField="Author_ID" MasterKeyField="Author_ID" /> 
             </ParentTableRelation> 
                    <asp:Panel runat="server" ID="InnerContainer" ...> 
                        <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">  
                            <Tabs> 
                                <telerik:RadTab runat="server" Text="Author Information" PageViewID="PageView2">  
                                </telerik:RadTab> 
                           ...  
                            </Tabs> 
                        </telerik:RadTabStrip> 
                        <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">  
                           <telerik:RadPageView runat="server" ID="PageView2" Width="460px">  
                           <asp:DetailsView   
                                        ID="DetailsView1" AllowPaging="True" GridLines="None" Width="100%" 
                                        DataSourceID="NestedAuthorInfoDataSOurce" runat="server" DataKeyNames="ID">  
                                        <Fields> 
                         Some fields there  
                                        </Fields> 
                           </asp:DetailsView> 
                                    <asp:LinqDataSource ID="NestedAuthorInfoDataSOurce"   
                                        runat="server" ContextTypeName="NewsApp.NewsDataClassesDataContext"   
                                        TableName="authors">  
                                        Where="ID == @Author_ID">  
                                           <WhereParameters> 
                                                   <asp:Parameter Name="Author_ID"  Type="Int32" /> 
                                           </WhereParameters> 
                                    </asp:LinqDataSource> 
                          </telerik:RadPageView> 
                       </telerik:RadMultiPage>
        </NestedViewTemplate>
 MasterViewColumns, MasterviewDatasource, etc...
As i assume ParentTableRelation maps selected Author_ID field from MasterView to NastedView, so i can use Where as shown above.
But i got System.Web.Query.Dynamic.ParseException: Operator "==" incomplete with types "Int32" and "Object" (sound like this, i got this exception on my native language).
Author_ID in news table and ID in author table are both integer and not allows null.
SD R34
Top achievements
Rank 1
 answered on 10 Aug 2009
1 answer
99 views
I want to extend it to allow the user to save templates.  I've seen the example on how to save a template, but I'd like to be able to utilize the same UI for loading/saving templates.
Rumen
Telerik team
 answered on 10 Aug 2009
6 answers
1.0K+ views
What is the best method and/or do you have an example of how to send values from the Radwindow to the Parent on close of the radwindow?

Thanks

Randy
Georgi Tunev
Telerik team
 answered on 10 Aug 2009
9 answers
198 views

Greetings,

I'm trying to set the height of the bottom toolbar so that it is only the thickness of the default buttons at the bottom.  Something like this:
___________________
Design  HTML  Preview 
___________________

However, even when there are no modules declared and the Module Manager button is removed from the editor, I still get something like this:
______________________________________________________________
Design  HTML  Preview 




_______________________________________________________________

 What can be done to correct this??

 Thanks!

Rumen
Telerik team
 answered on 10 Aug 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?