Change EditorStyle for particular DataRecords

Not Answered This post has 0 verified answers | 2 Replies | 2 Followers Thread's RSS feed.

Gajender
Points 3,196
Replied On: Tue, Mar 13 2012 1:06 PM Reply

Is there a way to change EditorStyle for some fields only for particular DataRecords.

Scenario is:

I have Hierarchy Datagrid and when I select/active the parent records, I want its some fields in the child records should have diff editor style. It should not affect the childs of other parents. Can you help me on this or any workaround.

  • Post Points: 35

All Replies

[Infragistics] Yanko
Points 29,959
Infragistics Employee
Replied On: Wed, Mar 21 2012 3:10 AM Reply

Hello Gajender,

 

I have been looking into your post and I have managed to achieve the functionality that you want by checking whether the parent record is selected. I created a Style for the Field's FieldSettings' CellValuPresenterStyle and used DataTrigger to determine whether the parent record is selected. If it is, I set a DataTemplate with the XamEditor you want to the ‘ContentPresenter’ property of the CellValuePresenter. I am sending you a sample application(DataGridEditorsType.zip) that shows this functionality.

 

If you need any further assistance on this matter, feel free to ask.

Best regards,
Yanko
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 5
[Infragistics] Yanko
Points 29,959
Infragistics Employee
Replied On: Sat, Mar 24 2012 3:32 AM Reply

Hello Gajender,

 

I am just checking if my last reply was helpful for you.

 

If you require any further assistance please do not hesitate to ask.

Best regards,
Yanko
Developer Support Engineer
Infragistics, Inc.

  • Post Points: 5
Page 1 of 1 (3 items) | RSS