AllowDelete=false does not work

22 posts, 0 answers
  1. Chris Poirier
    Chris Poirier avatar
    10 posts
    Member since:
    Mar 2007

    Posted 20 Sep 2011 Link to this post

    I recently updated to 2011.2.915, and the update has caused RadScheduler.AllowDelete=false to break. The delete icons are showing when I hover over events. I have tried setting the property on both the scheduler and the individual events, but in both cases, the delete icon still appears.

    If you need a workaround, add the following to your CSS:

    .rsAptDelete
    {
        display: none !important;
    }

  2. MFitzpatrick
    MFitzpatrick avatar
    24 posts
    Member since:
    Jul 2010

    Posted 21 Sep 2011 Link to this post

    I also have encountered this issue. I would prefer the button to not display if allowdelete is false.

  3. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 21 Sep 2011 Link to this post

    Hello Chris,

    We inspected the issue with Allodiality and succeeded to fix it. It should be working fine in the next build. Thank you for reporting that.


    All the best, Plamen Zdravkov
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  4. Jayesh Goyani
    Jayesh Goyani avatar
    2646 posts
    Member since:
    May 2010

    Posted 23 Sep 2011 Link to this post

    Hello,


     protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            if (e.Appointment.Subject == "Your compared text")
            {
                e.Appointment.AllowDelete = false;
            }
        }

    let me know if any concern.


    Thanks,
    Jayesh Goyani

  5. tony
    tony avatar
    13 posts
    Member since:
    Jun 2011

    Posted 29 Sep 2011 Link to this post

    How about java script event?
    function appointment_DataBound(sender, eventArgs)
    {
    }
    sender._allowDelete= false and eventArgs._appointment.set_allowDelete = false does not work as well. The image button still showing and after click, the popup confirm still happened.

  6. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 04 Oct 2011 Link to this post

    Hello Tony,

    I've tested both expressions with the 2011.3.927.40 version of the controls and everything is working as expected on my side:

    function OnClientAppointmentDataBound(sender, args) {
                //sender._allowDelete = false;
                 args._appointment.set_allowDelete(false);  
                
            }

    Please try to upgrade if possible and let me know if the problem persists.

    Regards,
    Plamen Zdravkov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  7. tony
    tony avatar
    13 posts
    Member since:
    Jun 2011

    Posted 04 Oct 2011 Link to this post

    It works, yeeeeeeeeh

  8. William Choo
    William Choo avatar
    3 posts
    Member since:
    Jul 2006

    Posted 05 Oct 2011 Link to this post

    Hi, I encounter the delete icon appear too when the allowdelete set to false. Can i know when is the new version will be release?

  9. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 07 Oct 2011 Link to this post

    Hello William,

    When you set the allow delete to false, the icon is hidden. You can get the latest internal build after you log in your Telerik account from here.

    Hope this will help you.

    All the best,
    Plamen Zdravkov
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  10. William Choo
    William Choo avatar
    3 posts
    Member since:
    Jul 2006

    Posted 07 Oct 2011 Link to this post

    Hi,

    Thanks. The internal build works.

  11. Eirik H
    Eirik H avatar
    30 posts
    Member since:
    Mar 2010

    Posted 31 Oct 2011 Link to this post

    Had the same problem, thanks for fixing. Glad I accidentally noticed it before rolling out the new version to our customers. 

  12. MFitzpatrick
    MFitzpatrick avatar
    24 posts
    Member since:
    Jul 2010

    Posted 31 Oct 2011 Link to this post

    The internal build seems to fix the allowdelete and allowedit problems I was encountering, but now the radscheduler no longer seems to work with the radtooltipmanager. Can anyone else confirm this?

    Mike

  13. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 02 Nov 2011 Link to this post

    Hi Mfitzpatrick,

    I researched the issue with the RadTooltipManager but could not find out what is not working as expected. Would you please specify what exactly is the different issue with the internal build and how can we reproduce it so we can inspect and fix the problem?

    Regards,
    Plamen Zdravkov
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  14. MFitzpatrick
    MFitzpatrick avatar
    24 posts
    Member since:
    Jul 2010

    Posted 03 Nov 2011 Link to this post

    Thanks for replying to my post. I have posted this issue on the tooltip board. I initially thought that only the tooltips on the radscheduler were not working, but have since realized that none of my radtooltipmanager tooltips are working in ie9.

    Thanks again

    Mike

  15. Rommel
    Rommel avatar
    2 posts
    Member since:
    Feb 2011

    Posted 04 Nov 2011 Link to this post

    Hi Plamen Zdravkov,

    I couldn't find the upgrade 2011.3.927.40 version of RadControls for ASP.NET AJAX as mention by you.
    http://www.telerik.com/account/downloads/internal-builds.aspx

    The only version I saw in the Internal Build is 2011.2

    Where can I find the fix for this?
    This error was not observed when I am using earlier Trial Version. This error surface only when I bought the product.

  16. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 07 Nov 2011 Link to this post

    Hi Rumly,

    You can refer to this blog post where Internal Builds are explained.

    As for the RadToolTipManager issue if you still experience it would you please submit a support ticket that describes it so it can be separately reviewed?

    Greetings,
    Plamen Zdravkov
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  17. Rommel
    Rommel avatar
    2 posts
    Member since:
    Feb 2011

    Posted 07 Nov 2011 Link to this post

    Hi Plamen Zdravkov,

    Is this the one that I am suppose to download to fix the "AllowDelete=false does not work" issue in RadScheduler?
    Telerik.Web.UI_2011_2_1101_Dev_hotfix.zip (Release notes) 29 MB

    Thanks.

  18. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 10 Nov 2011 Link to this post

    Hi Rommel,

    If you still have problems I have just tested with 2011, 3, 1027, 40 version and everything worked as expected. You can also just wait for the new release next week.

    Regards,
    Plamen Zdravkov
    the Telerik team

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

  19. Karl
    Karl avatar
    172 posts
    Member since:
    Sep 2010

    Posted 26 Apr 2013 Link to this post

    Is this still broken?

    I'm using the controls with version 2012.1.411.40 on a .Net 4.0 web site and if I view the control on an iPhone or an iPad, and click on an appointment, I get the popup asking if I want to delete the appointment. If I click yes the appointment disappears. Fortunately this doesn't remove the appointment from the data source.

    I do not want to the users to have the ability to do this as the page/data is for viewing only, and all of the editing functionality (add, edit and delete) should be disabled.

    I have done the following to try to disable this from happening, but nothing I've done prevents this from happening.

        1.    Added the above mentioned OnClientAppointmentDataBound client side event
        2.    Added the server side AppointmentDataBound event and added the code "e.Appointment.AllowDelete = false;" to it.
        3.    Set AllowDelete="False" on the control in the aspx file.

    I can't see anywhere else on the page or control where I can do anything else to try to prevent this from happening and really need some help with this.

  20. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 26 Apr 2013 Link to this post

    Hi Karl,

     
    You can try to set the following CSS style that will also prevent the deleting of appointments:

    <style type="text/css">
           .rsAptDelete {
           display:none !important;
           }
       </style>

    Hope this will be helpful.
    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

  21. Karl
    Karl avatar
    172 posts
    Member since:
    Sep 2010

    Posted 26 Apr 2013 Link to this post

    Thanks for this.

    I could have sworn I'd tried this too at an earlier stage, but now I've tried it again, it's working now though.

    Isn't it a little odd that this needs to be done though? Considering there are a number of places in code that set it?

  22. Plamen
    Admin
    Plamen avatar
    2246 posts
    Member since:
    Jul 2012

    Posted 29 Apr 2013 Link to this post

    Hi Karl,

     
    It seems that the issue was a bug in the specific version you used and it is already fixed in the latest version of the control. Please excuse us for the inconvenience cause by it.

    Greetings,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

Back to Top