4 Answers, 1 is accepted
You can create custom editor template and adjust the "frequencies" option of the recurrence editor inside it. Please check the example below:
Regards,
Vladimir Iliev
Telerik
Hi Vladimir,
Good to know, working perfect!
Thanks,
Ran
How would one go about removing options in the sub-sections. For example if a "Monthly" recurrence is selected, I would like to remove "day, weekday and weekend day" from the dropdown when the second radio button is selected. I basically just want Mon-Sun.
Thanks.
Hello Roy,
As there is no configuration option available in the Scheduler, that would allow you to configure this upon initialization, you can achieve the desired result by handing the edit event of the Scheduler. Then attach a click handler to the monthly button and update the dataSource of the DropDownList that is used for selection of the weekdays:
edit: function(e){
$('span[data-value="monthly"]').click(function(){
setTimeout(function(){ //make sure the content of the container is rendered
var ddl = $('input.k-recur-weekday').data('kendoDropDownList')
if(ddl){
var data = ddl.dataSource.data();
var newData = data.filter(function(e){
console.log(e)
return e.value > 0 && e.value < 6
})
ddl.setDataSource(newData)
}
},0)
})
},
Here is a sample dojo demonstrating the above.
Regards,
Aleksandar
Progress Telerik
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/.