I went to decom our legacy Discussions List or Library Control and now the new Data Table Control won't allow Edit in the new row unless the browser is Refreshed.
This has been working for two days without error. UGH.
Also, the Designer keeps kicking me off, requiring a new sign in - are there updates in progress currently?
Property Formatting values are disappearing/reappearing
My Code
//select the Data Table control to automatically populate new rows
fd.spRendered(function() {
var dt = fd.control('LADiscussionDT');
var username = _spPageContextInfo.userDisplayName;
var date = new Date().toISOString();
//-- 'edit' allows the row to accept Edits
dt.widget.bind('edit', function(e) {
var model = e.model;
if (model.isNew()) {
model.set('PostedBy', username);
model.set('DatePosted', date);
}
// I have tried with and without this refresh
dt.refresh();
});
});