Discuss anything related to web development but no technical support questions


Post by himanshurjoshi »

I want to disable weekends and holidays in Grid cell editor's date picker. How do I do that?

Screenshot 2023-06-28 at 2.54.59 PM.png
Screenshot 2023-06-28 at 2.54.59 PM.png (178.66 KiB) Viewed 1853 times


Post by marcio »

Hey himanshurjoshi,

You can use the following snippet to configure your cell editor date picker

{
  text             : 'Start',
  id               : 'start',
  type             : 'date',
  field            : 'start',
  editor: {            
picker: { disableWeekends: true, disabledDates: [] } } }

https://bryntum.com/products/grid/docs/api/Core/widget/DatePicker#config-disableWeekends
https://bryntum.com/products/grid/docs/api/Core/widget/DatePicker#config-disabledDates

Best regards,
Márcio


Post by himanshurjoshi »

Thanks! Marcio its working


Post Reply