Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
325 views
Hi,

We are using Telerik grids in our website built on ASP.Net 4.0. We are getting an internal exception as:

System.Web.HttpException (0x80004005): This is an invalid webresource request.
   at System.Web.Handlers.AssemblyResourceLoader.System.Web.IHttpHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)}

This exception is thrown every time any grid loads. Though, this is not affecting grid's working but we want to track at which point this exception is thrown and how much this can affect our website's performace.

Please help us regarding this.
Daniel
Telerik team
 answered on 06 Jun 2012
6 answers
329 views
Trying to export data from a grid to xls/word/pdf but most of the data is in a ItemTemplate since we wanted to display the information in a diffrent format.  Is there anyway to get the data from the ItemTempate (All the information is coming from the same datasource) to the export.  (VB Example if you can).
Daniel
Telerik team
 answered on 06 Jun 2012
1 answer
85 views
I have a chart with two YAxis. Before, both work. But now, second YAxis do not work and I don't know cause. Below my code.

private

 

 

RadChart criaGrafico(TransacoesNegadasPorBinBL bl)

{

 

RadChart radChart1 = new RadChart();

radChart1.Height = 450;

radChart1.Width = 1080;

radChart1.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Center;

radChart1.ChartTitle.TextBlock.Text = bl.tituloGrafico;

radChart1.ChartTitle.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Center;

radChart1.ChartTitle.TextBlock.Appearance.TextProperties.Font =

 

new System.Drawing.Font("Arial", 15, System.Drawing.FontStyle.Bold);

radChart1.ChartTitle.Appearance.Dimensions.AutoSize =

 

false;

radChart1.ChartTitle.Appearance.Dimensions.Height = 25;

radChart1.ChartTitle.Appearance.Dimensions.Width = 750;

radChart1.ChartTitle.Appearance.Dimensions.Margins.Left = Telerik.Charting.Styles.

 

Unit.Percentage(5);

radChart1.ChartTitle.Appearance.Dimensions.Margins.Right = Telerik.Charting.Styles.

 

Unit.Percentage(5);

radChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Bottom;

radChart1.Legend.Appearance.Overflow = Telerik.Charting.Styles.

 

Overflow.Row;

radChart1.Legend.Appearance.Dimensions.AutoSize =

 

false;

radChart1.Legend.Appearance.Dimensions.Height = 25;

radChart1.Legend.Appearance.Dimensions.Width = 400;

radChart1.Legend.Appearance.Border.Color = System.Drawing.

 

Color.Transparent;

radChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Bottom;

radChart1.Legend.TextBlock.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Center;

radChart1.PlotArea.Appearance.FillStyle.FillType = Telerik.Charting.Styles.

 

FillType.Solid;

radChart1.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.

 

Color.Transparent;

radChart1.PlotArea.Appearance.Border.Visible =

 

false;

radChart1.PlotArea.Appearance.Dimensions.AutoSize =

 

false;

radChart1.PlotArea.Appearance.Dimensions.Margins.Top = Telerik.Charting.Styles.

 

Unit.Percentage(20);

radChart1.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.

 

Unit.Percentage(30);

radChart1.PlotArea.Appearance.Dimensions.Margins.Left = Telerik.Charting.Styles.

 

Unit.Percentage(8);

radChart1.PlotArea.Appearance.Dimensions.Margins.Right = Telerik.Charting.Styles.

 

Unit.Percentage(7);

radChart1.PlotArea.Appearance.Dimensions.Height = 300;

radChart1.PlotArea.Appearance.Dimensions.Width = 1000;

 

// Telerik.Charting.Styles.Unit.Pixel(400);

radChart1.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.

 

ChartAxisLayoutMode.Inside;

radChart1.PlotArea.XAxis.AutoScale =

 

false;

radChart1.PlotArea.XAxis.IsZeroBased =

 

false;

radChart1.PlotArea.XAxis.Appearance.MajorGridLines.Visible =

 

false;

radChart1.PlotArea.XAxis.Appearance.TextAppearance.AutoTextWrap = Telerik.Charting.Styles.

 

AutoTextWrap.True;

radChart1.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Top;

radChart1.PlotArea.XAxis.Appearance.TextAppearance.TextProperties.Font =

 

new System.Drawing.Font("Arial", 8);

radChart1.Legend.Appearance.ItemMarkerAppearance.Dimensions.Width = 25;

radChart1.Legend.Appearance.ItemMarkerAppearance.Figure = Telerik.Charting.Styles.

 

DefaultFigures.Rectangle;

 

ChartSeries chartSeries1 = radChart1.CreateSeries("Quant. Transações ", System.Drawing.Color.Blue, System.Drawing.Color.Blue, ChartSeriesType.Bar);

 

ChartSeries chartSeries2 = radChart1.CreateSeries("Percentual Negadas ", System.Drawing.Color.Red, System.Drawing.Color.Red, ChartSeriesType.Line);

chartSeries1.Type =

 

ChartSeriesType.Bar;

chartSeries2.Type =

 

ChartSeriesType.Line;

chartSeries2.Appearance.LabelAppearance.Visible =

 

false;

chartSeries1.DefaultLabelValue =

 

"#Y{F0}%";

 

//chartSeries2.Appearance.LabelAppearance.LabelConnectorStyle.

radChart1.Legend.Appearance.Overflow = Telerik.Charting.Styles.

 

Overflow.Row;

radChart1.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Bottom;

radChart1.PlotArea.YAxis2.Visible = Telerik.Charting.Styles.

ChartAxisVisibility.True;

radChart1.PlotArea.YAxis2.AutoScale =

false;

//radChart1.PlotArea.YAxis2.AddRange(0, 0.8, 0.1);

chartSeries2.PlotArea.YAxis.YAxisType.ToString();

radChart1.PlotArea.YAxis2.AddRange(0, 1200, 100);

 

//A orientação do gráfico

radChart1.SeriesOrientation =

 

ChartSeriesOrientation.Vertical;

chartSeries1.PlotArea.XAxis.AddRange(0, bl.listaValor.Count, 1);

 

for (int i = 0; i < bl.listaValor.Count; i++)

{

chartSeries1.PlotArea.XAxis[i].TextBlock.Text = bl.listaValor[i];

}

chartSeries1.SetValues(bl.listaQuantTransacoes.ToArray());

chartSeries2.SetValues(bl.listaQuantTransacoes.ToArray());

 

return radChart1;

}


