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

Expand the height of a row in a dataform

6 Answers 52 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
caleb
Top achievements
Rank 1
caleb asked on 10 Jan 2013, 07:09 AM
Hello,

I'm looking to expand the height of a row in a dataform.  I'm guessing that the underlying control is a textblock.  I can't figure out how to get access to it via a content or style attribute.  How can I do this?

Thanks,

Caleb

6 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 10 Jan 2013, 07:44 AM
Hello Caleb,

Thanks for writing and for your question.

Can you please be a bit more specific in your description since I am not quite sure that I correctly understand what you are trying to achieve?

Thanks for your time.

Greetings,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
caleb
Top achievements
Rank 1
answered on 10 Jan 2013, 07:45 AM
I would like to make the textblock contain a lot more room.  How do I get the height to 350?

Thanks,

0
Deyan
Telerik team
answered on 10 Jan 2013, 07:50 AM
Hi Caleb,

Thanks for writing back.

Is it the header of the editor field you would like to style?

All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
caleb
Top achievements
Rank 1
answered on 10 Jan 2013, 05:39 PM
Hello there,

This is getting a bit frustrating.  How do I increase the size of the textblock?  In particular the height?  I want the user to be able to input a paragraph not just a few words.  My guess is that there is a TextBlock that is the actual control.  How do I gain access to it's style properties so I can make it a lot taller?

Thanks,

Caleb 
0
Deyan
Telerik team
answered on 11 Jan 2013, 07:55 AM
Hello Caleb,

Now I am able to understand what you are trying to achieve. The frustration comes from the fact that a TextBlock is a different thing - it is simply a label displaying a text. I guess you are talking about a TextBox and increasing its rows in the meaning of being able to type longer text.

You can do that in the following way:

<Grid x:Name="LayoutRoot" Background="Transparent">
    <telerikInput:RadDataForm x:Name="dataForm">
        <Grid>
            <telerikInput:DataField TargetProperty="Name">
                <telerikInput:DataField.EditorStyles>
                    <Style TargetType="telerikPrimitives:RadTextBox">
                        <Setter Property="AcceptsReturn" Value="True"/>
                        <Setter Property="Height" Value="300"/>
                    </Style>
                </telerikInput:DataField.EditorStyles>
            </telerikInput:DataField>
        </Grid>
    </telerikInput:RadDataForm>
</Grid>


All the best,
Deyan
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Cocotteseb
Top achievements
Rank 1
answered on 27 Dec 2015, 02:12 PM
Thanks ! Really useful.
Tags
DataForm
Asked by
caleb
Top achievements
Rank 1
Answers by
Deyan
Telerik team
caleb
Top achievements
Rank 1
Cocotteseb
Top achievements
Rank 1
Share this question
or