I have created 2 IDataEditor usercontrols and added these on 2 different tabs on a DocumentType. 1 usercontrol inserts rows in the database. The other tab shows an overview of the rows in the database.
I added the insert functionality in an update panel. The problem is, when the rows is inserted, it is not shown on the other tab. There have to be a postback to refresh the rows.
I have found some methods to refresh the treenode (BasePage.Current.ClientTools.SyncTree), but I can't find a method to refresh the overview tab, after I inserted a row in de insert tab.
I found a solution to my problem. I placed an updatepanel in both. When the insertion is done, I find the other usercontrol. I load the data from the database and bind it to the Repeater. Then I call the update method on the updatepanel.
Refresh tab in adminpanel
I have created 2 IDataEditor usercontrols and added these on 2 different tabs on a DocumentType. 1 usercontrol inserts rows in the database. The other tab shows an overview of the rows in the database.
I added the insert functionality in an update panel. The problem is, when the rows is inserted, it is not shown on the other tab. There have to be a postback to refresh the rows.
I have found some methods to refresh the treenode (BasePage.Current.ClientTools.SyncTree), but I can't find a method to refresh the overview tab, after I inserted a row in de insert tab.
Is there an api method to do this?
I found a solution to my problem. I placed an updatepanel in both. When the insertion is done, I find the other usercontrol. I load the data from the database and bind it to the Repeater. Then I call the update method on the updatepanel.
is working on a reply...