Hi,
I have a scheduler and i am adding dynamic Image button in every slot but i need to remove that image button from some slots in which i have data. so please tell me some solution.
I am adding Image button by this:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
ImageButton btn = new ImageButton();
btn.ImageUrl = "~/Images/Add.png";
btn.CssClass = "FloatRight";
e.TimeSlot.Control.Controls.AddAt(0, btn);
btn.CommandName = "btn";
btn.CommandArgument = e.TimeSlot.Start.Date.ToString();
btn.Command += new CommandEventHandler(GoToUnitNumber);
}
Please check the attachment
I have a scheduler and i am adding dynamic Image button in every slot but i need to remove that image button from some slots in which i have data. so please tell me some solution.
I am adding Image button by this:
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
ImageButton btn = new ImageButton();
btn.ImageUrl = "~/Images/Add.png";
btn.CssClass = "FloatRight";
e.TimeSlot.Control.Controls.AddAt(0, btn);
btn.CommandName = "btn";
btn.CommandArgument = e.TimeSlot.Start.Date.ToString();
btn.Command += new CommandEventHandler(GoToUnitNumber);
}
Please check the attachment