Paulo
Top achievements
Rank 1
 answered on 06 Jun 2012
3 answers
56 views
I have a Scheduler with the appointments and resources bound from a WCF service.

According to this page on the help site I should be able to use WeekView and MonthView as long as I use ResourcePopulationMode="ServerSide".

With this setting in place and the scheduler set to show WeekView by default I get a server error saying "Date grouped WeekView is not supported when using Web Service binding" (ysod.png)

Which of these is correct? Should I be able to use WeekView and MonthView with date grouping or not?

Also, if I set the scheduler to show DayView by default and then click on the WeekView button on the scheduler it renders as attached (halfrender.png) but also gives an error in Visual Studio (vserror.png)

I am using Telerik.Web.UI.dll version 2011.3.1305.40

Thanks

Simon
Ivana
Telerik team
 answered on 06 Jun 2012
1 answer
121 views
Hello ,
I have a form with a radupload control and a submit button .
When a user upload a file , the radprogressarea pop up .
The problem is when a user click on the cancel button ,
the button click event handler takes place and try to preform some actions on the uploaded file.
Is there a way to block the event handler from firing? or a way to determine whether the upload was cancled?

Kind regards,
oren
Bozhidar
Telerik team
 answered on 06 Jun 2012
8 answers
312 views
Is there a way to disable, or rather replace the input field of a RadMonthYearPicker with a label? Or just show the image?

I'm trying to create a GridView that emulates a calendar since the functionality I need doesn't exist with the RadCalendar and I'd really like to emulate the way the RadCalendar uses the paged month/year label as the trigger to open the MonthYearPicker. Is there anyway I can accomplish that myself?
Vasil
Telerik team
 answered on 06 Jun 2012
1 answer
126 views
When radgrid at  add new mode, when I enter ID (text box), populate the rest of the informatoin on the row (name, phone), this happens  when the user exit the ID text box. ( get the ID entered on the grid cell, go to database get the rest of the info). Is this radgrid can do? Do you have a similar example?

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2012
5 answers
246 views
ASPX
   <script type="text/javascript">
    //<![CDATA[
          function showMenuAt(e) {
              var contextMenu = $find("RadContextMenu1.ClientID");
              var x = parseInt($get("contextX").value);
              var y = parseInt($get("contextY").value);


              if (isNaN(x) || isNaN(y)) {
                  alert("Please provide valid integer coordinates");
                  return;
              }

              contextMenu.showAt(x, y);


              $telerik.cancelRawEvent(e);
          }


          function showMenu(e) {
              var contextMenu = $find("RadContextMenu1.ClientID");


              if ((!e.relatedTarget) || (!$telerik.isDescendantOrSelf(contextMenu.get_element(), e.relatedTarget))) {
                  contextMenu.show(e);
              }


              $telerik.cancelRawEvent(e);
          }
    //]]>
    </script>

      <Telerik:RadContextMenu id="RadContextMenu1" runat="server"
         EnableRoundedCorners="true" EnableShadows="true">
                <Items>
                    <Telerik:RadMenuItem Text="Trees" />
                    <Telerik:RadMenuItem Text="Sunset" />
                    <Telerik:RadMenuItem Text="Mountains" />
                </Items>
            </Telerik:RadContextMenu> 


And from VB.net codebehind I try to SHOW the popup
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "reloadamchart" & Guid.NewGuid.ToString, "showMenu(e);", True)

Another tricky part is that Google Map right_click gives you map coordinates lat/lng insted of the client pixel where the right click took place. I gues all clients will have different screen resolutions making this very difficult ?    

'This is example of what I would like to accomplish using RadContextMenu.

http://googlegeodevelopers.blogspot.se/2009/09/introducing-contextmenucontrol-10-give.html 
http://econym.org.uk/gmap/example_context.htm 
Johan
Top achievements
Rank 1
 answered on 06 Jun 2012
1 answer
107 views
hi dears
i use RadMenu. it works well in liveDemo but can not render in my project.
i tested in WebApplication and WebSite and in all browsers. but i does not load completely.
there is an image to illustrate

please advice
thanks
Kate
Telerik team
 answered on 06 Jun 2012
3 answers
155 views
Sorry but I don't understand the documentation about radscriptmanager
My question is
I have a page that usually load jquery.js from my site
now I would like to use radScriptmanager with the code below  :
 and all is ok 
but why I have to inlcude the link to jquery.js  in the head section of the page ?
( some like <script src="/js/jquery-1.6.2.min.js" type="text/javascript"></script> ) 
if telerik use jquery - why this is not usable from all the code in the page? 
I test it with this simple script 
 if (jQuery) {
            alert('jQuery is loaded!');
        }
If I don't inlcude jquery in the head section the alert don't fire
thanks in advance
ciao



<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableCdn="true">
        <Groups>
       <telerik:ScriptReferenceGroup>
           <Scripts>
               <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.jQueryPlugins.js" />
           </Scripts>
       </telerik:ScriptReferenceGroup>
   </Groups>
   </telerik:RadScriptManager>
Genady Sergeev
Telerik team
 answered on 06 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?