Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
254 views
Hi Allow,

I am using an entity datasource on a grid and allowing auto inserts, updates and deletes. Everything seems to be working fine accept while trying to delete i am getting the following:

Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.

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.Web.UI.WebControls.EntityDataSourceValidationException: Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.

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:

[EntityDataSourceValidationException: Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.]
   System.Web.UI.WebControls.EntityDataSourceView.ConvertProperties(IDictionary values, PropertyDescriptorCollection propertyDescriptors, ParameterCollection referenceParameters) +71835
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +386
   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +89
   Telerik.Web.UI.GridTableView.PerformDelete(GridEditableItem editedItem, Boolean suppressRebind) +265
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +4320
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


I have no code behind (nice) and the column markup looks like:

<

 

telerik:GridNumericColumn UniqueName="freightRate" SortExpression="freightRate"

 

 

HeaderText="Freight Rate" DataField="freightRate" ColumnEditorID="GridNumericColumnEditor1"

 

 

FooterText="Freight Rate" NumericType="Currency" DataType="System.Decimal">

 

 

</telerik:GridNumericColumn>

 


Is it because the NumericType? Should i use a Dataformatstring instead? thanks.

rw

Radoslav
Telerik team
 answered on 08 Dec 2011
14 answers
210 views
Hi All,

i used the idea of using the BinaryImageColumn for loading, inserting and editing images stored in a database with RadGrid and ajax disabled only when click the insert or edit button of the edit form like the demo on the floowing link
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=grid

but i noticed in this demo, when the user click more than one on the insert button, the file will be saved more than one time!!!!

how can i solve this problem????
any idea to work around????

Thanks in Advanced...
Asa'ad...

Milena
Telerik team
 answered on 08 Dec 2011
1 answer
223 views
Hi, I have an app where I am using a RadNumericTextBox, I am required to allow users to enter positive and negative numbers and the sign must always be shown.  I have found no way to have the radnumerictext box to allow entering a positive number as +1.75, negative works fine.  This is for an optometry app where numbers are always entered with leading sign.

Anyone know how to make radnumerictextbox allow leading + sign.

Thanks
John
Kevin
Top achievements
Rank 2
 answered on 08 Dec 2011
2 answers
139 views
Hi,

I have 2 toolsfiles and i have 2 buttons. Based on button click i want to load toolsfile to radeditor. How can i achieve this on clientside.
Runat="Server"
Top achievements
Rank 2
 answered on 08 Dec 2011
1 answer
127 views
I am creating a bar chart to display the frequency each item occurred in a data set .

The problem is that legend display the item name and on the chart the each bar has an ID I want to either add the ID to the legend or replace the Id with the Item name.

Thank you and Best Regards 
Yehia 
Petar Marchev
Telerik team
 answered on 08 Dec 2011
2 answers
95 views
I'm looking to add a tooltip to a certain column in my grid, lets says its called 'TestColumn'. How do i go about adding a tooltip to cells  in just that column and not the others. At the moment i am applying a tooltip to each cell as follows:
if (e.Item is GridDataItem)
       {
           foreach (TableCell cell in e.Item.Cells)
           {
               if (cell.Text != " ") cell.ToolTip = cell.Text;
           }
       }

How do i modify this to take the column 'TestColumn' into account?
Michael
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
69 views
hi Telerik team,
I have an issue relate to radchart (i'm using RAD2010Q1.NET3.5)
The radchart show corner marks at 4 angles. I want to remove it.
Can you tell me how to do that
Please see attached file for details.
Thanks.
Lee K
Ves
Telerik team
 answered on 08 Dec 2011
2 answers
87 views
Hello everyone,

I have an issue with RadGrid.

I have used "InitInsert" for the CommandName with LinkButton.

When I click on Link button i Get the "e.Item.IsInEditMode" = True for IE but for Firefox its always false.

In IE my code works fine but in Firefox its not opening the Inline Insert..

Please help me to resolve this issue.




Rakesh Gupta
Top achievements
Rank 2
 answered on 08 Dec 2011
4 answers
132 views
Hello Telerik,

I have quite a simple splitter, which makes scrollbars after you move the splitter. (before that it is ok with no scrollbars).
It happens only on Firefox and Chrome. Surprisingly, i.e. seems to manage it nicely.

I guess it is a styling issue.

here is the code (simple aspx with no code behind):
<%@ Page Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
    }
</script>
 
<head id="Head1" runat="server">
<title></title>
<style>
html, body, form
{
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow: hidden;
}
body
{
    background-color:#FFFFFF;
    font-size:12px;
    font-family:Arial;
    direction:rtl;
}
   #main
    {
        height: 100%
    }
</style>
</head>
<body>
    <form id="form2" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            </Scripts>
        </asp:ScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableOutsideScripts="true" EnablePageHeadUpdate="False"> </telerik:RadAjaxManager>
        <div id="main">
                <asp:Panel runat="server" Height="45">
                    header    
                </asp:Panel>
                <asp:Panel runat="server"  Height="100%">
                    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
                    <telerik:RadSplitter ID="NestedSplitter" runat="server"  LiveResize="true" Height="100%" Width="100%">
                        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400">
                            main menu
                        </telerik:RadPane>
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Backward" />
                         <telerik:RadPane ID="ContentPane" runat="server">
                             <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
                                <telerik:RadSplitter ID="MainSplitter" runat="server"  Height="100%"  Width="100%" Orientation="Horizontal">
                                    <telerik:RadPane ID="TopPane" runat="server" Scrolling="Y" Height="30%" MinHeight="100" CssClass="TopPane">
                                        top content
                                    </telerik:RadPane>
                                    <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" />
                                    <telerik:RadPane ID="MainPane" runat="server" Scrolling="Y" Height="70%">
                                        edit content
                                    </telerik:RadPane>
                                </telerik:RadSplitter>
                            </telerik:RadAjaxPanel>
                        </telerik:RadPane>
                    </telerik:RadSplitter>
                </asp:Panel>
        </div>
    </form>
</body>
</html>

What do you advice to change?

Many thanks,
 -Itye
Dobromir
Telerik team
 answered on 08 Dec 2011
7 answers
122 views
Hi,

I have a tree which is populated by LoadOnDemand (wcf). The root nodes are created server-side when the tree is initialized (initalize is only called once - when the page is not in PostBack).
After a postback, the root nodes don't have a text and an icon anymore. But the child nodes are all ok.

In the screenshot there are several RadDocks. But meanwhile I tested some scenarios and I can tell you that it always happens when
the tree is in an UpdatePanel.

If I add the tree directly to the page, everything is fine after a postback. If I add the tree to an UpdatePanel, the described problem occurs.

In the screenshot the RadDocks are recreated after a postback (and therefor no Initialize is called). Just the left one is the newly created tree which is also initialized.
JP
Top achievements
Rank 1
 answered on 08 Dec 2011
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?