This is a migrated thread and some comments may be shown as answers.

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

1 Answer 93 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Chris Crowe
Top achievements
Rank 1
Chris Crowe asked on 13 Oct 2009, 03:18 AM
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

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 16 Oct 2009, 09:39 AM
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.
Tags
ListBox
Asked by
Chris Crowe
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or