This is a migrated thread and some comments may be shown as answers.
Problem with Client Side Button click in Panel
0 Answers 29 Views
This is a migrated thread and some comments may be shown as answers.
Shrirang
Top achievements
Rank 1
Shrirang asked on 22 Jun 2009, 09:57 AM
Hi , 
       i have one buton in panel items.

<

asp:Button ID="btn1" runat="server" Text="Click me" OnClientClick="return Valdate();"  OnClick="btn1_Click" />

 


When i click on button it goes to client side function and validate the fields.
My function returns true and false depends upon the validation.
if i retrun True it it dosent fires to severside
 btn1_Click event.
if i put the button outside the panel it works fine.
here is sample code 

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="100%">

 

 

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" ExpandMode="SingleExpandedItem" Width="100%" >

 

 

<Items>

 

 

<telerik:RadPanelItem Expanded="True" Value="RegistrationInformation1" style="font-weight:bold" Text="Step 1: User Information" runat="server" Selected="true">

 

 

<Items>

 

 

<telerik:RadPanelItem Value="RegistrationInformation" runat="server">

 

 

<ItemTemplate>

 

 

<asp:Table ID="tblRegistration" BackColor="#eeeeee" Width="100%" runat="server" >

 

 

 

</asp:Table>

 

 

<table width="100%">

 

 

<tr>

 

 

<td align="right">

 

 

<asp:Button ID="btn1" runat="server" Text="Click me" OnClientClick="return Valdate();" OnClick="btn1_Click" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

 

 

 

</ItemTemplate>

 

 

</telerik:RadPanelItem>

 

 

</Items>

 

 

<CollapseAnimation Duration="100" Type="None" />

 

 

<ExpandAnimation Duration="100" Type="None" />

 

 

</telerik:RadPanelBar>

 

I am reffering same example .Here is following link.

http://demos.telerik.com/aspnet-ajax/panelbar/examples/applicationscenarios/accessingnestedcontrols/defaultcs.aspx

Thanks
Shrirang


No answers yet. Maybe you can help?

Asked by
Shrirang
Top achievements
Rank 1
Share this question
or