I reproduced the sample that shows the xamgrid using a value converter to show '(No Region)'
when i use a TextColumn with a complex property it does not work. why is this?
ex:
<ig:TextColumn Key="State.StateDesc" HeaderText="State" ValueConverter="{StaticResource myEmptyStrValConverter}" />
Using Silverlight 4, 2011.2
Hello,
Thank you for your post. I have been looking into it and was not able to reproduce your issue. Would you please modify the attached sample with the functionality you are using, in order for me to be able to identify your issue and provide you with better support.
Looking forward to hearing from you.
look at the attached doc both colums are using the same value converter. its very easy to track. debug the value converter, it fires ever time for the city but only twice for the state
cols
<ig:TextColumn Key="State.StateDesc" HeaderText ="State" ValueConverter="{StaticResource myEmptyStrValConverter }" />
City
<ig:TextColumn Key="City" HeaderText ="City" ValueConverter="{StaticResource myEmptyStrValConverter}" />
I have been looking into your post and it seems that for some reason the attachments that you are referring to does not pass through. Would you please re-send your attachments using Internet Explorer or Mozilla Firefox and send them as zip file in order to ensure that the files will be received successfully?
as i stated in the post above. you forums will not accept the zip as i have modified you sample
send me an email and i will send it over
I have created a separate support ticket for you. The number of the support ticket is CAS-109122-H3P0S4. You can write through your support ticket. If the file is bigger than you can send it to support@infragistics.com and include the case number as subject.
I have been looking into your sample. The field StateDesc is set as required in the database you have sent me. Having this is mind you could not set null as value for the field.
In order to show values for the State.StateDesc property you have to include the tables in the DomainService class. I have modified the sample you have sent for you, in order to show you this functionality. When you delete the value of a cell in the StateDesc column you would see a red rectangle around the cell. This is because the field is required in the database and could not be null.
When you get out of edit mode you would be able to see the value entered by the converter.
Please refer to the attached sample and feel free to let me know if you have any further question on the mater.
i can not run your sample as i am not using SL 5
i am aware how to include child tables. the value is not null in the reference table (state). it is null in the coverage table