Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
49 views

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.

Pavlina
Telerik team
 answered on 09 May 2011
6 answers
186 views
If a RadMenu is rendered, the top div has a "float: left" style. Why has Telerik chosen to do so?

I have just started to use the controls. However, when think about scenarios with the RadMenu, I believe that most of the time the RadMenu will be a block in the top of a web page. So "float: left" is more an annoyance than a benefit.

I do know that I can overrule the floating in my own CSS. I just want to understand, why the floating was chosen.

Michael G. Schneider
mgs
Top achievements
Rank 1
 answered on 09 May 2011
3 answers
191 views
Hey guys

I'm new to telerik and I'm facing a big problem. I'm developping a web application and I need, when I click on a button, to make appears a new window (window B) inside the current window (windows A). So, I followed this demo http://demos.telerik.com/aspnet-ajax/fileexplorer/examples/client-sideapi/fileselectordialog/defaultcs.aspx, but there's still a problem. The window B appears over the window A, but I can drag it "out" of the windows A and a scrollbar appears. So, I tried to put a RestrictionZoneID (using css) that will block the window B at the edge of the window A by using the current resolution of the screen, but I don't know how to find the resolution in css. Can someone help me ? In fact, the best would be that my window have the same behavior that any Microsoft window.
Marin Bratanov
Telerik team
 answered on 09 May 2011
3 answers
97 views
We have integrated our registration web page with rad captcha control. Its working fine in most of the desktops. But in some desktops the page is not all loading it is showing "downloading 1 item". When we remove the audio captcha functionality there, its working fine. Please can anyone help in solving the issue.
Pero
Telerik team
 answered on 09 May 2011
4 answers
261 views
We have a site that we precompile using Visual Studio 2008.  We go to Build > Publish Web Site to build the DLL and COMPILE files for our precompiled website.  The only checkbox we have checked on this page is "Use fixed naming and single page assemblies".  Until this last upgrade from 2010.1.509.35 to 2010.3.1215.35 we have had no issues when trying to update individual precompiled pages.  For example if we make changes to Default.aspx and then precompile it into default.aspx.######.compiled and App_Web_Default.aspx.######.dll we were able to take these two files and put them into the bin directory on our production server.  Thus elimnating the need to update the entire bin folder for every single update. 

It seems however that recently if we are using 2010.3.1215.35 in our deveolpment environment, precompile our pages, and put them on the production server (which has the 2010.1.509.35 dll's) we are getting issues.  In particular the "File has not been pre-compiled, and cannot be requested". 

To reproduce this error in it's simplest form I created two WebApplications each with just one Default.aspx page.  Site1 and Site2.  I use the Q1 release in Site1 and Q3 release in Site2.  I then precompile both of these sites.  When I copy the precompiled default files (.dll and .compiled) from Site2 to Site1 we get the error described above.  We have not had these issues previously and I am hoping you can provider assistance. I tried to attach the two sites for your convenience, but am only able to attach images.

Thank You
Maria Ilieva
Telerik team
 answered on 09 May 2011
3 answers
100 views
Ok. I have a grid which is a list of tests for patients. It has two grid check columns at the end to allow selection for either male, female or both for each row.

I need to be able to allow the checkboxes to be editable immediately on load.

I have used  -

e.Item.Edit = True in itemcreated and allowed multiple row edits in the mastetableview.

If I use form edit you can change the values of the checkboxes in the form. If I use inplace edit the checkboxes are disabled.

Really stuck with this. Either a bug with inline or I am doing something totally wrong.

Any ideas?

Tox
Toxic
Top achievements
Rank 1
 answered on 09 May 2011
2 answers
180 views
Hi,

I am trying out Telerik Controls for a potentially large projecy. As part of it, I am designing a line chart and made the x-axis rotation to -90, removed legend etc. The problem is the x-axis labels are overlapping the plot area and I can't seem to figure this out.

Attached is the image.

Please help.

Thanks
Ananth

<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>
Ananth Godavari
Top achievements
Rank 1
 answered on 09 May 2011
1 answer
92 views
Hi,

Earlier we were using 2009 Q1 RadMenu and recently upgraded to 2011 Q1, but we are having some styling issues. What we did for newer version was just updated newer dll reference.

Do we need to to any thing while upgrading version in order to have same look and feel like earlier version.


Please suggest me.

Note: we were using customizing styles earlier.

Thanks
Tan.
Kate
Telerik team
 answered on 09 May 2011
2 answers
274 views
I have a fairly simple page where a user selects report parameters, clicks a button, then a Report Viewer is displayed(visible=false on page load)...

I get this error after the user clicks the button:

Microsoft JScript runtime error: Sys.InvalidOperationException: Could not find UpdatePanel with ID 'ctl00_ctl00_MainContent_ReportMainContent_ReportViewer1_ReportViewer'. If it is being updated dynamically then it must be inside another UpdatePanel.

I know it has to do with the Report Viewer being invisible at first, but I'm not sure how to use RadAjax and still hide the Report Viewer until I am ready to use it?  Below is the HTML and code behind for the button click.

Environment
Windows 7
Visual Studio 2010
ASP.NET 4.0
Latest Build for Telerik Controls(2011.1.413.40)
IE 8

thanks

mark

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>                                
&nbsp;&nbsp;&nbsp;&nbsp;<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>

Code behind for button click:

 

<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>


Maria Ilieva
Telerik team
 answered on 09 May 2011
1 answer
67 views
Hi.

I am using file explorer in my app.
file explorer cntrl desgin  is nt showing properly while loading the page.once i click upload and close immedietly then desgin s cmng properly.

Do i need to set any property?Please help me out.
i am trying from morng..

Thanks
Bhavani
Dobromir
Telerik team
 answered on 09 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?