Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 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
77 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
37 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
95 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
38 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
1 answer
113 views
Dear Telerik Team, 

I have created a template column in RadGrid (code attached) . Now I want to insert constant data in this template column from server side.  Also I want to reuse this column multiple times... Please answer if it is possible ? Following are description of the problems

Like in this grid I have created table, now I want to insert data in the column of that table. I have no SQL data base to bind with... is there a way to insert data in this table from server side. How I can access the columns and rows of that inner table. 

2nd thing is I want to use this entire structure (template column) in each column of the grid. and number of columns of grid are unknown say I need to repeat this structure to unknown number of times.

Abdul Ahad 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="extrapage.aspx.cs" Inherits="ERM.Sales_Mix.extrapage" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None">
<MasterTableView>
<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
 
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
    <Columns>
        <telerik:GridTemplateColumn UniqueName="TemplateColumn">
            <ItemTemplate>
                <table ID="Table_01" border="0" cellpadding="0" cellspacing="0" width="400">
                    <tr>
                        <td align="center" background="images/TABLE_01.gif" colspan="5" height="29">
                            <font color="#FFFFFF" face="Arial" size="+1">Month Title</font></td>
                    </tr>
                    <tr>
                        <td background="images/TABLE_02.gif" height="27" width="156">
                        </td>
                        <td background="images/TABLE_03.gif" height="27" width="62">
                        </td>
                        <td background="images/TABLE_04.gif" height="27" width="60">
                        </td>
                        <td background="images/TABLE_05.gif" height="27" width="62">
                        </td>
                        <td background="images/TABLE_06.gif" height="27" width="60">
                        </td>
                    </tr>
                    <tr>
                        <td height="19" width="156">
                        </td>
                        <td height="19" width="62">
                        </td>
                        <td height="19" width="60">
                        </td>
                        <td height="19" width="62">
                        </td>
                        <td height="19" width="60">
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5" height="19" width="60">
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
</MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
 
</body>
</html>
 
Johny
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
490 views
I'd like to make the background fill color of RadButtons different colors from the color set by the style.  Can that be done through code at runtime?
Bozhidar
Telerik team
 answered on 23 Feb 2011
9 answers
227 views
Hi,

Am trying to call a popup page of my own when appointment on radschduler is clicked.
I cannot give ReadOnly=false as I need to use <AdvancedInsertTemplate> too.
I am calling my popup in this manner:

 

 

protected void rsPeopleScheduler_OnAppointmentClick(object sender, Telerik.Web.UI.SchedulerEventArgs e){

 

 

try

 

 

 

 

{

 

//Response.Redirect("default.aspx?apptid=" + e.Appointment.ID);

 

 

 

 

 

string popupfrm = @"window.showModalDialog('PeopleJobDetails.aspx'

 

,''

,'dialogWidth:1500px; dialogHeight:700px; center:yes');"

 

;

 

 

RadScriptManager.RegisterClientScriptBlock(this,

 

 

this.GetType(),

 

 

"OpenPopupPeopleJobDetails",

 

popupfrm,

 

true);

 

}

 

catch (Exception ex)

 

{ }

 

finally { }

 

}

Its coming out fine but when I try to close the popup window:

 

 

RadScriptManager.RegisterClientScriptBlock(this,

 

 

this.GetType(),

 

 

"Close_Window",

 

 

"window.close();",

 

 

true);

 

It goes back radScheduler but with a appointment edit window open on the scheduler.

May I know how I can avoid that window?

Suja
Top achievements
Rank 1
 answered on 23 Feb 2011
7 answers
119 views
I am currently using a trial version of the Telerik RadControls for ASP.NET AJAX.

I have created a grid and I am using a usercontrol to display my edit form for the grid.

Editing records in the grid works fine, using the following code...

protected void SectionGrid_UpdateCommand(object source, GridCommandEventArgs e)
{
   UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
   ...
   ...

However, I am getting problems when I try to create a new record in the database, using the following code:

protected void SectionGrid_InsertCommand(object source, GridCommandEventArgs e)
{
    UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
    ...
    ...

In this second case, userControl always evaluates as NULL.

Can anyone see what I'm doing wrong?

Matt.
Matt
Top achievements
Rank 1
 answered on 23 Feb 2011
1 answer
84 views

Hello.
I need to use a popup window. In the popup window will have two buttons.
After pressing need to hide the popup window using C # and store the value.

Shinu
Top achievements
Rank 2
 answered on 23 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?