Hi,
I need to hide some options of the dropdownlist called repeat, when im going to create an event.
as you see in the image, i need show only never,daily, and weekly. I saw an example in angular but i cant do it in .Net Core MVC.
Thanks for help me.
3 Answers, 1 is accepted
0
Accepted
Nencho
Telerik team
answered on 03 Jul 2020, 08:21 AM
Hello, Alveiro,
You can handle the Edit event of the Scheduler, in order to get a reference to the DropDownList in question. Then, you can use the remove() method of its datasource, in order to remove the needed items:
function edit (e) {
// remove Yearly" from re-occurence dropdown
var ddl = $('input[title="Recurrence editor"]').data('kendoDropDownList');
var oldData = ddl.dataSource.data();
ddl.dataSource.remove(oldData[0]); //remove the first item.
}
Hope this would help.
Regards,
Nencho
Progress Telerik
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic. Our thoughts here at Progress are with those affected by the outbreak.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.