Jun 26, 2015, 6:39 PM
[CLOSED] How to refresh the contents of a TreeGrid control?
Hi,
I'm trying to rebuild a databound TreeGrid control from new data within a Direct method. The direct method is executed, the data get retrieved from the database and the nodes are built and added, however, the TreeGrid doesn't get refreshed. What am I missing here?
I'm trying to rebuild a databound TreeGrid control from new data within a Direct method. The direct method is executed, the data get retrieved from the database and the nodes are built and added, however, the TreeGrid doesn't get refreshed. What am I missing here?
[DirectMethod]
public void Refresh(){
TreeGrid1.RemoveAll();
TreeGrid1.ClearContent();
// Calling a method that retrieves the data and builds the nodes and the leaves of the grid
BuildAndDatabind();
}
Last edited by Daniil; Jun 29, 2015 at 12:45 PM.
Reason: [CLOSED]