DataFormDataField width

2 posts, 0 answers
  1. Johannes
    Johannes avatar
    66 posts
    Member since:
    Dec 2012

    Posted 17 Jun 2015 Link to this post

    I want to change the width of the label part of DataFormDataField. The correct place to edit should be the controls ControlTemplate:

      <ColumnDefinition Width="*"/><!-- Label -->
      <ColumnDefinition Width="2*"/><!-- Editor -->
      <ColumnDefinition Width="24"/><!-- ? Icon -->

     I want this to be something like: 

      <ColumnDefinition Width="{Binding LabelWidth}" /><!-- LabelWidth = Attached property? -->
      <ColumnDefinition Width="2*"/>
      <ColumnDefinition Width="24"/>


    The width should not be a fix value in the ControlTemplate. It should be variable so different DataForms can have different label widths. Is that possible?





  2. Stefan X1
    Stefan X1 avatar
    482 posts

    Posted 18 Jun 2015 Link to this post

    Hi Johannes,

    A possible way to achieve such customization is to create a custom DataFormDataField by overriding the default one. Such approach is discussed in the Label customization in DataFormXField forum thread.

    Please give it a try and let me know if you need further assistance.

    Best Regards,
    Stefan X1
    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 Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top