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

RadAjaxManager and EventName?

1 Answer 178 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 11 Aug 2011, 05:37 PM
Hello -

I have a simple RadGrid that returns a number of records with href links.  It also has paging enabled.  I would like to see a LoadingPanel when the user clicks one of the links in the RadGrid, but not when they make a paging request.  From what I have read this would be possible utilizing the EventName when creating the AjaxSetting, like so:

<telerik:AjaxSetting AjaxControlID="MyRadGrid" EventName="SelectedIndexChanged">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="panelResults" LoadingPanelID="RadAjaxLoadingPanel1" />                                       
    </UpdatedControls>
</telerik:AjaxSetting>

<telerik:RadGrid ID="MyRadGrid" runat="server" GridLines="None" Width="700px" AllowPaging="true" PageSize="10" OnNeedDataSource="MyRadGrid_NeedDataSource" EnableViewState="true" Visible="true">
  <MasterTableView Caption="My Report" CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="false" DataKeyNames="ReportInfoID" NoDetailRecordsText="Nothing Found.">
    <PagerStyle Mode="Slider"  />
    <Columns>
    <telerik:GridButtonColumn UniqueName="ReportURL" DataTextField="Name" CommandName="Select"></telerik:GridButtonColumn>
    </Columns>                         
  </MasterTableView>                           
</telerik:RadGrid>

The above markup works great for selecting the links in the RadGrid and showing the LoadingPanel, but it also shows during the paging requests.  Essentially it performs the same regardless of if I specify the EventName or not.  I can change EventName to anything and it still always fires.

Am I missing something here or is this not possible?

Thanks

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Aug 2011, 03:33 PM
Hello John,

Please refer to this forum thread for more information on RadAjax EventName property issue.
Actually the required functionality could be easily achieved using the technique presented in the following online demo.



Best wishes,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Ajax
Asked by
Robert
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or