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

I'm new at this forum, so I hope I post this in the right place. I have a database with several data in. I want to select a data in database with dropdownlist. When you select the value in ddl, the selected data should come to chart.... My example;
 - Database: ProblemDescription,
 - My Tables:  ID, Name, Department, Problems, Description, Date, Hour

I show the items of Department in dropdowlist, what I want is; when you choose a department you must see the Problems in Xaxis and I count the items in Yaxxis. My query; SELECT Department, Problems, COUNT(*) AS totalProblems FROM tblProblemDescription GROUP BY Department, Problems
Does anyone show me a way how to solve this problem with databinding in RadChart.
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 23 Feb 2011
4 answers
92 views
In your Tooltipified Radgrid I have implemented everything that I see. 
However, after I load the page, I currently don't databind anything (or retrieve any data) and the tooltip appears as if it's loading and then it disapears a second later.  When it disapears, it causes the page to completely referesh.

Any idea what's happening here?

Let me give you a little FYI about my scenario:
This is a user control within a user control.  I use a radajaxmanagerproxy object in the user control that represents the tooltip.  The first usercontrol is a customized grid that I use through out the web app. 

I've registered the tooltip control on the grid control page (which appears to be fine).  I've written the events on the the grid page for ondatabind/onajaxupdate simarlily (again just trying to get the tooltip to show up.

Thanks for any help.  I'm kind of at my wits end on this one.
Iana Tsolova
Telerik team
 answered on 23 Feb 2011
3 answers
190 views
Hi telerik team

I would like to localize the header context menu items of the rad grid (not grid column headers)

<MasterTableView Name="Class_MasterTableView" EnableHeaderContextMenu="true"

Remarks:

  • I'm using rad controls for asp.net ajax Q3 2008
  • framework 3.5
  • IE 7
  • windows vista

I post this question later but the reply was describing how to localize grid columns [not grid header context menu] but when I tried to post a reply by following the supplied link, it always give me "the page can not be found" 

this occurs since the new web site was published .

thanks in advance

Daniel
Telerik team
 answered on 23 Feb 2011
1 answer
60 views
Hi All,

I am a bit new working with the RadFormDecorator. I assume I'm missing something trivial, but I couldn't find anything.

I have this:

<form id="form1" runat="server">
 
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" Skin="Web20" />
 
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <fieldset>
        <legend>Settings</legend>
        <table>
            <tr>
                <td class="style4">
                    Auto-Refresh Enabled:</td>
                <td class="style5">
                <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" oncheckedchanged="CheckBox1_CheckedChanged" />
                </td>
                <td class="style6">
                    <telerik:RadNumericTextBox ID="RadNumericTextBox1" Runat="server" Label="Auto-Refresh Interval:" MaxValue="60" MinValue="0" ShowSpinButtons="True" Value="0" Width="175px" Enabled="False">
                    <NumberFormat DecimalDigits="0" />
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</telerik:RadAjaxPanel>
 
</form>
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
    RadNumericTextBox1.Enabled = (sender as CheckBox).Checked;
}

When the page first loads RadNumericTextBox's Label is grayed out because RadNumberTextBox is disabled. The user checks the checkbox, RadNumericTextBox becomes Enabled, but its font color stays gray.

I know I could just overwrite the font color, but I'm pretty sure this is something RadFormDecorator should be able to handle.

Any ideas?

Thanks
Georgi Tunev
Telerik team
 answered on 23 Feb 2011
1 answer
113 views
Hi folks,

I'm trying to pdf-export a grid including images, but gets the following exception:

Server Error in '/' Application.
--------------------------------------------------------------------------------
 
System.ArgumentException: Parameter is not valid.
  at System.Drawing.Bitmap..ctor(Stream stream)
  at Telerik.Web.Apoc.Image.ApocImage..ctor(String href, Byte[] imageData)
  at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.SystemException: System.ArgumentException: Parameter is not valid.
  at System.Drawing.Bitmap..ctor(Stream stream)
  at Telerik.Web.Apoc.Image.ApocImage..ctor(String href, Byte[] imageData)
  at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
 
Stack Trace:
 
 
[SystemException: System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Stream stream)
   at Telerik.Web.Apoc.Image.ApocImage..ctor(String href, Byte[] imageData)
   at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
   at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
   at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
   at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
   at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
   at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)]
   Telerik.Web.Apoc.ApocDriver.FireApocError(String message) +122
   Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) +942
   Telerik.Web.Apoc.ApocDriver.Render(XmlReader inputReader, Stream outputStream) +293
   Telerik.Web.Apoc.ApocDriver.Render(TextReader inputReader, Stream outputStream) +61
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderForm(HtmlTextWriter nullWriter, Control form) +2020
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +8681289
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
   Telerik.Web.UI.Grid.Export.TableViewExporter.PdfExportRenderPage(HtmlTextWriter nullWriter, Control page) +146
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +693
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
 
  
 
 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955

Anybody have an idea what to do?

I'm not getting the error while exporting to doc or excel, but the images can't still be shown.

Cheers...
Daniel
Telerik team
 answered on 23 Feb 2011
1 answer
90 views
I am unable to show -ive values on pie Chat, All the -ive values are coming as positive values on pie-charts.

I have following set of rows in datatable

Depart_Name Cost
A 50
B 25
C -10
D 48
E -63
Total 50

While binding above data -10 and -63 are coming as +ive values on pie-chart and data as inconsistent with request to other values.
Please suggest some way-out for this
Yavor
Telerik team
 answered on 23 Feb 2011
3 answers
81 views
Our company purchased the Telerik tools 9/2010

I have read through the trouble shooting,  but am unable to fix the issue.

Intermittently I get errors rendering the controls.  I searched for the troubleshooting for it in this forum.

I arrived here:

http://www.telerik.com/help/aspnet-ajax/troubleshooting.html

Which tells me to go here: 

http://blogs.microsoft.co.il/blogs/kolbis/archive/2008/06/29/unable-to-cast-object-from-type-x-to-type-x.aspx

Which tells me this:

Unable to cast object from type 'x' to type 'x'

Here is a problem I encountered while working with Visual Studio 2005 and 2008....

The last time this happened to me was while working on TFS custom control. So in order to create a custom control, we must add the assembly we have created and a wicc file to the following folder:

"C:\Documents and Settings\All Users\Application Data\Microsoft\Team Foundation\Work Item Tracking\Custom Controls\9.0"

This is the path where TFS (Team Explorer) will look at when using custom controls.

When I deployed a new version of the custom control to that location I suddenly started receiving the InvalidCastException telling me that it was:

"Unable to cast object of type 'x' to object of type 'x'"

So, what happened here? The common sense tells us that this should be a version issue.

What did I find out?

If you attach to a running instance of VS2005/8 and check what Modules are loaded (you may need to add the Modules window command from the Debug category in Tools --> Customize...) you'll probably see two versions of your assembly are loaded, or even the same version of the assembly loaded twice: in both cases you'll see the same error message.

Why does it happen?

The IDE uses cache to store the assemblies for its projects. The IDE caches versions of assemblies in the following folder:

"x\Documents and Settings\user\Local Settings\Application Data\Microsoft\VisualStudio\8.0\ProjectAssemblies"

And at least in my case doesn't detect the particular assembly containing the type has a new version and it doesn't update the cache.

How do I solve it?

So first step, delete all folders in ProjectAssemblies. Next, make sure the IDE can only find ONE copy of your assembly, which is easier if you only have one copy of the DLL in your disk, and only one reference to it (or exactly the same reference from all projects) in your solution


Which I did.  I had two folders in the location listed above.  Both had telerik.dll in them.

I deleted both,  but the error resumed shortly after,  and both folders are back.

I also, when I create a new TELERIK project,  have  selection of 'TRIAL' or version 2010.2.826.40

I have UNINSTALLED the trial.  I would have assumed that the problem above is that multiple copies of the DLL are getting loaded,  and that is causing the IDE to freak out.  Having uninstalled the telerik DEMO,  I would have thought that would have fixed it. 

Can you please explain how I 'make sure the IDE can only find ONE copy of your assembly, which is easier if you only have one copy of the DLL in your disk'

I am hesitant to upgrade to the latest version because the last thing I want is yet another error being produced due to clashing references.
Thanks
Mason




Erjan Gavalji
Telerik team
 answered on 23 Feb 2011
1 answer
40 views
I have some Telerik asp.net ajax web controls (specifically, the text box and the combo box) on our company's web page.

On our production web server, the controls seems to "disappear" after the system has been up and running for a couple of weeks.
What is happening is that the initialization javascript for the text box starts crashing so the controls don't render properly and we get the javascript error marker in the bottom left corner of IE. (see attached .gif to see how it looks to the users)

The text box uses the following aspx code:
<telerik:RadComboBox ID="ddMarketTier" runat="server" name="market_tier" class="property_select"
    Filter="Contains" EmptyMessage="Market Tier" Width="99%">
    <Items>
        <telerik:RadComboBoxItem Text="Market Tier" Value="" />
        <telerik:RadComboBoxItem Text="Luxury" Value="L" />
        <telerik:RadComboBoxItem Text="Upscale" Value="U" />
        <telerik:RadComboBoxItem Text="Midscale" Value="M" />
        <telerik:RadComboBoxItem Text="Economy" Value="E" />
    </Items>
</telerik:RadComboBox>

we are also using the jquery 1.4.2 library on some of our aspx controls on this page as well as using the Miron MbCompression library to compress and minify the javascript and css files.

specifically, the compression settings we are using are these:
<CompressorSettings compressCSS="true" reflectionAllowed="true" compressJavaScript="true" compressPage="false" compressWebResource="true" minifyContent="true" combineCSS="true" combineHeaderScripts="true" cachingStorage="OutputCache" autoMode="false" scriptsVersion="1" cssVersion="1">

This has got me stumped as to why the teleric controls only start crashing after a couple of weeks of constant use and only on our production web server.

If anyone has seen a problem like this or has some suggestions, your input would be most appreciated.
Maria Ilieva
Telerik team
 answered on 23 Feb 2011
1 answer
100 views
I can add recurring appointments, and I can create exceptions to the series. I can even delete a particular occurrence (I'm doing all of this via custom forms).

But, how do I reset a particular recurrence exception?

For example, say I create an appointment for 2pm every day. I later change the start time for one occurrence to 3pm. Other than manually editing the occurrence, is it possible to delete this exception and have the series updated so that the occurrence goes back to 2pm?

-- 
Stuart
Veronica
Telerik team
 answered on 23 Feb 2011
1 answer
46 views
I have a search page, and the results grid is AJAX'd using the ProxyManager.

The problem I have is this - sometimes, if the user enters very broad search terms, the search can take a very long time, or even time out. In these cases, I want to be able to cancel the search (after the search is already in progress).

I've been searching on the web and on these forums all day, and I think the short answer to my question is - you can't cancel an AJAX request once it's been started. If that is true, then my next step is to look for some workaround or alternative.

Right now we are attempting to simply reload the page, but is throwing an error:
An unknown error occurred while processing the request on the server. The status code returned from the server was: 0

I am assuming this error is being displayed because we are trying to refresh the page while the AJAX request is still running. Does that seem correct?

Do you have any ideas on how I can make this error go away, or perhaps some other idea on how to get around the problem of not being able to cancel the search?
Maria Ilieva
Telerik team
 answered on 23 Feb 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?