Try Now
More in this section

Forums / Bugs & Issues / RadRotator Server side event

RadRotator Server side event

2 posts, 0 answered
  1. suthin sadanandan
    suthin sadanandan avatar
    1 posts
    05 Aug 2009
    09 Aug 2010
    Link to this post

    I have placed a radrotator in my page,and inside that radrotator item template I have added 2 controls(2 link buttons) and a client side anchor tag(<a>) .Now my requirement is that, when I click the first link button it should do some operation ,for the second link button different operation and the click on the anchor tag it should redirect to some other page.

    Now the problem is that, I have added "OnItemClick"  event for implementing the same, but now even  for anchor tag click its going to server side(For every event its going to the same OnItemClick event) .Is there a way to identify the object(control) from which the event has fired? (something similar to datalist or datagrid ItemCommand   event)

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    09 Aug 2010
    Link to this post
    Hi suthin sadanandan,

    Here are two options

    1. Access the anchor inside ItemDataBound event and set some of its properties

    2. Add some attribute to the anchor when you bound the items so that each anchor will have an attribute and it will be recognized correctly when you perform a click.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered