|
Title: PrePopulate readonly datagrid cell on New record Post by: kroggity on May 29, 2022, 09:25:21 AM I have a datagrid with a textbox field (Name=Date) set to read-only. When using the basic CRUD datagrid for editing an existing entry I want to have the Date field set to read only. When a user clicks on the New button I want to change the value of that reaonly cell to today's date in the popup dialog. Can anyone recommend how to do this?
Title: Re: PrePopulate readonly datagrid cell on New record Post by: jarry on May 31, 2022, 02:19:07 AM Define a form with a readonly datebox component.
Code: <form id="ff" method="post"> After clicking the 'New Button', call this code to load the from with some initialized data and set the datebox component to editable status. Code: $('#ff').form('load', { |