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

raising events on radajaxPanel

3 Answers 21 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Anjali
Top achievements
Rank 1
Anjali asked on 25 Aug 2011, 08:09 PM

Hi All,
I am using radajaxpanel around the radgrid. I have a column of linkbuttons inside the radgrid. whenever user clicks on the linkbutton, I do some calculations on the server side and raise an event to another page to pass that calculated value. The raising of the event works if I remove the radAjaxPanel, if I put the panel back then raising of the event does not work. I was wondering if there is any work around for that. I really have to raise the event.

below is my code


<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_ID" LoadingPanelID="RadAjaxLoadingPanel1"
<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
                         
                            <table
                                   
                                <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"
                                               
                                            <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") %>'  
                                                                ></asp:LinkButton
                                                        </ItemTemplate
                                                    </telerik:GridTemplateColumn
   
                                                  
                                                    <telerik:GridTemplateColumn HeaderText="TAG"
                                                        <ItemTemplate
                                                            <asp:Label ID="lblNumber" runat="server" Text='<%#Bind("Number") %>'></asp:Label
                                                        </ItemTemplate
                                                    </telerik:GridTemplateColumn
                                                       
                                                </Columns
                                            </MasterTableView
                                            <PagerStyle Mode="NextPrevAndNumeric" /> 
                                        </telerik:RadGrid
                                    </td
                                </tr
                            </table
                            
                    </ItemTemplate
                </telerik:RadPanelItem
            </Items
        </telerik:RadPanelItem
    </Items
</telerik:RadPanelBar
   </telerik:RadAjaxPanel>

The code in the server side is



 

public delegate void ID_Selection(String strValue);
public event ID_Selection IDEventHandler; 
   
   protected void ID_Link_Click(object sender, EventArgs e) 
    
                      if (IDEventHandler != null) 
            
                  
                IDEventHandler("Testvalue"); 
                      
   
            

3 Answers, 1 is accepted

Sort by
0
Anjali
Top achievements
Rank 1
answered on 26 Aug 2011, 03:25 PM
any help on this issue will be greatly apprecaited.
0
Anjali
Top achievements
Rank 1
answered on 28 Aug 2011, 05:55 AM
Can anyone help me with this issue

Thanks.
0
Iana Tsolova
Telerik team
answered on 30 Aug 2011, 09:50 AM
Hello Anjali,

Is the approach working with ASP:UpdatePanel instead of RadAjaxPanel, and if the ASP:UpdatePanel UpdateMode property is set to Conditional? If yes, can you share a stripped runnable version of your scenario so we can test it further?

Kind regards,
Iana
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
Ajax
Asked by
Anjali
Top achievements
Rank 1
Answers by
Anjali
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or