[CLOSED] Add event from directevent in CalendarPanel

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Add event from directevent in CalendarPanel

    Last edited by Baidaly; Oct 08, 2013 at 10:37 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Couldn't reproduce. Do you see any error in the console?
  3. #3
  4. #4
    Try to use Store's Add method:

    cpAgenda.EventStore.Add(emPrueba);
  5. #5
    Quote Originally Posted by Baidaly View Post
    Try to use Store's Add method:

    cpAgenda.EventStore.Add(emPrueba);


    This is not working Baidaly, It is not painting the event.
  6. #6
    Try the following:

    protected void cpAgenda_DayClick(object sender, DirectEventArgs e)
    {
    	DateTime dt = new DateTime(2013, 10, 07, 1, 0, 0);
    	EventModel emPrueba = new EventModel();
    	emPrueba.EventId = 1001;
    	emPrueba.Title = "Titulo prueba";
    	emPrueba.StartDate = dt;
    	emPrueba.EndDate = dt.AddHours(2);
    	emPrueba.Notes = "Esto es una prueba de notas";
    	emPrueba.CalendarId = 1;
    
    	cpAgenda.EventStore.Add(emPrueba);
    	cpAgenda.EventStore.DataBind();
    }
  7. #7
    I think you should apply some CalendarId.
    emPrueba.CalendarId = 1;

Similar Threads

  1. [CLOSED] Add Event in a EventStore in a CalendarPanel
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 14, 2012, 12:29 PM
  2. Replies: 1
    Last Post: May 02, 2012, 2:40 PM
  3. CalendarPanel + Color for event
    By Ch3wbi in forum 1.x Help
    Replies: 4
    Last Post: Jan 05, 2012, 1:08 PM
  4. CalendarPanel and Event
    By gidi in forum 1.x Help
    Replies: 0
    Last Post: Aug 06, 2011, 8:17 PM
  5. Replies: 2
    Last Post: Jun 16, 2011, 1:41 AM

Tags for this Thread

Posting Permissions