How to get the current data items in codebehind.

3 posts, 1 answers
  1. Paul
    Paul avatar
    16 posts
    Member since:
    Mar 2009

    Posted 18 Mar 2009 Link to this post

    Hi

    I have an internal news rotator with data coming from Linq to SQL.  The news heading, news bite and the news key are initally queried for the rotator.

    I would like to be able to click on an item and have the onitemclick event to fire and in the code behind determine the news item that was clicked on and requery the database with the news key to get and display the whole news story elsewhere on the page.

    I have everything working except how to determine the news key/data of the item clicked on in the codebehind.

    Thanks in advance.

    Paul
  2. Answer
    Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 19 Mar 2009 Link to this post

    Hi Paul,

    I implemented such functionality in a simple demo project and attached it to this thread. In the project I use a XML datasource, but the approach is the same as when you use a SQL datasource.

    I hope this helps.

    Kind regards,
    Fiko
    the Telerik team


    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Paul
    Paul avatar
    16 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2009 Link to this post

    Hi Fiko

     

    Thank you very much, that was the ticket.

     

    Paul

Back to Top