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

RadGrid row click event only firing once in RadAjaxPanel

5 Answers 108 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mabs
Top achievements
Rank 1
mabs asked on 28 Jun 2010, 10:45 AM
I have a RadGrid sitting inside a RadAjaxPanel.  If I select a row in the grid a postback occurs, however if I do it for a second time nothing happens.  If I remove the radAjaxPanel then all works fine.  Below is a code snippet, am I missing something?
<telerik:RadAjaxLoadingPanel runat="server" ID="progressLoader" MinDisplayTime="1500" InitialDelayTime="1000" Skin="Default"></telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel runat="server" ID="rap_panel1" LoadingPanelID="progressLoader" EnableViewState="true"  EnableEmbeddedScripts="true" EnableAJAX= "True" >
        <telerik:RadGrid ID="RadGrid1"  
                         runat="server"
                         GridLines="Vertical"
                         ShowGroupPanel="True"
                         PageSize="5"
                         AllowSorting="true"
                         AllowPaging="true"
                         AutoGenerateColumns="false"
                         EnableHeaderContextMenu="true"
                         Skin="Default" >            
            <ExportSettings>
                <Pdf FontType="Subset" PaperSize="A4" />
                <Excel Format="Html" />
                <Csv ColumnDelimiter="Comma" RowDelimiter="NewLine" />
            </ExportSettings>
            <MasterTableView DataKeyNames="ROWCLICK" GroupLoadMode="Client" CommandItemDisplay="Top">
                <PagerStyle  Mode="NextPrevNumericAndAdvanced" />
               <%-- <CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowExportToPdfButton="true" ShowExportToWordButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" />--%>
               <CommandItemTemplate>

                      <asp:LinkButton ID="btn_save" runat="server" CommandName="saveGrid" ><asp:Image runat="server" ID="img_save" ImageUrl="~/_resources/images/icons/tick.png"/></asp:LinkButton>
                        <asp:LinkButton ID="btn_excel" runat="server" CommandName="excel" ><asp:Image runat="server" ID="Image1" ImageUrl="~/_resources/images/icons/xls_grey.gif"/></asp:LinkButton>
                        
                    
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings ReorderColumnsOnClient="True"
                            AllowDragToGroup="True"
                            AllowColumnsReorder="True"
                            EnablePostBackOnRowClick="true"
                            AllowGroupExpandCollapse="true">
                <Resizing AllowRowResize="True"
                          AllowColumnResize="True"
                          EnableRealTimeResize="True"
                          ResizeGridOnColumnResize="False">
                </Resizing>
            </ClientSettings>
        </telerik:RadGrid>
</telerik:RadAjaxPanel>

5 Answers, 1 is accepted

Sort by
0
mabs
Top achievements
Rank 1
answered on 28 Jun 2010, 12:38 PM
I would also like to add that its not just the row click that is failing to fire.  For example, if I sort the grid then try to move a column, click on a row no post back will be fired. Or If the first thing I do on page load is to move a column, then I can not select a row or  group by column.  Basically whatever causes a postback, prevents any other event from then firing there on after. 

Any help on this would be much appreciated!!!
0
Pavel
Telerik team
answered on 29 Jun 2010, 12:00 PM
Hi Russell,

I am not able to replicate the problem. You can find attached to this message a simple test page. Try it out and let me know how to alter it in order to replicate the issue.

Best wishes,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mabs
Top achievements
Rank 1
answered on 05 Jul 2010, 01:13 PM
Hi,  It seems that the issue occurs when using a masterPage.  I have read a a post where a user has the same problem,

ajax grid not refreshing

Do you know if a solution has been found yet?  I find it hard to believe that a .net grid cannot work correctly if using a master page?
0
Accepted
Pavel
Telerik team
answered on 07 Jul 2010, 07:15 AM
Hi Russell,

I tested the same page in Master/Content page scenario at it behaves as expected. Try it out and let me know what is different in your case.

All the best,
Pavel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
mabs
Top achievements
Rank 1
answered on 07 Jul 2010, 09:42 AM
thank you, i had neglected to use

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
    </telerik:RadAjaxManager> 

It now works correctly.  Thank you for your time and help.


Tags
Grid
Asked by
mabs
Top achievements
Rank 1
Answers by
mabs
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or