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

AjaxManager doesn't ajaxify RadGrid when EnablePostBackOnRowClick is enabled

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mallory
Top achievements
Rank 1
Mallory asked on 24 Mar 2010, 10:43 AM
Hi everybody

As already mentioned in the title, I use a RadGrid with the EnablePostBackOnRowClick property enabled. The postback is made, but it is not ajaxified, meaning that the page will be reloaded. The thing is that I can't make a selection, since everytime I click a row the page is reloaded and as a result of this the selection is lost. 

The following is the very simple ASP.NET code I'm using for this scenario:
<asp:ScriptManager runat="server"
</asp:ScriptManager> 
<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"
  <AjaxSettings> 
    <telerik:AjaxSetting AjaxControlID="RadGrid1"
      <UpdatedControls> 
        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
      </UpdatedControls> 
    </telerik:AjaxSetting> 
  </AjaxSettings> 
</telerik:RadAjaxManager> 
<telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowSelection="true" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true" EnableTheming="False" GridLines="None" OnItemCommand="Grid_ItemCommand" 
  OnSelectedIndexChanged="Grid_SelectedIndexChanged"
  <MasterTableView> 
    <PagerStyle Mode="NumericPages" PageButtonCount="10" Position="Top" AlwaysVisible="true" /> 
  </MasterTableView> 
  <ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="true"
    <Selecting AllowRowSelect="True" /> 
  </ClientSettings> 
</telerik:RadGrid> 

I created this scenario because I wanted to check if the SHIFT + CTRL key combination works correctly, i.e. it fires the OnSelectedIndexChanged event.

Hope somebody can help me. I'm definitely looking forward to your answers.

Greetings
Mallory

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 25 Mar 2010, 11:37 AM
Hi Mallory,

I followed your scenario in order to replicate the issue you are facing but to no avail. Please find attached a simple runnable project, which is working as expected. Check it out and let me know what is the difference in your case.

Additionally, could you please verify that you are using latest version 2010.1.309 of RadControls for ASP.NET AJAX in your project.

Regards,
Pavlina
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
Mallory
Top achievements
Rank 1
answered on 26 Mar 2010, 12:18 PM
Hi Pavlina

Thanks very much for the attached solution. It works like a charm! 

Wish you a nice evening.

Greetings,
Mallory
Tags
Grid
Asked by
Mallory
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mallory
Top achievements
Rank 1
Share this question
or