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

[Solved] formClosed?

1 Answer 101 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sf
Top achievements
Rank 1
sf asked on 31 Aug 2009, 06:17 AM
I make a linkbutton visible when appointment form is created:


protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) 
        { 
LinkButton1.visible = true

I want to hide the LinkButton1 when the insert or update is finished and RadScheduler1 returns to calendar view. is this possible? thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 31 Aug 2009, 07:32 AM
Hello,

Try the following approach by declaring a global variable to check the visibility status of Label and show/hide the Label based on the value.

ASPX:
 
<telerik:RadScheduler ID="RadScheduler1" runat="server"  DataSourceID="SqlDataSource2" DataStartField="Start" DataSubjectField="Subject" 
    OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" > 
</telerik:RadScheduler> 

C#:
 
bool check = true
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) 
    if (check) 
    { 
        Label1.Visible= true
    } 
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e) 
    check = false
    Label1.Visible= false
protected void RadScheduler1_AppointmentUpdate(object sender, AppointmentUpdateEventArgs e) 
    check = false
    Label1.Visible = false

-Shinu.
Tags
Scheduler
Asked by
sf
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or