I have the following Combobox setup on my page:
<
telerik:RadComboBox
ID
=
"cbxDup"
runat
=
"server"
Width
=
"350px"
DropDownWidth
=
"375px"
Height
=
"340px"
Skin
=
"Default"
HighlightTemplatedItems
=
"True"
MarkFirstMatch
=
"true"
AutoPostBack
=
"True"
EnableLoadOnDemand
=
"True"
EnableVirtualScrolling
=
"True"
>
<
HeaderTemplate
>
<
h2
>Codes</
h2
>
</
HeaderTemplate
>
<
ClientItemTemplate
>
<
ul
class
=
"Main"
>
<
li
><
span
> #= Text # </
span
></
li
>
<
span
> #= Attributes.Description # </
span
>
</
ul
>
</
ClientItemTemplate
>
<
WebServiceSettings
Method
=
"LoadComboBox"
Path
=
"SysProf-Add.aspx"
/>
</
telerik:RadComboBox
>
With the following server code:
<WebMethod()>
Public
Shared
Function
LoadComboBox(
ByVal
context
As
RadComboBoxContext)
As
RadComboBoxData
Dim
data
As
DataTable =
Nothing
Dim
comboData
As
New
RadComboBoxData()
Try
data = GetData()
Dim
itemOffset
As
Integer
= context.NumberOfItems
Dim
endOffset
As
Integer
= Math.Min(itemOffset + 100, data.Rows.Count)
comboData.EndOfItems = endOffset = data.Rows.Count
Dim
result
As
New
List(Of RadComboBoxItemData)(endOffset - itemOffset)
For
Each
dr
As
DataRow
In
data.Rows
Dim
itemData
As
New
RadComboBoxItemData()
itemData.Value = dr.Item(0)
itemData.Text = dr.Item(1)
itemData.Attributes.Add(
"Description"
, dr.Item(2))
result.Add(itemData)
Next
comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
comboData.Items = result.ToArray()
Return
comboData
Catch
ex
As
Exception
Return
Nothing
End
Try
End
Function
What I would like to do is access the Description attribute in the cbxDup.SelectedIndexChanged event?
Thanks in advance
Steve