want to generate dynamic grid id for enhancedgrid in dojo -


I want to create a random grid ID for the extended grid, as in a scenario when loading the extended grid page in the IIM dialog The box is showing an error message below:

  ** error {info: "id == Try to register the widget with the grid, but that ID is already registered", Stack: (...), Message: "id == Try to register widget with grid but this ID is already Is registered "}   

INFO: Tried to register widget with id == grid but this ID is already registered" **

What page loads But is there any way of dynamically generating IDs? As the page is loading, while creating its grid

Thanks in advance.

If you want something unique, you can use the dojo's UUID or any other UUID generator You can. If you do not care what the id is going to be (you can use the widget later through another), then you can only leave the id attribute and the Dojo registry can automatically create an id.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -