Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
Hi,

I use a RadGrid with my own filter implementation. The user can use a textbox to filter the result (only rows containing the keyword will be added to the datasource in the NeedDataSource event). Now I have the strange issue that if I am on page 2 and do a filter and I end up with a row count which is less than the page size (e.g. the page size is 25 and I have only 5 rows), the RadGrid will show "page 2 of 1" and displays no records. 
This only occurs if I grouped after a column, Without grouping, everything works fine.

I the DataBound event I can see that CurrentPageIndex is 1 and PageCount is 1, so something went wrong. Setting the CurrentPageIndex to "0" won't work.

I'm using Q3 2011,
JP
Top achievements
Rank 1
 answered on 06 Jun 2012
3 answers
151 views
Hi,

We have problem with RadToolTipManager, as it is not showing the title attribute value of anchor tag in FF/Chorme. But it has no problem in IE.

Could you please help us in this regard?

Our code is like this:
Code behind
ancNotes.InnerText = "....";
ancNotes.Title = Notes;
rtttooltip.TargetControls.Add(ancNotes.ClientID, true);

.aspx

<a id="ancNotes" runat="server"></a>
<telerik:RadToolTipManager ID="rtttooltip" runat="server" AnimationDuration="300"
ShowDelay="200" Width="480px" Height="227px" RelativeTo="Element" Animation="Slide"
Position="TopLeft" ManualClose="true" ContentScrolling="Y">
</telerik:RadToolTipManager>
VIJAY
Top achievements
Rank 1
 answered on 06 Jun 2012
5 answers
357 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
360 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
93 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
70 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
139 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
334 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
137 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
265 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?