Question

I want to generate random grid ID for enhanced grid, as in one of the scenario when iam loading the enhanced grid page in dialog box it is showing the below error message:

**Error {info: "Tried to register widget with id==grid but that id is already registered", stack: (...), message: "Tried to register widget with id==grid but that id is already registered"}

info: "Tried to register widget with id==grid but that id is already registered"**

Is their any way to generate the id dynamically on page load. as its creating the grid while the page is loading.

Thanks in advance.

Was it helpful?

Solution

If you want something unique, then you can use dojo's UUID or any other UUID generator. If you don't care what the ID is going to be (you can access the widget later on through some other means), then you can just leave out the ID attribute and let dojo's registry automatically create an ID.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top