HI,
I try to get the 'Standalone Tiles' example from your demo Website ( http://demos.telerik.com/aspnet-ajax/tilelist/examples/standalonetiles/defaultcs.aspx )
to run on my System.
In the mentioned example you have the following JavaScript code:
function liveTileOnClientTemplateDataBound(sender, args) { var index = args.get_dataItem().index + 1; if (index > 2) { index = 0; } sender.set_value(index.toString()); }
Inside the code you use a function with Name set_value().
I assume what this function should do is to set the 'Value' property of the live tile.
Unfortunately there is no place in the online doc to a 'set_value()' function, at least I did not find it. Also no mentioning in the Forum.
What I THOUGHT I can do with this function is to set the value of the 'context' object Parameter to Server side pagemethod specified in the WebServiceSettings tag of the live tile.
But to what ever I set the value in set_value() it has no influence to the context object in the pagemethod.
Since set_value is not documented- Is this function really doing something or is the code in the demo wrong ?
I really WOULD like to set the value of the context object of the pagemethod.
How can I do this (if set_value is NOT the way to do it) ????
Hope that someone knows an answer.
Best regards
Hans-Juergen
I try to get the 'Standalone Tiles' example from your demo Website ( http://demos.telerik.com/aspnet-ajax/tilelist/examples/standalonetiles/defaultcs.aspx )
to run on my System.
In the mentioned example you have the following JavaScript code:
function liveTileOnClientTemplateDataBound(sender, args) { var index = args.get_dataItem().index + 1; if (index > 2) { index = 0; } sender.set_value(index.toString()); }
Inside the code you use a function with Name set_value().
I assume what this function should do is to set the 'Value' property of the live tile.
Unfortunately there is no place in the online doc to a 'set_value()' function, at least I did not find it. Also no mentioning in the Forum.
What I THOUGHT I can do with this function is to set the value of the 'context' object Parameter to Server side pagemethod specified in the WebServiceSettings tag of the live tile.
But to what ever I set the value in set_value() it has no influence to the context object in the pagemethod.
Since set_value is not documented- Is this function really doing something or is the code in the demo wrong ?
I really WOULD like to set the value of the context object of the pagemethod.
How can I do this (if set_value is NOT the way to do it) ????
Hope that someone knows an answer.
Best regards
Hans-Juergen