<script>var model1 =newkendo.data.Model({name:"Item 1"});var model2 =newkendo.data.Model({name:"Item 2"});/* The result can be observed in the DevTools(F12) console of the browser. */console.log(model1.uid);// outputs a unique identifier string like "1e3b4c5d-6789"/* The result can be observed in the DevTools(F12) console of the browser. */console.log(model2.uid);// outputs a different unique identifier string/* The result can be observed in the DevTools(F12) console of the browser. */console.log(model1.uid=== model2.uid);// outputs false - each model has a unique uid</script>
The main benefit of the uid identifiers is to represent a link between data items (that may not have an ID of their own) and the corresponding rendered DOM elements (list items, table rows, and so on). The uid identifiers are generated randomly and are not persisted on reloading of data or web pages.