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

[Solved] Disable 'Edit More'

4 Answers 143 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 2
Joseph asked on 21 Mar 2008, 01:29 PM
I'm trying to disable access to the 'more' link on the inline editor to prevent users from accessing the advanced editor.

So far, I've tried the following with no success:

      .disableEditMore .rsEditOptions a.rsAptEditMore
    {
        left: -4000px;
        visibility: hidden;
    }


Then, in my RadScheduler1_AppointmentDataBound event, I do:

e.Appointment.CssClass = "disableEditMore"

but when I double click on the appointment, I can still see the 'more' option presented.  Am I on the right track?  Is it possible to hide or disable this?

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 21 Mar 2008, 04:02 PM
Hello Joseph,

You are on the right track, but you need greater specificity for your selector. Please, try the following:

.rsAptEditFormWrap .rsAptEdit .rsEditOptions .rsAptEditMore  
    {  
        visibilityhidden 
    } 

Let us know how this works out for you.

All the best,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joseph
Top achievements
Rank 2
answered on 21 Mar 2008, 11:13 PM
Thank you for the reply.  The more specific selector works great, however, this hides the more link on all inline edit controls.  I'd like to be able to set it per appointment, but when I try to add the following to my stylesheet.css:

.disableEditMore.rsAptEditFormWrap .rsAptEdit .rsEditOptions .rsAptEditMore   
    {   
        visibilityhidden;  
    }  

When I do e.Appointment.CssClass = "disableEditMore" in the RadScheduler1_AppointmentDataBound event, the css does not apply.  Am I missing something?
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Mar 2008, 08:31 AM
Hi Joseph,

I think you need a space between the first two class names:

.disableEditMore .rsAptEditFormWrap .rsAptEdit .rsEditOptions .rsAptEditMore 

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Joseph
Top achievements
Rank 2
answered on 02 Apr 2008, 02:29 AM
Aaack!  Missed a space!  Put it in and that did the trick.  Thanks!  Glad I bought your product!
Tags
Scheduler
Asked by
Joseph
Top achievements
Rank 2
Answers by
Peter
Telerik team
Joseph
Top achievements
Rank 2
Atanas Korchev
Telerik team
Share this question
or