Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
Multiline Text editor and custom column width
posted

I have a field with varchar(MAX) and I want to do two things.

 

Multiline editor which accepts carriage return for a new line.

I am using the following style but I still can not make a new line. I tried Enter, Control+Enter, Alt+Enter.

 

    <Window.Resources>

        <Style TargetType="igEditors:XamTextEditor" x:Key="TextboxWrapping">

            <Setter Property="TextWrapping" Value="Wrap" />

            <Setter Property="Height" Value="75" />

            <Setter Property="VerticalScrollBarVisibility" Value="Auto" />

            <Style.Resources>

                <Style TargetType="{x:Type igEditors:XamTextEditor}">

                    <Setter Property="AcceptsReturn" Value="True"/>

                </Style>

            </Style.Resources>

        </Style>

    </Window.Resources>

 

Code

Style cvp  = (Style) Resources["TextboxWrapping"];

foreach (Field field in eventsGrid.FieldLayouts[0].Fields)

{

    if (field.Name == "Description"))

        field.Settings.EditorStyle = cvp;

}

 

Want to make custom column widht

I want to set this column width to custom-width, say 300. But I don't see any way to do this.

I only see the following two options and both are setting the column width 2x of my monitor.

field.Width = FieldLength.InitialAuto;

field.Width = FieldLength.Auto;

 

Thanks in Advance

Sreekanth

Parents
  • 27093
    posted

    Hello Sreekanth,

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

Reply Children
No Data