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

preventing client appointment resize

9 Answers 352 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ewart
Top achievements
Rank 1
ewart asked on 09 Apr 2008, 10:36 PM
Hi, this is embarrasing but I can't seem to find a property to disable the client resizing the appointments.  Moving, adding and editing is OK but clients are not allowed to change the length of the appointment. 

I can prevent the event with OnClientAppointmentResizeStart(), but it makes no sense to have the option there and then cancel it, thats just confusing UI design - I want to remove the resize iconography period.   (which presumably means slighly less JS is generated too).

regards
ewart

9 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 Apr 2008, 12:41 PM
Hello Ewart,

You can hide the resizing bar with the following css selector:

.rsAptWrap .rsAptResize  
    {  
        visibilityhidden;  
    } 



Kind regards,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ewart
Top achievements
Rank 1
answered on 13 Apr 2008, 11:59 PM
Thanks Peter the css change works nicely.  A property for the same might be a nice feature at some point, for those of us without your css talents :)

cheers
0
Peter
Telerik team
answered on 14 Apr 2008, 03:00 PM
Hello Ewart,

Thanks for the suggestion. We may create a KB to include this case and a few other - we just need to think of what would be most useful to show.

Greetings,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
bad nick
Top achievements
Rank 1
answered on 17 Mar 2010, 12:47 PM
Hi, I was also looking for same property (e.g. AllowResize) and got here. The above css did not work , but this did:

    .rsAptResize   
    {   
        visibilityhidden;   
    }  

possibly, because I am using an <AppointmentTemplate>

Regards,
Rus
0
Vasssek
Top achievements
Rank 1
answered on 17 Dec 2016, 08:16 PM

Hello,

I need an advice. How to hide a resize bar programmatically ? I tried it as :

.hideAllowResizeApt.rsAptResize {
visibility: hidden;
}

And from server side I tried to assign custom class:

protected void RadScheduler1_Load(object sender, EventArgs e)
{
            RadScheduler1.AddCssClass("hideAllowResizeApt");
}

But it didn't apply.

Please help me to solve this issue

Thank you

Best regards

Vassek

0
Bozhidar
Telerik team
answered on 21 Dec 2016, 09:03 AM
Hello,

The styles defined in such a way search for an element with both classes. You need to find an element with rsAptResize class inside​ an element with â€‹hideAllowResizeApt​ class. Change the style declaration to the following and it should work as expected:
.hideAllowResizeApt .rsAptResize {
    visibility: hidden;
}


Regards,
Bozhidar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 25 Dec 2016, 11:27 AM

OK, that's clear. The question is, how to assign this class only to current appointment based on some condition from server side. It should be as appointment, maybe in server event OnAppointmentsPopulating ?

Thank you

Best regards

Vasssek

0
Bozhidar
Telerik team
answered on 26 Dec 2016, 08:08 AM
Hello,

The AppointmentCreated event is what you need:
http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/server-side-programming/server-events/appointmentcreated

Regards,
Bozhidar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Vasssek
Top achievements
Rank 1
answered on 26 Dec 2016, 10:16 AM

Hello,

thank you, it worked as you suggest, but I did it in RadScheduler1_AppointmentDataBound event. CSS style is here:

.hideAllowResizeApt > span.rsAptResize {
visibility: hidden;
}

Hope it helps somebody :-)

Tags
Scheduler
Asked by
ewart
Top achievements
Rank 1
Answers by
Peter
Telerik team
ewart
Top achievements
Rank 1
bad nick
Top achievements
Rank 1
Vasssek
Top achievements
Rank 1
Bozhidar
Telerik team
Share this question
or