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

Dotnetnuke - Telerik:RadToolTip inside Repeater not firing ItemCommand-Event

0 Answers 39 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 20 Oct 2012, 12:51 PM
Hi

in my module's ascx-File I have the following code (shortened):

<asp:Repeater ID="rptMain" runat="server">
    <ItemTemplate>
        <Telerik:RadToolTip ID="RadToolTip" runat="server" TargetControlID="btnPhone" IsClientID="false" HideEvent="ManualClose">
            <table width="100%" border="0" cellpadding="2" cellspacing="0">
                <tr valign="top">
                    <td><asp:ImageButton ID="btnPhoneStartP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_green.png" CommandName="PhoneStart" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Made Call" ToolTip="Made Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td>
                    <td><asp:ImageButton ID="btnPhoneStopP" runat="server" ImageUrl="~/DesktopModules/MaganSoft.PerKad.CandidateActive/Images/phone_red.png" CommandName="PhoneStop" CommandArgument='<%# Container.DataItem.PhoneNumberP %>' AlternateText="Missed Call" ToolTip="Missed Call" Visible='<%# IIF(Container.DataItem.PhoneNumberP <> "", True, False) %>' /></td>
                </tr>
            </table>
        </Telerik:RadToolTip>
    </ItemTemplate>
</asp:Repeater>

And in Code-Behind:

Protected Sub rptMain_ItemCommand(source As Object, e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles rptMain.ItemCommand
    If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then
        If e.CommandName = "PhoneStart" Then
            Dim strPhoneNumber As String = e.CommandArgument
            Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label)
            Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label)
            Dim strGUID As String = System.Guid.NewGuid.ToString
            Dim strCompanyName As String = Null.NullString
            Dim strName As String = lblFirstName.Text & " " & lblLastName.Text
 
            m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "madecalls.xml")), "madecalls.xml", "madecalls", "madecall")
        End If
 
        If e.CommandName = "PhoneStop" Then
            Dim strPhoneNumber As String = e.CommandArgument
            Dim lblFirstName As Label = CType(e.Item.FindControl("lblFirstName"), Label)
            Dim lblLastName As Label = CType(e.Item.FindControl("lblLastName"), Label)
            Dim strGUID As String = System.Guid.NewGuid.ToString
            Dim strCompanyName As String = Null.NullString
            Dim strName As String = lblFirstName.Text & " " & lblLastName.Text
 
            m_MaganSoftHelperMethods.CreateXMLPhoneCalls(strGUID, strName, strCompanyName, strPhoneNumber, Server.MapPath(Path.Combine(PortalSettings.HomeDirectory, "missedcalls.xml")), "missedcalls.xml", "missedcalls", "missedcall")
        End If
    End If
End Sub

Whereever I set a brakpoint inside the ItemCommand-Event the debugger never reaches it.

Can anyone give me a helping hint?

Thank you very much
Martin

No answers yet. Maybe you can help?

Tags
ToolTip
Asked by
Martin
Top achievements
Rank 1
Share this question
or