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

WebService Binding problem with ReadOnly setting

6 Answers 55 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 07 Feb 2012, 11:09 AM
Hi,

I have set the scheduler ReadOnly property to true and use WebService binding, the appointments are still rendered as editable. When I use normal binding the appointments are rendered as ReadOnly.

Please let me know what I am missing in this.

6 Answers, 1 is accepted

Sort by
0
Pooja
Top achievements
Rank 1
answered on 08 Feb 2012, 01:49 AM
I tried AllowInsert, AllowDelete and AllowEdit as well, AllowDelete is working, but AllowInsert and AllowEdit is not working. On appointment it shows me resize icon but when I try to resize appointment, it does not resizes. Similarly in Day and week view a small gap comes at the right of the appointment but I could not insert any appointment.

Also I had applied some CSS for weekends it does not seems to get applied in day and week view.

Month View is the only view which is working as per expectation.
0
Plamen
Telerik team
answered on 09 Feb 2012, 06:28 PM
Hello Pooja,

 
You can add the following css to achieve the same functionality:

.rsAptResize
        {
       display:none !important;
        
       }
.rsApt
          {
       width:100%  !important;
       }

Hope this will be helpful.

All the best,
Plamen Zdravkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Pooja
Top achievements
Rank 1
answered on 10 Feb 2012, 12:55 AM
Thanks, but this will solve one part of my problem.another part still remains open

Also I had applied some CSS for weekends(Saturday, Sunday) it does not seems to get applied in day and week view.
Month View is the only view which is working as per expectation. 


Please let me know if this is achievable.
0
Pooja
Top achievements
Rank 1
answered on 10 Feb 2012, 01:30 AM
Also, whereas rsAptResize change worked, 
.rsApt
          {
       width:100%  !important;
       }
did not worked, actually it is applying some inline style where width is set to 90%.
This inline setting is overriding my .rsApt setting.
see the rendered html
<div title="" class="rsApt" id="1611424344" style="left: 0%; width: 90%; height: 16px;">

This is an urgent matter, and a quick response is highly appreciated!!!

0
Pooja
Top achievements
Rank 1
answered on 11 Feb 2012, 07:20 AM
I found out the issue with my css change with .rsApt, I was not applying the "important" attribute to the css. Now the appointment are showing as 100% width, but suppose if I have 2 or more appointments in same slot, both of the appointment is taking 100% of the width which is not the required behavior.

So my problem is :
1. How can I occupy full width of the slot
2. How can I show Sunday and Monday slots in different color.
0
Plamen
Telerik team
answered on 14 Feb 2012, 04:41 PM
Hi Pooja,

 
1. I have inspected the issue and it seems to be a bug in RadScheduler. thank you for reporting it. We will notify you in this thread as soon as it is fixed.

2. You can change the css of different slots depending on its start time as in the code bellow:

function OnClientDataBound(sender) {
          sender.set_allowInsert(false);
          var $ = $telerik.$;
 
          var now = new Date();
 
          $(".rsAllDayTable:visible td", sender.get_element()).each(function (i) {
 
              var currentTimeSlot = sender.get_activeModel().getTimeSlotFromDomElement($(this).get(0));
 
              $(this).css("background", " ");
 
              if (currentTimeSlot.get_startTime() < now)
 
                  $(this).css("background", "silver");
 
          });
 
          $(".rsContentTable:visible td", sender.get_element()).each(function (i) {
 
              var currentTimeSlot = sender.get_activeModel().getTimeSlotFromDomElement($(this).get(0));
 
              $(this).css("background", " ");
 
              if (currentTimeSlot.get_startTime() < now)
 
                  $(this).css("background", "silver");
 
          });
 
      }

Hope this will be helpful.

Regards,
Plamen Zdravkov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Scheduler
Asked by
Pooja
Top achievements
Rank 1
Answers by
Pooja
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or