Updating numeric values fails

9 posts, 0 answers
  1. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 05 Sep 2007 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 05 Sep 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Haroon
    Haroon avatar
    10 posts
    Member since:
    Jan 2007

    Posted 05 Sep 2007 Link to this post

    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.
  5. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 06 Sep 2007 Link to this post

    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
  6. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 06 Sep 2007 Link to this post

    Still the same problem in Q2 Beta
  7. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 06 Sep 2007 Link to this post

    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
  8. Lovsten
    Lovsten avatar
    72 posts
    Member since:
    Aug 2007

    Posted 06 Sep 2007 Link to this post

    Support ticket now opened
  9. Jesse
    Jesse avatar
    1 posts
    Member since:
    Feb 2008

    Posted 03 Mar 2008 Link to this post

    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



  10. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 04 Mar 2008 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready