Is there anyway to make auto-save once I added a sublayout component?
I created one sublayout and if I add it on the page in page editor, it doesn't appear on that time. By saving the item, it appears on the page editor.
So, I'd like to make if sublayouts are added on the page, then make the page automatic save.
Is it possible?
===== Update =====
This is the end of CreateNewDatasource Method and it updates Rendering Layout field.
//set datasource, save and close
myItem.Editing.BeginEdit();
myDataSourceItem = myItem.Add(newName, template);
rd.Datasource = myDataSourceItem.ID.ToString();
myItem[Sitecore.FieldIDs.LayoutField] = ld.ToXml();
myItem.Editing.EndEdit();
myItem.Editing.AcceptChanges();
return myDataSourceItem;