Click here to Skip to main content
16,020,188 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys

I am currently having an issue when trying to add a linkbutton to a listbox.

I have added the linkbutton in the HTML which is fine but when i try and add items to the listbox from the code behind
1. The intelesense does not pick up the linkbutton
2. if i add the linkbutton to the designer, no issue on build but when trying to add the button i get a Obj ref error.


Is there a way i can achieve this with a radlist?

What I have tried:

<telerik:RadListBox ID="FBRadListBox" runat="server" Width="100%">
  <ItemTemplate>
    <table style="width: 100%; border-spacing: 0; border-collapse: collapse;">
      <tr>
        <td style="vertical-align: top; padding-right: 5px; width: 75px; border-right: solid 1px #c0dcf8;"><%# DataBinder.Eval(Container, "Attributes['Date']")%></td>
        <td style="vertical-align: top; padding-left: 5px;">                                                                                   <telerik:RadLinkButton runat="server" ID="ReferenceNumberLinkButton"></telerik:RadLinkButton>
</td>
      </tr>
    </table>
  </ItemTemplate>
</telerik:RadListBox>
Posted
Updated 25-Oct-17 2:07am
v2
Comments
Kornfeld Eliyahu Peter 25-Oct-17 8:08am    
You control is data bounded, change the data and refresh the control...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900