Autofill Scheduler Data

3 posts, 0 answers
  1. siva sankar
    siva sankar avatar
    26 posts
    Member since:
    Mar 2011

    Posted 20 Apr 2012 Link to this post

    I want to autofill scheduler data when we enterd data in a Grid or textboxes means i have  4 textboxes 1.name 2.date 3.amount 4.total amount when i submit this data this data will display in scheduler for that particuler date i.e given in date text box.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 12 Sep 2012 Link to this post

    Hi Siva Sankar,

    Here is the sample code that I tried to achieve your scenario.

    ASPX:
    <asp:TextBox ID="name" runat="server"></asp:TextBox>
    <asp:TextBox ID="amount" runat="server"></asp:TextBox>
    <asp:TextBox ID="total" runat="server"></asp:TextBox>
    <telerik:RadDateTimePicker ID="startdate" runat="server">
    </telerik:RadDateTimePicker>
    <telerik:RadDateTimePicker ID="enddate" runat="server">
    </telerik:RadDateTimePicker>
    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" />

    C#:
    protected void Button1_Click(object sender, EventArgs e)
        {
            Appointment newAppointment = new Appointment();
            newAppointment.Subject = name.Text + amount.Text + total.Text;
            newAppointment.Start = startdate.SelectedDate.Value;
            newAppointment.End = enddate.SelectedDate.Value;
            RadScheduler1.InsertAppointment(newAppointment);
            RadScheduler1.Rebind();
        }

    Hope this helps.

    Regards,
    Princy.
  3. siva sankar
    siva sankar avatar
    26 posts
    Member since:
    Mar 2011

    Posted 14 Sep 2012 Link to this post

    Thank You.
Back to Top