'Owner' is not a member of 'Appointment'

7 posts, 1 answers
  1. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 17 Apr 2009 Link to this post

    I'm having trouble using the AdvancedForm.ascx file in our website.  Is there a correct way to copy over and build the file?  I was going through the "Customize the Advanced Template" tutorial and it said something about using "Convert to Web Application".  But that selection does not appear for me.  (BTW, what does that do?)

    So I'm getting the above error whenever I try to build our website and the blue squiggly line under Owner in the code file.  (It's under all the Appointment members, Owner just happens to be the one generating the error)

    Any direction would be greatly appreciated! Thanks
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 20 Apr 2009 Link to this post

    Hello Matt,

    There is a sample project of this example here:
    http://www.telerik.com/support/kb/aspnet-ajax/scheduler/sample-project-of-the-customizing-the-advanced-template-example.aspx

    Probably, downloading it and using it as a starting point will help you get the problem sorted out.


    All the best,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 20 Apr 2009 Link to this post

    I'll play with that tutorial, but I'm not sure that will help.  The sample in the Live Demos folder works fine.  It's just when I try to utilize the AdvancedForm.ascx page in my custom app that I'm getting the errors.  I copied all the files from the /Scheduler/Examples/AdvancedFormTemplate/DefaultTemplates/VB folder to my custom app.  Am I missing a definition/class file or something that also needs to be copied over?
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 20 Apr 2009 Link to this post

    Hello Matt,

    The AdvancedForm user control references other user controls:
    <%@ Register TagPrefix="scheduler" TagName="SchedulerDefaultForm" Src="SchedulerDefaultForm.ascx" %>   
    <%@ Register TagPrefix="scheduler" TagName="CustomAttributeControl" Src="CustomAttributeControl.ascx" %>   
    <%@ Register TagPrefix="scheduler" TagName="ResourceControl" Src="ResourceControl.ascx" %>   
    <%@ Register TagPrefix="scheduler" TagName="MultipleValuesResourceControl" Src="MultipleValuesResourceControl.ascx" %> 
     
    So, it cannot be used independently just by itself. Can you make sure you have inluded the other user conrols as well?

    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 20 Apr 2009 Link to this post

    Thanks for all the input.  So the AdvancedForm.ascx should be registered on my custom app and the other control pages should be registered on the AdvancedForm?  Or do all those pages need to be registered on my custom app page?

    I still think I'm missing something else that needs to be included or registered.  I'm sure I'm missing something simple.  It's still giving me errors like:
    'Owner' is not a member of 'Appointment' (MultipleValuesResourceControl.ascx.vb, line 46)
    'Resources' is not a member of 'Appointment' (MultipleValuesResourceControl.ascx.vb, line 115)
    Value of type 'Telerik.Web.UI.Appointment' cannot be converted to 'Appointment'  (ResourceControl.ascx.vb, line 18)
    ....
    So on and so on...

    It's like the dll isn't registered, but it is because things work when I'm not working with any of the schedule templates.
  7. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 20 Apr 2009 Link to this post

    Hi Matt,

    It seems there is some type called Appointment and the compiler cannot distinguish between that type and Telerik.Web.UI.Appointment. Make sure this is not the case. If it is simply use the fully qualified name "Telerik.Web.UI.Appointment" where needed.

    Regards
    ,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Matt
    Matt avatar
    66 posts
    Member since:
    Apr 2009

    Posted 21 Apr 2009 Link to this post

    The Linq to SQL DataContext named my Appointments table - Appointment within the context.  I changed that to Appointments and everything works great.  Thanks for walking me through that one.  I knew it was going to be something small and stupid.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017