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
You can hide the resizing bar with the following css selector:
.rsAptWrap .rsAptResize |
{ |
visibility: hidden; |
} |
Kind regards,
Peter
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
cheers
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
.rsAptResize |
{ |
visibility: hidden; |
} |
possibly, because I am using an <AppointmentTemplate>
Regards,
Rus
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
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
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
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
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 :-)