/* create a Kendo HierarchicalDataSource with the message data for a PRN
the only field names here in the data that are required are "items"
(that identifies children), otherwise, you can use any name you like
and add or remove as many fields as you like, however, keep in mind the
template (see the #message_template above) does reference these fields */
var msgsForRecord57 = new kendo.data.HierarchicalDataSource({
data: [
{
subject: 'message 1 subject',
status: '',
user: 'ramesh',
posted: '12/15/2012 04:15:00 PM',
content: 'hey everyone read this message',
items: [
{
subject: 'first response to message 1',
status: 'new',
user: 'ed',
posted: '12/16/2012 12:52:43 PM',
content: 'good suggestion'},
{
subject: 'second response to message 1',
status: 'new',
user: 'viswanath',
posted: '12/17/2012 05:52:43 PM',
content: 'not so sure about that, maybe try this, this one is much longer than many of the other messages, I am just trying to get this one to wrap so that we see a scroll bar, is it there yet? What about now? Not yet? How about now? OK this needs to be really long. I think I might need to get some lorem ipsum text to put in here for a test.'},
{
subject: 'third response to message 1',
status: 'new',
user: 'parimala',
posted: '12/19/2012 2:32:43 PM',
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam porta sagittis gravida. Nunc faucibus imperdiet sapien, nec malesuada dolor commodo nec. Fusce vitae interdum purus. Pellentesque tristique ultrices dolor, non auctor nisi sodales a. Proin pulvinar arcu vel diam interdum tincidunt. Fusce id est et erat tristique pulvinar eu eget turpis. In ut suscipit nisl. Maecenas accumsan venenatis elementum. In suscipit tortor non neque...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.