I am unable to retrieve the values for list box items when I am using the template column when in a different event such as a button click.
I need to get at the values for the selected item.
my ascx does this
<telerik:RadListBox ID="UserLst" runat="server" Width="320px" Height="400px" AutoPostBack="True"
Skin="Windows7">
<ItemTemplate>
<div class="radlist-itemdiv">
<div class="radlist-imagediv">
<img src='Images/icon_human.png' alt="User Image" />
</div>
<div class="radlist-textdiv">
<span class="radlist-title"><span class="radlist-column">Access Rights</span><%#Eval("AccessLevel")%></span><br /><span class="radlist-title"><span class="radlist-column">Full Name</span><%#Eval("Fullname")%></span><br /><span class="radlist-title"><span class="radlist-column">User Ref No.</span><%#Eval("UIDRef")%></span></div>
</div>
</ItemTemplate>
</telerik:RadListBox>
in my .CS Code file I am doing this in page_load
UserLst.DataSource = WS.GetUserList(); // returns a dataset
UserLst.DataBind();
in my .cs file I have wired an imagebuttonclick event using radajaxpanel.
protected void EditUserClick(object sender, ImageClickEventArgs e)
{
string UIDRef = xxx; // get the UIDRef that is in the selecteditem ????????
}
This last buttonclick routine is where I am strugling to get at the UIDRef that is part of the selected item?
Once I have the UIDRef i can locate the full record and start to edit it.
Any help greatly appreciated, Thanks.
I need to get at the values for the selected item.
my ascx does this
<telerik:RadListBox ID="UserLst" runat="server" Width="320px" Height="400px" AutoPostBack="True"
Skin="Windows7">
<ItemTemplate>
<div class="radlist-itemdiv">
<div class="radlist-imagediv">
<img src='Images/icon_human.png' alt="User Image" />
</div>
<div class="radlist-textdiv">
<span class="radlist-title"><span class="radlist-column">Access Rights</span><%#Eval("AccessLevel")%></span><br /><span class="radlist-title"><span class="radlist-column">Full Name</span><%#Eval("Fullname")%></span><br /><span class="radlist-title"><span class="radlist-column">User Ref No.</span><%#Eval("UIDRef")%></span></div>
</div>
</ItemTemplate>
</telerik:RadListBox>
in my .CS Code file I am doing this in page_load
UserLst.DataSource = WS.GetUserList(); // returns a dataset
UserLst.DataBind();
in my .cs file I have wired an imagebuttonclick event using radajaxpanel.
protected void EditUserClick(object sender, ImageClickEventArgs e)
{
string UIDRef = xxx; // get the UIDRef that is in the selecteditem ????????
}
This last buttonclick routine is where I am strugling to get at the UIDRef that is part of the selected item?
Once I have the UIDRef i can locate the full record and start to edit it.
Any help greatly appreciated, Thanks.