linkbutton in radlistview

1 posts, 0 answers
  1. Mehdi
    Mehdi avatar
    4 posts
    Member since:
    Jan 2013

    Posted 02 Jan 2013 Link to this post

    I create a radlistview and bind it with objectdatasource and define a linkbutton in radlistview and linkbutton text bind to multi column in radlistview to display multi line in my radlisview.

    Now I want when a user click on linkbutton, one row of radlistview that user clicked on is set to a session so I could use it in other pages.

    I define selected items in radlistview itemdatabound event or in radlistview itemcommand event, but these events not fire .please help me. my code is:

    <telerik:radlistview .....>


    <asp:LinkButton ID="lbl1" runat="server" OnClick="linqbutton1_Click" CommandName="Select" CommandArgument='<%# Container.DataItemIndex %>' Text='<%#"&nbsp;&raquo;"+"buy"+" "+Eval("MelkType")+" "+Eval("MelkSize")+" meter"+" "+Eval("Melkregion") %>' style="margin-right:0px;direction:rtl;margin- "> </asp:LinkButton> <br /> <br /> </ItemTemplate> </telerik:RadListView> <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="RentalApartmentGet" TypeName="mymelkclass"> </asp:ObjectDataSource>

Back to Top