This is a migrated thread and some comments may be shown as answers.

Updating numeric values fails

8 Answers 218 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lovsten
Top achievements
Rank 1
Lovsten asked on 05 Sep 2007, 12:53 PM
I got the gridview datasource set to my collection of objects. One of the values is a decmal field. It show just fine (using the datavalueformat functions). But when I try to change the value and it updates against the object I get this error:

Header: RadGridView Default Error Dialog
Text: The follosing error has occured in the RadGridView: System.ArgumentException: Object of type 'System.String' connot be converted to type 'System.Decimal'. etc etc

8 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 05 Sep 2007, 04:44 PM
Hi Lovsten,

This problem is already fixed - you can find it in our Q2 beta here:
http://www.telerik.com/community/forums/allthreads/b312H-cdd.aspx

Sorry for the inconvenience.
 

Greetings,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Haroon
Top achievements
Rank 1
answered on 06 Sep 2007, 04:26 AM
Hi

The link given has list of known issues fixed for the RadGridview  and it does not say that the editing issue was fixed. I have extracted the list of issues from that list. please advise.

Also if i want to confirm that i have the latest version installed, how can i confirm?

I'm basically having the same problem, i have collection of objects and one of the field in object is decimal and i format as currency. when Grid loads up it shows alright as $0.00 but when I edit the column, it shows the same expception.

I also need to know how can i programmatically set the focus to a given cell so that we can guide user what data need to be filled in next?

I would highly apperciate your quick response.

With Regards
AFRAH

RadGridView (Extracted list from known issues fixed)
-------------
Editing row - does not support hierarchy.
Delete row - does not support hierarchy.
Binding - decreased performance, needs optimization
Presentation - decreased performance, needs optimization
Grouping - does not support hierarchy.
Sorting - decreased performance, needs optimization
Filtering - does not support hierarchy.
Templates serialization - hierarchy is available only in runtime using API. No design-time serialization is available at present.
AddNewRow - does not support hierarchy.
Grouping through Drag'n'Drop - does not support hierarchy.
Column chooser works with master template only  - does not support hierarchy.
Conditional formatting form works with master template only - does not support hierarchy.
CellBeginEdit event cannot be canceled.
cells in the GridViewCommandColumn do not display text.
Images in data source are destroyed during some data layer operations.
0
Vassil Petev
Telerik team
answered on 06 Sep 2007, 09:51 AM
Hi AFRAH,

The Known Issues file you refer to contains issues which we know do not work properly in this beta. The Beta Forum also contains a Release Notes file which contains a list of the things that have been fixed since Q1 SP2. Please, review it at your leisure. The problem related to custom objects, which is bound to RadGridView, is already fixed.

The reported issues for editing, etc. are most probably related to the hierarchical view of RadGridView, which is still in beta. The 'beta' in this release means more hierarchical presentation of data for RadGridView, but the feature is not finalized yet. You can nevertheless download and test the build.

As to programmatically setting the focus to a given cell, this feature will probably appear in Q3 2007. We simply do not have enough time to provide it for the upcoming Q2 release.
 

Kind regards,
Rob
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lovsten
Top achievements
Rank 1
answered on 06 Sep 2007, 10:30 AM
Still the same problem in Q2 Beta
0
Julian Benkov
Telerik team
answered on 06 Sep 2007, 11:46 AM
Hi Magnus,

Please open a support ticket and send us a simple project to reproduce the problem locally. Thank you in advance.
 

Kind regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Lovsten
Top achievements
Rank 1
answered on 06 Sep 2007, 12:03 PM
Support ticket now opened
0
Jesse
Top achievements
Rank 1
answered on 03 Mar 2008, 08:13 PM
Hello,

I'm using the trial version of Q3 2007 SP1, GridView.

Does the above condition exist in this release as well?

col = new GridViewTextBoxColumn("MyCol");
col.DataType = typeof(double);
grid.MasterGridViewTemplate.Columns.Add(col);

Above is the code I use to link the column to a custom defined object which results in "...System.String cannot be converted to type System.Double.." after an edit.

Thanks!

-Jesse



0
Julian Benkov
Telerik team
answered on 04 Mar 2008, 08:27 AM
Hi Lovsten,

Thank you for sending the project, but RadGridView does not load any data from your custom object.

When RadGridView is bound to a custom object, it is important to make sure it implements the IBindingList interface or collection, which inherits from the IBindingList object and causes the ListChanged event is fired.

In your code this seems to be correctly implemented. Still, in order to debug we need some data to load for Products/Suppliers collections. Please send us a project that loads data from a database or an xml file.

Please, also verify that the assembly references in your project, point to the new version - 3.5.3.0 (Q2 Beta).

I'm looking forward to your response.

Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Lovsten
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Haroon
Top achievements
Rank 1
Vassil Petev
Telerik team
Lovsten
Top achievements
Rank 1
Jesse
Top achievements
Rank 1
Share this question
or