This is a migrated thread and some comments may be shown as answers.

How to get the current data items in codebehind.

2 Answers 108 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 2
Paul asked on 19 Mar 2009, 04:49 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 19 Mar 2009, 02:30 PM
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.
0
Paul
Top achievements
Rank 2
answered on 25 Mar 2009, 12:23 AM

Hi Fiko

 

Thank you very much, that was the ticket.

 

Paul

Tags
Rotator
Asked by
Paul
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Paul
Top achievements
Rank 2
Share this question
or