Expand the height of a row in a dataform

7 posts, 0 answers
  1. caleb
    caleb avatar
    30 posts
    Member since:
    Sep 2011

    Posted 10 Jan 2013 Link to this post

    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
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 10 Jan 2013 Link to this post

    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.
  3. DevCraft banner
  4. caleb
    caleb avatar
    30 posts
    Member since:
    Sep 2011

    Posted 10 Jan 2013 Link to this post

    I would like to make the textblock contain a lot more room.  How do I get the height to 350?

    Thanks,

  5. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 10 Jan 2013 Link to this post

    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.
  6. caleb
    caleb avatar
    30 posts
    Member since:
    Sep 2011

    Posted 10 Jan 2013 Link to this post

    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 
  7. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 11 Jan 2013 Link to this post

    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.
  8. Cocotteseb
    Cocotteseb avatar
    6 posts
    Member since:
    Apr 2008

    Posted 27 Dec 2015 in reply to Deyan Link to this post

    Thanks ! Really useful.
Back to Top
DevCraft banner