[CLOSED] CalendarPanel Razor MVC3

  1. #1

    [CLOSED] CalendarPanel Razor MVC3

    Hi,

    I tried to initialized a CalendarPanel like this

    @Html.X().CalendarPanel();
    But the CalendarPanel is not defined. Could someone please look into this? Thanks.
    Last edited by Daniil; May 04, 2012 at 9:49 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. We have added it in SVN, revision #3974.
  3. #3
    I am still not able to set the "Calendars" of a CalendarStore. Could you look into this? Thanks.
  4. #4
    Thanks for the report. Fixed in SVN, revision #3975.

    Here is the example.

    Example
    <!DOCTYPE html>
    <html>
    <head>
        <title>Ext.NET Razor Example</title>    
    </head>
    <body>    
        @Html.X().ResourceManager()
    
        @(Html.X().CalendarPanel()
            .Width(800)
            .Height(800)
            .EventStore(Html.X().EventStore()
                .Events(events =>
                {
                    events.Add(new EventModel()
                        {
                            EventId = 1,
                            Title = "Test Event 1",
                            StartDate = DateTime.Now,
                            EndDate = DateTime.Now.AddDays(1),
                            CalendarId = 1
                        });
    
                    events.Add(new EventModel()
                        {
                            EventId = 2,
                            Title = "Test Event 2",
                            StartDate = DateTime.Now.AddDays(4),
                            EndDate = DateTime.Now.AddDays(5),
                            CalendarId = 2
                        });
    
                })
            )
            .CalendarStore(Html.X().CalendarStore()
                .Calendars(c =>
                {
                    c.Add(new CalendarModel()
                        {
                            CalendarId = 1,
                            Title = "Calendar 1"
                        });
                    
                    c.Add(new CalendarModel()
                        {
                            CalendarId = 2,
                            Title = "Calendar 2"
                        });
                })
            )
        )
    </body>
    </html>
  5. #5
    Thank you so much. The example provide is working great, but MonthView of CalendarPanel, NoMapping of EventStore, and Mappings of EventStore are still undefined in Razor ViewEngine. Please look into it.
  6. #6
    Thanks again for the report, fixed in revision #3978.

    There might be some missed properties more, please report if you will find any.

Similar Threads

  1. Replies: 1
    Last Post: Jul 02, 2012, 6:19 PM
  2. MVC3 Razor: Desktop button is not working
    By nahuel2203 in forum 2.x Help
    Replies: 0
    Last Post: Jun 24, 2012, 3:02 AM
  3. Ajax Problem - MVC3 RAZOR
    By chrono in forum 2.x Help
    Replies: 2
    Last Post: Jun 04, 2012, 10:49 PM
  4. [CLOSED] full MVC3 razor engine example, and what the symbol => for
    By farisqadadeh in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 05, 2012, 2:28 PM
  5. Ext.Net with MVC3(Razor)
    By abanikumar in forum 1.x Help
    Replies: 4
    Last Post: Jan 16, 2012, 9:55 AM

Tags for this Thread

Posting Permissions