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