Hi I am using kendo listview component as seen below:
$("#showHide").kendoListView({dataSource: vals,template: "<div style='overflow: hidden;text-overflow: ellipsis;white-space: nowrap;margin:4px;'>#:name#</div>",selectable: "multiple",
change: function() {
selected = $.map(this.select(), function(item) {
return vals[$(item).index()].name;
});
},
});
Is there any way that i can find the max lenght element of whole content. for example
1). asdf
2).asdfsadfasdf
3).asdfasdfsadfsadfasdf
In this 3 element is largest.
Please suggest if there is any way we can find the max length of all the elements.
$("#showHide").kendoListView({dataSource: vals,template: "<div style='overflow: hidden;text-overflow: ellipsis;white-space: nowrap;margin:4px;'>#:name#</div>",selectable: "multiple",
change: function() {
selected = $.map(this.select(), function(item) {
return vals[$(item).index()].name;
});
},
});
Is there any way that i can find the max lenght element of whole content. for example
1). asdf
2).asdfsadfasdf
3).asdfasdfsadfsadfasdf
In this 3 element is largest.
Please suggest if there is any way we can find the max length of all the elements.