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

Ajaxified grid loses Client select functionality

5 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Iron
Andy asked on 26 Sep 2011, 12:43 AM
When I remove the 'RadAjaxManager' client side selection works.  When it is there client side selection goes away.

When I add another grid that is not referenced in the 'UpdatedControls' of the AjaxManager then Both grids rows are client selectable.

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="WebHabitSmasher.Test" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
     
   <div style="width:750px;">
  
      <asp:Label ID="GoalType2Grid_error" runat="server" Width="750px" BackColor="Black" ForeColor="#CC0000" Font-Size="Larger"></asp:Label>
   </div>
        <telerik:RadGrid ID="GoalType2Grid" runat="server" AutoGenerateColumns="False" CellSpacing="0"   Width="750px"
            OnInsertCommand="GoalType2Grid_InsertCommand"
            OnUpdateCommand="GoalType2Grid_EditCommand"
            OnDeleteCommand="GoalType2Grid_DeleteCommand"
            >
                 <ClientSettings >
                    <Selecting AllowRowSelect="true" />
                </ClientSettings>             
            <MasterTableView DataKeyNames="IdMilestones" CommandItemDisplay="Top">
  
              <Columns>
                      <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                               
                     <telerik:GridBoundColumn AllowSorting="False" DataField="Text" Groupable="False" MaxLength="255" ShowSortIcon="False" UniqueName="column" HeaderText = "Milestone">
                        <HeaderStyle HorizontalAlign="Left" />
                     </telerik:GridBoundColumn>
                     <telerik:GridCheckBoxColumn AllowFiltering="False" AllowSorting="False" DataField="UserDefinedPercent" DataType="System.Boolean" Groupable="False" ShowSortIcon="False" HeaderText = "User Entered %" UniqueName="column1">
                     </telerik:GridCheckBoxColumn>
                     <telerik:GridNumericColumn AllowFiltering="False" AllowSorting="False" DataField="Percent" DataType="System.Int32" DecimalDigits="0" Groupable="False" HeaderText="% of Total Goal" ShowSortIcon="False" UniqueName="column2">
                     </telerik:GridNumericColumn>
                     <telerik:GridDateTimeColumn AllowFiltering="False" AllowSorting="False" DataField="DateMilestoneEnd" DataType="System.DateTime" Groupable="False" HeaderText="Date to Complete" ShowSortIcon="False" UniqueName="column3">
                     </telerik:GridDateTimeColumn>                                              
  
                      <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center"  />
                    </telerik:GridButtonColumn>
                   </Columns>
     
                     </MasterTableView>
  
                 </telerik:RadGrid>
  
   <br />
   <br />
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
           <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="GoalType2Grid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="GoalType2Grid"  />
  
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
   </telerik:RadAjaxManager>   
  
</asp:Content>

The master page has:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <%--Needed for JavaScript IntelliSense in VS2010--%>
        <%--For VS2008 replace RadScriptManager with ScriptManager--%>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
    </Scripts>
</telerik:RadScriptManager>
    

5 Answers, 1 is accepted

Sort by
0
Andy
Top achievements
Rank 1
Iron
answered on 26 Sep 2011, 06:14 AM
Ok... it is not just the ability to select rows that go away when the ajaxmanager is there.

On editing and inserting... the Int32 input always comes back null and the calendar no longer works.

I'm obviously missing something
0
Martin
Telerik team
answered on 27 Sep 2011, 04:32 PM
Hello Andy,

I have noticed that you have closed the support ticket opened on the same topic. To make the resolution available for our community I am pasting your post here as well:

"You can close this ticket... I found the issue and it was on my side."

All the best,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Andy
Top achievements
Rank 1
Iron
answered on 27 Sep 2011, 04:38 PM
I was on my way to do it.

For anyone who runs across something similar... my base page class was not calling the base.onpreinit()  where I was overriding the onpreinit().  ( it was actually calling base.oninit() )

This seemed to cause issues with ajaxmanager ( and all the managers )

0
Mohan
Top achievements
Rank 1
answered on 18 Oct 2011, 09:08 PM
I am facing the same issue here, need a tip more on how it was resolved. 

In my case the Ajaxified autoquery stopped working with the new Telerik upgrade, ( First all the controls lost the skin, but somehow with Slav's help we got it fixed..). The RadDocks, the Tooltip manager & other client side AJAX features have stopped working.

  <telerik:RadScriptManager ID="ScriptManager" runat="server"><br>     <Scripts><br>                <asp:ScriptReference Path="~/Scripts/TraceUtils.js" /><br>                <%--Needed for JavaScript IntelliSense in VS2010--%><br><span class="Apple-tab-span" style="white-space:pre">            </span>    <%--For VS2008 replace RadScriptManager with ScriptManager--%><br><span class="Apple-tab-span" style="white-space:pre">          </span>    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /><br><span class="Apple-tab-span" style="white-space:pre">          </span>    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /><br><span class="Apple-tab-span" style="white-space:pre">            </span>    <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /><br>            </Scripts><br>    </telerik:RadScriptManager>



    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
0
Martin
Telerik team
answered on 19 Oct 2011, 12:09 PM
Hello Mohan,

I have noticed that my colleague has already addressed the support you have opened about the same issue. To avoid duplicate posts, please continue your communication there.

Best wishes,
Martin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Andy
Top achievements
Rank 1
Iron
Answers by
Andy
Top achievements
Rank 1
Iron
Martin
Telerik team
Mohan
Top achievements
Rank 1
Share this question
or