i have this and it doesn't display anything. can you help me please. thanks
| <telerik:RadRotator ScrollDirection="left" FrameDuration="1" Width="435" ItemWidth="145" Height="24" ItemHeight="24" |
| ScrollDuration="2000" ID="Rotator1" runat="server"> |
| </telerik:RadRotator> |
Dim rs As SqlDataReader = clsGenerateReport.top20_ticker()
Dim dt As New DataTable
dt.Load(rs)
Rotator1.DataSource = dt
Rotator1.DataBind()

When the user clicks the Export Button, I want an ajax loading panel to display over the Panel. Then, when the export is complete I'd like the loading panel to close.
Using the OnAjaxRequestStart I am able to fire the loading panel. For the export to work, I have to set the EnableAjax = false. The problem is that when that is set, the OnResponseEnd is never fired.
Here's what I have so far. Any help would be appreciated:
| //Script |
| <script type="text/javascript"> |
| var currentLoadingPanel = null; |
| var currentUpdatedControl = null; |
| function RequestStart(sender, args) { |
| currentLoadingPanel = $find("RadAjaxLoadingPanel1"); |
| switch (args.get_eventTarget()) { |
| case "btnExcel": |
| case "btnWord": |
| case "btnCSV": |
| //Disable Ajax |
| args.EnableAjax = false; |
| currentUpdatedControl = "Panel1"; |
| //show the loading panel over the updated control |
| currentLoadingPanel.show(currentUpdatedControl); |
| break; |
| } |
| } |
| function ResponseEnd() { |
| //hide the loading panel and clean up the global variables |
| if (currentLoadingPanel != null) |
| currentLoadingPanel.hide(currentUpdatedControl); |
| currentUpdatedControl = null; |
| currentLoadingPanel = null; |
| } |
| </script> |
| //RadAjaxManager Configuration |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="btnExcel"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="btnWord"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| <telerik:AjaxSetting AjaxControlID="btnCSV"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" /> |
| </telerik:RadAjaxManager> |
Dear Telerik team,
I use Grid / Self-referencing Hierarchy in my project,
Total count of data greater than 20,
the page will wait more than eight seconds。
when the data amount in the larger, the performance is worse?
web waiting time is the more long?
Any suggestions for use Grid / Self-referencing Hierarchy ?
sean
|
<% @ Control Language="vb" AutoEventWireup="false" CodeBehind="ReportCriteria.ascx.vb" Inherits="xxx.ReportCriteria" %>
<% @ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadFilter runat="server" ID="RadFilter1" |
| OnApplyExpressions="RadFilter1_ApplyExpressions"> |
| <FieldEditors> |
| <telerik:RadFilterBooleanFieldEditor FieldName="Some Bool" /> |
| <telerik:RadFilterTextFieldEditor FieldName="Some Text" /> |
| </FieldEditors> |
| </telerik:RadFilter> |
| Imports Telerik.Web.UI |
| Partial Public Class ReportCriteria |
| Inherits System.Web.UI.UserControl |
| Protected Sub RadFilter1_ApplyExpressions(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadFilterApplyExpressionsEventArgs) |
| Dim provider As New RadFilterSqlQueryProvider() |
| provider.ProcessGroup(e.ExpressionRoot) |
| ltlDebug.Text = provider.Result |
| End Sub |
| End Class |
|
| <telerik:GridDropDownColumn DataField="Continent.Id" HeaderText="Continente" DataSourceID="odsContinent" ListTextField="Name" ListValueField="Id" UniqueName="Continent" SortExpression="Continent" /> |
| <asp:ObjectDataSource ID="odsCountry" runat="server" |
| TypeName="Highland.Models.Country" |
| EnablePaging="true" |
| SelectMethod="SlicedFindAll" |
| SelectCountMethod="Count" |
| OldValuesParameterFormatString="{0}" |
| InsertMethod="GridInsert" DeleteMethod="GridDelete" UpdateMethod="GridUpdate" |
| StartRowIndexParameterName="firstResult" |
| MaximumRowsParameterName="maxResults" > |
| <DeleteParameters> |
| <asp:Parameter Name="Id" Type="Int32" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="Id" Type="Int32" /> |
| <asp:Parameter Name="Alias" Type="String" /> |
| <asp:Parameter Name="Fullname" Type="String" /> |
| <asp:Parameter Name="Capital" Type="String" /> |
| <asp:Parameter Name="Continent" Type="String" /> |
| <asp:Parameter Name="ThreeDigitCountryCode" Type="Int32" /> |
| <asp:Parameter Name="ThreeLetterCountryCode" Type="String" /> |
| <asp:Parameter Name="TwoLetterCountryCode" Type="String" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="Id" Type="Int32" /> |
| </InsertParameters> |
| </asp:ObjectDataSource> |