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

raising events with radgrid

1 Answer 45 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anjali
Top achievements
Rank 1
Anjali asked on 25 Aug 2011, 05:14 AM
 
I have the follwoing code in my web page. On the click of the link button ID_Link, I am raising an event and delegates that passes some calculated value of  to anothe web page. The raising of the event works if I remove this line <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_Header" LoadingPanelID="RadAjaxLoadingPanel1">
otherwise if I put this line back then it does not work
I am not sure how can I raise the event on the click of the ID_Link with using ajax along with it.
Below is my code:  It seems ajax does not work well with raising events. any help will be greatly appreciated
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="1500px" BackColor="#E6E6E6"
ExpandMode="MultipleExpandedItems">
<Items>
<telerik:RadPanelItem runat="server" Text="ID Picker" Expanded="true">
<Items>
<telerik:RadPanelItem Text="" Expanded="true">
<ItemTemplate>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_Header" LoadingPanelID="RadAjaxLoadingPanel1">
<table> <tr>
<td>
<div class="cis_edit_label_tiny">
keyword:</div>
   
<telerik:RadTextBox ID="radTBX_SearchBox" runat="server">
</telerik:RadTextBox><telerik:RadButton ID="radBtn_Search" runat="server" Text="Search"
OnClick="radBtn_Search_Click">
</telerik:RadButton>
<telerik:RadButton ID="radBtn_CurentlySelected" runat="server" Text="Show parents "
OnClick="radBtn_CurentlySelected_Click" Visible="false" />
</td>
<td>
</td>
</tr>
<tr>
<td>
<telerik:RadGrid ID="RadGrid_IDPicker" AllowSorting="True" PageSize="100" AllowPaging="True"
runat="server" GridLines="None" OnPageIndexChanged="RadGrid_IDPicker_PageIndexChanged"
OnPageSizeChanged="RadGrid_IDPicker_PageSizeChanged" Width="1500px" Visible="false"
OnItemDataBound="RadGrid_IDPicker_DataBound">
<MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" DataKeyNames="ID">
<Columns>
<telerik:GridTemplateColumn UniqueName="TemplateLinkColumn" AllowFiltering="false"
HeaderText="ID">
<ItemTemplate>
<asp:LinkButton ID="ID_Link" runat="server" OnClick="ID_Link_Click" Text='<%#Bind("ID") %>'
CommandName="Bold"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="TAG">
<ItemTemplate>
<asp:Label ID="lbltag" runat="server" Text='<%#Bind("TAG") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="TAG" Visible="false">
<ItemTemplate>
<asp:Label ID="lblRootLevel" runat="server" Text='<%#Bind("root_level") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Nom" HeaderText="Nom">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
</td>
</tr>
</table>
</telerik:RadAjaxPanel>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>  

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 30 Aug 2011, 12:18 PM
Hi Anjali,

Could you please wrap the whole RadPanelbar with the RadAjaxPanel instead of adding it in ItemTemplate of the PanelItem. Also please let me know if the same behaviour could be replicated with regular asp UpdatePanel instead of using RadAjaxPanel.

Kind regards,
Maria Ilieva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
Anjali
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or