dataSpriteCssClassField String (default: null)

Sets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.


    #panelbar .k-sprite {
        background-image: url("");
<ul id="panelbar"></ul>
var items = [
  { text: "Brazil", sprite: "brazilFlag" },
  { text: "India", sprite: "indiaFlag" }
  dataSpriteCssClassField: "sprite",
  dataSource: items
In this article