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
1385
Putting helper text in the add row cells
posted

I would like the add row to have some gray helper text like <Type a label>.  It would only appear in the add row, and would only appear if the cell is empty.  How can that be done?

Parents
No Data
Reply
  • 29105
    Offline posted

    Hello Walter,

    Thank you for contacting Infragistics. You can use a conditional MultDataTrigger for each field accordingly. This topic was previously discussed and answered here: Text in Add New Record Row

    eg.

      <igDP:FieldLayout.Fields>
                            <igDP:Field Name="Name" >
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings >
                                        <igDP:FieldSettings.EditorStyle >
                                            <Style TargetType="{x:Type igEditors:XamTextEditor}">
                                                <Style.Triggers>
                                                    <MultiDataTrigger>
                                                        <MultiDataTrigger.Conditions >
                                                            <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text}" Value="" />
                                                            <Condition Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type igDP:DataRecordPresenter}}, Path=IsAddRecord}"  Value="True" />
                                                        </MultiDataTrigger.Conditions>
                                                        <MultiDataTrigger.Setters>
                                                            <Setter Property="NullText" Value="Add name" />
                                                            <Setter Property="FontStyle" Value="Italic" />
                                                            <Setter Property="Opacity" Value="0.4" />
                                                        </MultiDataTrigger.Setters>
                                                    </MultiDataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </igDP:FieldSettings.EditorStyle>
                                    </igDP:FieldSettings>
                                </igDP:Field.Settings>
                            </igDP:Field>

    https://ko.infragistics.com/community/forums/p/53736/277938.aspx#277938

    Let me know if you have any questions.

Children