In the attachment you will find 2 files - MainMenuDataSource.cs
(contains the MainMenuDataSource
class that represents the data source for binding the main navigation menu) and MainMenuSourceView.cs
that defines the capabilities of MainMenuDataSource
control). Please investigate the ExecuteSelect
method in MainMenuSourceView
that retrieves the data from the underlying data store and returns it as an IEnumerable
object. You could see that a DataTable
object is created and after that are setting the values for each column in a given row. Also, you will notice that part of the data is hardcoded (like Dashboard, Pages, Modules, Files, Administration and Live Site sections) and the other part is getting dynamically from the web.config (as separate web modules in Modules section and services in Administration section). Modules and services are configured under the <framework>
section in the web.config.
Please, contact us if you come up with other questions.
the Telerik team