To change the data sources, you need to access the corresponding data item
and its DataSource property. Then you will be able to convert it to the type of used data source component and change its properties, or assign the DataSource property directly to a data object.
Consider the example in Changing the connection string dynamically according to runtime data
I hope the provided information is helpful.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.