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

Postback in Tooltip (w/ Button)

1 Answer 158 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 08 Apr 2009, 08:31 PM
I have a RadToolTip that is invoked via client-side event of a RadToolbar.  The RadToolTip comes up just fine, and is modal.  It contains a textbox and button:
 <telerik:RadToolTip ID="rttRecall" runat="server" Modal="true" HideEvent="ManualClose" ShowEvent="onClick" Title="Recall" 
                    Position="Center" RelativeTo="BrowserWindow" Width="300px" Height="220px" ManualClose="true" HideEvent="FromCode"
                    <telerik:RadAjaxPanel ID="rapRecall" runat="server"
                    <telerik:RadDock runat="server" ID="rdockRecall" Width="100%" Height="100%" Title="Recall" 
                        DefaultCommands="none" DockHandle="TitleBar" EnableDrag="false" DockMode="docked"
                        <ContentTemplate> 
                            <div style="text-align: center; padding: 5px;"
                                <asp:Label ID="lblCommentText" runat="server" AssociatedControlID="txtRecallReason" Text="Enter comment text for recalled step(s):"></asp:Label> 
                                &nbsp; 
                                <asp:TextBox ID="txtRecallReason" runat="server" Height="125px" TextMode="MultiLine" 
                                    Width="269px" MaxLength="1949"></asp:TextBox> 
                                <br /> 
                                <asp:Button ID="btnDoRecall" runat="server" CausesValidation="true" 
                                    Text="OK" Width="72px" /> 
                                <asp:Button ID="btnCancelRecall" OnClientClick="CloseActiveToolTip();" runat="server" 
                                    Text="Cancel" Width="72px" /><br /> 
                                    <asp:RequiredFieldValidator  ID="rfvtxtRecallReason"  ControlToValidate="txtRecallReason" Width="100%" runat="server" ErrorMessage="*" Text="Recall reason is required."></asp:RequiredFieldValidator> 
                            </div> 
                        </ContentTemplate> 
                    </telerik:RadDock> 
                    </telerik:RadAjaxPanel> 
                </telerik:RadToolTip>  

When the btnDoRecall is pressed, my handled server-side code is not firing.  Any clue why this is happening? 

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 13 Apr 2009, 12:42 PM
Hello Steve,
I used your code to create a simple test page, but unfortunately, I was not able to reproduce the problem you describe - please find my test page attached. Could you please prepare and send me a simple running project, demonstrating the problem?

In the meantime, I would suggest that you set ShowEvent=FromCode, remove the duplicate HideEvent attribute and remove the ManualClose attribute (it is obsolete - you should use HideEvent=ManualClose instead).

Sincerely yours,
Tsvetie
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
ToolTip
Asked by
Steve
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or