RadDataForm does not display first record when AutoEdit=false

6 posts, 0 answers
  1. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 10 Apr 2011 Link to this post

    I have created a dataform and have bound it to a domaindatasource declared on my view.

     

     

    private readonly QueryableDomainServiceCollectionView<Organization> view;
    public IEnumerable View
    {
        get
        {
            return this.view;
        }
    }
        <telerik:RadDataForm ItemsSource="{Binding View, Mode=TwoWay}" AutoGenerateFields="false" AutoCommit="True" AutoEdit="True" >

     

     

    When i set AutoEdit=True, the dataform WILL display the first record upon opening the dataform. But when the AutoEdit property is set to False, the dataform displays an empty record!

    When i click on the navigation button forward, the application will display record 2.

    This suggests that record 1 is loaded into the form, but not displayed?

    Has anybody experienced the same?



     

  2. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 10 Apr 2011 Link to this post

    >Has anybody experienced the same?

    > the dataform displays an empty record

    Yes. But only when explicit content is defined.
    See here:

    http://www.telerik.com/community/forums/silverlight/data-form/data-template.aspx



    >When i click on the navigation button forward, the application will display record 2.
    Yes. Probably described here:

    http://www.telerik.com/community/forums/silverlight/data-form/dataform-and-qdscv.aspx


    And this second point is with "Empty dataset problem" two most critical bugs in my "Telerik troubles" hitparade.

    For "empty dataset" see here:

    http://www.telerik.com/community/forums/silverlight/data-form/empty-dataset-and-new-row-problem.aspx


    Leos
  3. DevCraft banner
  4. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 10 Apr 2011 Link to this post

    Thanks for your reaction Leos, much appreciated

    Good (and at the same time not good ;o) ) to see other people have similar problems.

    The thing is, my recordset is not empty... it's just that i don't see any record in that particular mode until i start navigating.

    The fact that the component completely locks up when AutoEdit is set to true amazes me. Have you tested this?
     
    It seems there are many problems that plague these newest components such as dataform and domaindatasource. I just hope they get them fixed quickly.

    This is the sort of components that would save me the most time.


  5. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 10 Apr 2011 Link to this post

    We don't use AutoEdit, but I tested it now. It looks that behavior is the same (no record displayed but not freeze)?
    What you mean with "lockup"?
  6. HDC
    HDC avatar
    214 posts
    Member since:
    Dec 2010

    Posted 10 Apr 2011 Link to this post

    Hi Leos,

    I have posted another item for this today:

    http://www.telerik.com/community/forums/silverlight/data-form/raddataform-autoedit-true-leads-to-stack-overflow.aspx

    what i mean is that it actually freezes the application for a while and then gives you a stack overflow error. I noticed it does not happen when i bind to a QueryableDomainServiceCollectionView but when i use a domaindatasource on the form directly it will always give me this stack overflow. Even in the simplest of forms (as you can see from the sample)




  7. Leos
    Leos avatar
    57 posts
    Member since:
    Jul 2010

    Posted 10 Apr 2011 Link to this post

    I replied in your socond post with example what is working for me.
Back to Top
DevCraft banner