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

[Solved] Blocking..

1 Answer 120 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Nagesh Mynedi
Top achievements
Rank 1
Nagesh Mynedi asked on 29 Jan 2010, 10:38 AM
iam taking radscheduler and radgrid. i have the  linkbutton  in the  appointment..when i click the linkbutton  how can i block remaning appointments..

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Jan 2010, 11:23 AM
Hello Nagesh,

I am not completely understood your requirement. I guess you want to hide all the other appointments when clicking the LinkButton. If so you can try teh following code snippet in the Click event of the LinkButton.

Code Behind:
 
    protected void LinkButton1_Click(object sender, EventArgs e) 
    { 
        foreach (Appointment app in RadScheduler1.Appointments) 
        { 
            LinkButton lnkButton = (LinkButton)sender; 
            Appointment appClicked = (Appointment)((Telerik.Web.UI.SchedulerAppointmentContainer)(lnkButton.Parent)).Appointment; 
            if (app != appClicked) 
            { 
                app.CssClass = "Myclass"
            } 
        } 
    } 

And here is the CSS:
 
    <style type="text/css"
        .MyClass 
        { 
            displaynone
        }      
    </style> 

Thanks,
Princy.
Tags
Scheduler
Asked by
Nagesh Mynedi
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or