How do I add an item to a listbox which is using Templates using client side javascript?

2 posts, 0 answers
  1. Chris Crowe
    Chris Crowe avatar
    5 posts
    Member since:
    Aug 2007

    Posted 12 Oct 2009 Link to this post

    How do I add an item to a listbox which is using Templates using client side javascript?

    I want a list box to have two columns.

    I was to add an item to the list box using client side javscript.

    Can this control do this?

    Basically each item is like this

    <div><div>left{data bind at runtime using jscript}</div><div>{data bind at runtime using jscript}</div></div>

    Where I either databind at runtime or just insert a complete HTML blog into the list item.

    Any examples?

    Chris
  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1600 posts

    Posted 16 Oct 2009 Link to this post

    Hello Chris Crowe,

    Unfortunately this is not possible. There is no way to find on the client what the server side template looks like. You will need to add your items on the server in order to have them templated.


    Kind regards,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top