Event Template Custom Edit Action

1 Answer 51 Views
Scheduler
Nikita
Top achievements
Rank 2
Iron
Nikita asked on 18 Oct 2024, 05:19 PM
I'm trying to figure out how to customize scheduler event action controls like edit and delete. By default events are edited by double-click and deleted by an 'x' button that appears on hover. Is there a straight-forward way to have controls in the custom event template to have that functionality and disable the default method?

1 Answer, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 19 Oct 2024, 11:44 PM

Hi Nikita,

 

Thank you for contacting us.

And yes, the Scheduler provides the .EventTemplate() option which you can use to put inside buttons, icons, anything you prefer:
https://demos.telerik.com/aspnet-core/scheduler/templates

Would that be helpful? Am I missing something? Let me know what you think.

 

Regards,
Eyup
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Nikita
Top achievements
Rank 2
Iron
commented on 21 Oct 2024, 04:11 PM

Hello Eyup, thank you for your reply. I want to add a button to event template to open event details view/edit dialog. By default a double-click opens that dialog, I want a button to do that. Do I have to write custom javascript to handle that?
Eyup
Telerik team
commented on 23 Oct 2024, 02:31 PM

<button onclick='buttonClick(this);'>Edit Event</button>
And then calling the following javascript logic:
<script>
    function buttonClick(button){
        $(button).parent().dblclick();
    }
</script>
Here is a live sample I have prepared for your convenience:
https://netcorerepl.telerik.com/wobEwdvy30rIADva15

Nikita
Top achievements
Rank 2
Iron
commented on 01 Nov 2024, 04:08 PM

Thanks, Eyup. Sorry for delayed response. I got what I needed.
Tags
Scheduler
Asked by
Nikita
Top achievements
Rank 2
Iron
Answers by
Eyup
Telerik team
Share this question
or