I need to have a client side template on my application without using webservice binding.
When I try to use client side template with other types of databing like datatable or arraylist the client side template does not
maintain its layout.
The reason I need this is because I need client side template with load on demand.
For example:
* The bellow code adds an item but doens't preseve the client template
Dim itemData As New RadListBoxItem()
itemData.Text ="Text"
itemData.Attributes.Add("Attr1", "Attr1")
itemData.Attributes.Add("Attr2", "Attr2")
itemData.Attributes.Add("Attr3", "Attr3")
radListBox.Items.Add(itemData)
* The code below works when its set as webservice biding
Dim result As New List(Of RadListBoxItemData)()
Dim itemData As New RadListBoxItemData()
itemData.Text = "Text"
itemData.Attributes.Add("Attr1", "Attr1")
itemData.Attributes.Add("Attr2", "Attr2")
itemData.Attributes.Add("Attr3", "Attr3")
result.Add(itemData)
Return result.ToArray()
When I try to use client side template with other types of databing like datatable or arraylist the client side template does not
maintain its layout.
The reason I need this is because I need client side template with load on demand.
For example:
* The bellow code adds an item but doens't preseve the client template
Dim itemData As New RadListBoxItem()
itemData.Text ="Text"
itemData.Attributes.Add("Attr1", "Attr1")
itemData.Attributes.Add("Attr2", "Attr2")
itemData.Attributes.Add("Attr3", "Attr3")
radListBox.Items.Add(itemData)
* The code below works when its set as webservice biding
Dim result As New List(Of RadListBoxItemData)()
Dim itemData As New RadListBoxItemData()
itemData.Text = "Text"
itemData.Attributes.Add("Attr1", "Attr1")
itemData.Attributes.Add("Attr2", "Attr2")
itemData.Attributes.Add("Attr3", "Attr3")
result.Add(itemData)
Return result.ToArray()