Hi,
I have a grid that allows for the user to add new records located at the top. Two of the columns are titled "Description", "Type". For a new user they at first do not now that they can add text to the empty cells. Is it possible to have some Italic text that is kinda faded that reads "Add Description" or "Add Type" in the Add New Record Row? Kinda like you see in some forms on the web. Little visual clues for the user.
Thanks,
Bryan
Hi Bryan,
I have created a sample project for you showing what I had in mind (Grid_all_editors.zip).
Hope this is what you needed. Let me know if you require any further clarification on the matter
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Petar,
I have looked at that article but I dont see how I can set more than one column using the first example you gave me.
Thanks for your help.
You can set the EditorStyle property per Field. Here is a link from our online documentation describing how to set the EditorStyle property for a single Field: http://help.infragistics.com/Help/NetAdvantage/WPF/2010.3/CLR4.0/html/xamDataPresenter_Embedding_a_xamEditor_in_a_Field_XAML.html
Please let me know if I can do anything else for you.
That works except all the empty cells at the add record tow all say the same thing. It it possible for the Description Column to have the text "Add description" and the Type Column to have the text "Add Type" wording.
Thanks
Hello Bryan,
I have been looking into your requirement and have created a style for you which you can set to the specific Field’s Settings.EditorStyle property. The style uses a MultuDataTrigger to check if the Editro is actually in the AddNewRecord and if it’s Text property is empty and sets the NullText property along with some text decorations according to your requirement:
<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 description" />
<Setter Property="FontStyle" Value="Italic" />
<Setter Property="Opacity" Value="0.4" />
</MultiDataTrigger.Setters>
</MultiDataTrigger>
</Style.Triggers>
</Style>
Please let me know if this is what you were looking for and if I can further assist you on the matter.