In same method I am trying to get data like: MenuObj.model.fields.dataSource, but here I am getting null. Here I need to get all object count and their data by fields name, including customField and in other methods I need to get data by id attribute. Maybe there is a simple way to do that?
KRKeerthana Rajendran Syncfusion Team May 19, 2017 12:56 PM UTC
Thank you for contacting Syncfusion support.
We don’t have any public method in our ejMenu similar to TreeView control to get data of menu. The way you have used to get the dataSource of menu is fine but make sure whether you are trying to get this data only after the control is rendered i.e. in the success event of DataManager. If still issue persists kindly revert by attaching a sample to reproduce the issue in our end .