How to add onclick attribute to link in Reorder List Control?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jpatchak
    New Member
    • Oct 2006
    • 76

    How to add onclick attribute to link in Reorder List Control?

    Hello,

    I have an AJAX Reorder List control, which is working fine. I want to add an "Edit" hyperlink to the ItemTemplate (which I have done) that opens an AJAX Modal Window when it's clicked. I need to add an OnClick attribute to call a javascript function and pass the value for the ID of the object bound to the list. I have done this before with a gridview with no problem - I just need to add code like this to RowDataBound event:
    Code:
            If e.Row.RowType = DataControlRowType.DataRow Then
                Dim HyperLink1 As HyperLink = e.Row.FindControl("HyperLink1")
                HyperLink1.Attributes.Add("onclick", "ShowPopup('" & myGridControl.DataKeys(e.Row.RowIndex).Value & "')")
            End If
    How do I accomplish the same with a Reorder List?

    Thanks in advance.
  • jpatchak
    New Member
    • Oct 2006
    • 76

    #2
    Anyone? Looks like a lot of people reading this and no one answering :-(

    Comment

    Working...