This question is locked. New answers and comments are not allowed.
Anyone encountered a problem with autoedit not working as intended.
I wanted to use a dataform as a simple data entry form for a single item. So i have bound my dataform CurrentItem to a single structure and i want it to go straight into edit mode instead of readonly mode.
If i remove the ReadOnlyTemplate i get a blank form. If i have both with autoedit set to true it defaults to the readonly template (no edit button appears ), but it seems to be selecting the incorrect template (readonly).
If i have both and turn autoedit false, i starts in readonly and the edit mode button functions correctly, i just want it to be automated so i dont have to manually click the edit button.
Any ideas what im doing wrong ?
I wanted to use a dataform as a simple data entry form for a single item. So i have bound my dataform CurrentItem to a single structure and i want it to go straight into edit mode instead of readonly mode.
If i remove the ReadOnlyTemplate i get a blank form. If i have both with autoedit set to true it defaults to the readonly template (no edit button appears ), but it seems to be selecting the incorrect template (readonly).
If i have both and turn autoedit false, i starts in readonly and the edit mode button functions correctly, i just want it to be automated so i dont have to manually click the edit button.
Any ideas what im doing wrong ?
<telerik:RadDataForm x:Name="AddSiteDataForm" AutoGenerateFields="False" AutoEdit="True" CurrentItem="{Binding NewSiteNode}" EditTemplate="{StaticResource AddSiteTemplate}" ReadOnlyTemplate="{StaticResource AddSiteTemplate}" ><DataTemplate x:Key="AddSiteTemplate"> <StackPanel> <telerik:DataFormDataField DataMemberBinding="{Binding SiteName,Mode=TwoWay}" Label="Site Name:" IsEnabled="True" /> <telerik:DataFormDataField DataMemberBinding="{Binding SiteType,Mode=TwoWay}" Label="Site Type:" IsEnabled="True"/> <telerik:DataFormDataField DataMemberBinding="{Binding SiteLatitude,Mode=TwoWay}" Label="Latitude:" IsEnabled="True"/> <telerik:DataFormDataField DataMemberBinding="{Binding SiteLongitude,Mode=TwoWay}" Label="Longitude:" IsEnabled="True"/> <telerik:DataFormDataField DataMemberBinding="{Binding ProductionRegion,Mode=TwoWay}" Label="Production Region:" IsEnabled="True"/> </StackPanel></DataTemplate>