livetile.set_value function does not work

3 posts, 0 answers
  1. Hans-Jürgen
    Hans-Jürgen avatar
    13 posts
    Member since:
    Oct 2012

    Posted 10 Oct 2014 Link to this post


    I try to get the 'Standalone Tiles' example from your demo Website ( )
    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

  2. Hans-Jürgen
    Hans-Jürgen avatar
    13 posts
    Member since:
    Oct 2012

    Posted 10 Oct 2014 in reply to Hans-Jürgen Link to this post


    false Alarm, set_value IS working, the function is just not referenced in the Client-side programming Folder of the live tile object.

    The page 'pass data to the webservice'
    explains how to use  set_value.

    I still believe the 'Standalone Tiles' example is  wrong. The only place where it makes sense to use set_value is the OnClientDataLoading Event. Using set_value in the OnClientTemplateDataBound Event will have no effect on the Parameter of the Pagemethod. 

    Anyhow- My post is answered and everything works as documented.


  3. Marin Bratanov
    Marin Bratanov avatar
    4492 posts

    Posted 13 Oct 2014 Link to this post

    Hello Hans-Juergen,

    What the demo does is to increment the Value property when the response is received, depending on the response. Thus, the next request will use the value we just set. This is one way to do this, and using the DataLoading event is another.

    As for the get/set_value() methods - indeed, they were missing from the LiveTIle clients-side API reference ( and they will be added with our next documentation upload.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top