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

RadDataForm does not display first record when AutoEdit=false

5 Answers 79 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
HDC
Top achievements
Rank 1
HDC asked on 10 Apr 2011, 06:29 AM
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?



 

5 Answers, 1 is accepted

Sort by
0
Leos
Top achievements
Rank 1
answered on 10 Apr 2011, 11:55 AM
>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
0
HDC
Top achievements
Rank 1
answered on 10 Apr 2011, 12:11 PM
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.


0
Leos
Top achievements
Rank 1
answered on 10 Apr 2011, 12:48 PM
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"?
0
HDC
Top achievements
Rank 1
answered on 10 Apr 2011, 12:57 PM
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)




0
Leos
Top achievements
Rank 1
answered on 10 Apr 2011, 01:12 PM
I replied in your socond post with example what is working for me.
Tags
DataForm
Asked by
HDC
Top achievements
Rank 1
Answers by
Leos
Top achievements
Rank 1
HDC
Top achievements
Rank 1
Share this question
or