简体   繁体   中英

w2ui grid inline edit (date range validations)

Can anyone suggest how to put date range validations in w2ui grid inline edit (Calendar should display date after start date)

Any hint or suggestions would be appreciated

Thanks

Kindly use following code to put date range validations in w2ui grid inline edit

onDblClick: function (event) {
    var editable = w2ui['grid'].columns[event.column].editable
            if (editable !== undefined) {  
                        w2ui['grid'].columns[event.column].editable = { type: 'date',  start: startdate   }; 
                        w2ui['grid'].refresh();
                                         }                            
                            
                        }

here startdate is date from where you want to set your calender

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM