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

Reorder and adjust row height

2 Answers 67 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Travis Gorrie
Top achievements
Rank 1
Travis Gorrie asked on 31 Mar 2011, 03:47 PM
In the DataForm can you programmatically reorder the fields and adjust the size (height) of the row textbox.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavel Pavlov
Telerik team
answered on 05 Apr 2011, 02:26 PM
Hi Travis Gorrie,

The only way to control the order of appearance of auto generated datafields is by using the Display.Order attribute form Data Annotations.

Regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Leos
Top achievements
Rank 1
answered on 06 Apr 2011, 09:20 AM
Travis,
if you do not plan to use autogenerating, you can use this way to create "high row" in DataTemplate:
<telerik:DataFormDataField Label="Note:"
    VerticalAlignment="Top"
    VerticalContentAlignment="Stretch"
    DataMemberBinding="{Binding Popis, Mode=TwoWay}"                                              
    Description="Some additional note">
    <telerik:DataFormDataField.Content>                          
         <TextBox Text="{Binding Note, Mode=TwoWay}"
             Height="150"
             IsReadOnly="True"
            VerticalScrollBarVisibility="Auto"
            HorizontalScrollBarVisibility="Auto"
            AcceptsReturn="True"  />                          
   </telerik:DataFormDataField.Content>
</telerik:DataFormDataField>

See "height" in TextBox inserted into DataFormField.Content.
L.
Tags
DataForm
Asked by
Travis Gorrie
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Leos
Top achievements
Rank 1
Share this question
or