Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hello,

I'm trying to get File Explorer hooked up to a SQL Server 2008 database, and I can't get past this error.  It displays the folders, and I can see it hitting the database and returning records, but when the page loads it throws this error:

Microsoft JScript runtime error: 'Sys.WebForms.PageRequestManager' is null or not an object

Does anyone have a solution for this error?  Also, the files are being saved as binary streams, so if anyone has any code on how to convert these back into files using File Explorer, I'd be in much gratitude.

Thanks,

Scott
Dobromir
Telerik team
 answered on 23 Feb 2011
1 answer
164 views
Hi Telerik,

This should (hopefully!) be really simple.

I have this:

.RadDock .rdTop{text-align:center;}

This does basically what I want -- it centers the title of the RadDock. But, when the calculation is made on where to center it, it takes into consideration the far LHS of the RadDock to the start of the first command on the RHS. This is causing my text to be displayed off-center compared to the content in the RadDock.

Is there a way to do something like text-align:center text-shift-right: 38px? I tried using text-indent, but it seems to indent how far the icons are from the RHS and not the text itself.

Thanks!
Pero
Telerik team
 answered on 23 Feb 2011
1 answer
147 views
Hi

I open my window in code behind using VisibleOnPageLoad and AjaxRequest.  I also set a navigation url in this ajax request. When I want to close window I call javascript function on page which was loaded as content of the window. Function look like this:
<script type="text/javascript">
    
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
        return oWindow;
    }
 
    function CloseAndRebind() {
        GetRadWindow().BrowserWindow.selectionFinalize();
        GetRadWindow().Close();
        return false;
    }
    
</script>
>

But when window is closed, it opening itself.
Shinu
Top achievements
Rank 2
 answered on 23 Feb 2011
1 answer
117 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
102 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
208 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
74 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
128 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
96 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
97 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?