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

[Solved] Hide specific resource from editing

1 Answer 125 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Feb 2008, 01:42 PM
When users open the advanced edit form on an appt, how can I hide one of the items from the resources collection?  I have three resources, but I only want them to be able to edit two of them.

Thanks
Mark

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 12 Feb 2008, 03:29 PM
Hi Mark,

Suppose you have a resource with Name="Rooms". To hide this resource in the advanced form, please use the following code:
protected void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)  
{  
 
    //Hides the label with text "Rooms:"  
    Control roomsLabelControl = (Control)e.Container.FindControl("LblRooms");  
    roomsLabelControl.Visible = false;  
 
    //Hides the dropdown with the options  
    Control roomsSelectControl = (Control)e.Container.FindControl("Rooms");  
    roomsSelectControl.Visible = false;  
 
}  
 

Should you have any other questions, please feel free to ask us.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Mark
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or