or
Hello,
I wrote this question in another thread, but i did get an answer,
maybe, because it was a different subject:
my grid (8 items) is with paging (PageSize = 5),
but i have two problems:
1) when i do 'for each' on the grid items , the "RadGrid1.Items.Count" equals - 5 and not 8
and then i get a message:
"index was out of range. must be non negative and less then the size of the collection. parameter name : index"
2) when i add a new record - i dont see it because it's at an other page,
how can i make it go to the last page - where the new item is?
thanks in advance.
<telerik:RadChart ID="linkchart" runat="server" Height="400px" Skin="Office2007" Width="925px" DefaultType="Line" IntelligentLabelsEnabled="True"> <Appearance> <Border Color="134, 134, 134" /> </Appearance> <Series> <telerik:ChartSeries Name="Series 1" Type="Line"> <Appearance> <FillStyle FillType="Solid" MainColor="69, 115, 167"> </FillStyle> <TextAppearance TextProperties-Color="Black"> </TextAppearance> <Border Color="69, 115, 167" /> </Appearance> </telerik:ChartSeries> </Series> <Legend Visible="False"> <Appearance Dimensions-Margins="15%, 2%, 1px, 1px" Dimensions-Paddings="2px, 8px, 6px, 3px" Visible="False"> <ItemTextAppearance TextProperties-Color="Black"> </ItemTextAppearance> <ItemMarkerAppearance Figure="Square"> </ItemMarkerAppearance> </Appearance> </Legend> <PlotArea> <XAxis> <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" LabelAppearance-RotationAngle="-90"> <MajorGridLines Color="134, 134, 134" Width="0" /> <LabelAppearance RotationAngle="-90"> </LabelAppearance> <TextAppearance TextProperties-Color="Black" Position-AlignedPosition="None"> </TextAppearance> </Appearance> <AxisLabel> <Appearance Position-AlignedPosition="Bottom"> </Appearance> <TextBlock> <Appearance TextProperties-Color="Black" Position-AlignedPosition="Bottom"> </Appearance> </TextBlock> </AxisLabel> </XAxis> <YAxis> <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134" MinorTick-Color="134, 134, 134"> <MajorGridLines Color="134, 134, 134" /> <MinorGridLines Color="134, 134, 134" /> <TextAppearance TextProperties-Color="Black"> </TextAppearance> </Appearance> <AxisLabel> <TextBlock> <Appearance TextProperties-Color="Black"> </Appearance> </TextBlock> </AxisLabel> </YAxis> <Appearance Dimensions-Margins="25px, 25px, 75px, 75px"> <FillStyle FillType="Solid" MainColor=""> </FillStyle> </Appearance> </PlotArea> <ChartTitle Visible="False"> <Appearance Visible="False"> <FillStyle MainColor=""> </FillStyle> </Appearance> <TextBlock> <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px"> </Appearance> </TextBlock> </ChartTitle> </telerik:RadChart>HTML
<P><%@ Page Title="" Language="C#" MasterPageFile="~/Modules/Reports/ReportMasterPage.master"<BR> AutoEventWireup="true" CodeBehind="AnalystBreakdownList.aspx.cs" Inherits="CreativeAffairsWebApp.Modules.Reports.AnalystBreakdownList" %></P> <P><%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"<BR> Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %><BR><asp:Content ID="Content1" ContentPlaceHolderID="ReportHeadContent" runat="server"><BR></asp:Content><BR><asp:Content ID="Content2" ContentPlaceHolderID="ReportMainContent" runat="server"><BR> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" Width="100%"><BR> <table style="width: 100%;" class="form"><BR> <tr><BR> <td><BR> <table border="0" cellpadding="0" cellspacing="0"><BR> <tr><BR> <td><BR> <asp:Label ID="Label1" runat="server" Text="As Of Date:" CssClass="formLabel"></asp:Label><BR> <telerik:RadDatePicker ID="txtReportDate" runat="server"><BR> <Calendar Skin="WebBlue" UseColumnHeadersAsSelectors="False" runat="server" UseRowHeadersAsSelectors="False"<BR> ViewSelectorText="x"><BR> </Calendar><BR> <DateInput runat="server" DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy"><BR> </DateInput><BR> <DatePopupButton HoverImageUrl="" ImageUrl="" /><BR> </telerik:RadDatePicker><BR> </td><BR> <td><BR> <BR> <telerik:RadButton ID="RadButton1" runat="server" Text="Run Report" OnClick="Button1_Click"><BR> </telerik:RadButton><BR> </td><BR> </tr><BR> </table><BR> <br /><BR> </td><BR> </tr><BR> </table><BR> <table width="100%"><BR> <tr><BR> <td class="style1"><BR> <asp:Panel ID="reportPanel" runat="server" Visible="false"><BR> <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="600px"<BR> PageCountMode="Actual" ShowParameterPrompts="False" BackColor="White"><BR> </rsweb:ReportViewer><BR> </asp:Panel><BR> <BR> <BR> </td><BR> </tr><BR> </table><BR> </telerik:RadAjaxPanel><BR> <BR> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"><BR> </telerik:RadAjaxLoadingPanel><BR> <BR></asp:Content></P>
<P>protected void Button1_Click(object sender, EventArgs e)<BR> {<BR> ReportViewer1.ProcessingMode = ProcessingMode.Remote;<BR> <BR> ReportViewer1.ServerReport.ReportServerUrl = new Uri(ReportUtils.GetReportServerURL());<BR> ReportViewer1.ServerReport.ReportPath = ReportUtils.GetReportPath("AnalystBreakdownList");</P> <P> ReportParameterCollection par = new ReportParameterCollection();<BR> ReportParameter username = new ReportParameter("UserName", Utils.SessionValues.GetLoggedUserName());<BR> par.Add(username);</P> <P> ReportParameter asOfDate = new ReportParameter("AsOfDate", txtReportDate.SelectedDate.ToString());<BR> par.Add(asOfDate);</P> <P> ReportViewer1.ServerReport.SetParameters(par);</P> <P> reportPanel.Visible = true;<BR> //ReportViewer1.Visible = true;</P> <P> ReportViewer1.ServerReport.Refresh();<BR> }</P>