This is a migrated thread and some comments may be shown as answers.

How to add Image button in Date slot

1 Answer 57 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Manish
Top achievements
Rank 2
Manish asked on 22 Aug 2012, 12:48 PM
Hi,

I want to add a image button in Date slot area. How can i add. Please see attachment what i want to do. Please help

Thanks
Manish

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Aug 2012, 01:13 PM
Hi Manish,

Try the following code snippet to achieve your scenario.

CSS:
<style type="text/css">
  .FloatRight
    {
      padding: 5px 0px 5px !important;
      float: right;
    }
</style>

C#:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
    {
        ImageButton btn = new ImageButton();
        btn.ImageUrl = "~/Images/image.jpg";
        btn.CssClass = "FloatRight";
        e.TimeSlot.Control.Controls.AddAt(0, btn);
    }

Hope this helps.

Regards,
Princy.
Tags
Scheduler
Asked by
Manish
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Share this question
or