Skip to content

Replies

0
Robert Stoffers
Robert Stoffers answered on Jun 16, 2015 2:30 PM

Hi Greg,

Awesome!  I'm glad that helped.

0
Robert Stoffers
Robert Stoffers answered on Jun 5, 2015 10:21 PM

Hi Greg,

The XamGrid only shows summaries that will work with the associated data type of the column.  In the case of this JSON sample, each column is dealing with string values so the summaries available are only the ones that can handle a string.  The Sum or Average summaries won't know what to do with a string.  So pretty much the only way to get a Sum or Average summary to show up is to either provide a strongly typed object which will only work if you know what JSON you are getting, or you can create a custom summary and do the calculation yourself, converting the JSON value into the appropriate datatype.  I updated the sample to provide a custom summary.

Please keep in mind that the sample was made 2 years ago in VS2010 but I no longer have 2010 installed on my machine, only VS 2013.  So this is what the sample is built in.  I also made use of the Json.NET library to make deserializing the json a bit easier.

0
Robert Stoffers
Robert Stoffers answered on Mar 6, 2014 4:12 PM

I'd also like to know some information about the application you are testing.  Is it a WinForms application or a WPF application?  What Infragistics controls is it using?

0
Robert Stoffers
Robert Stoffers answered on Mar 6, 2014 4:08 PM

Hello Sun Pat,

SwfTable is a WinForms object.  Are you using TestAdvantage for WinForms or WPF?  You posted in the WPF forums but you are mentioning a WinForms object so I am a bit confused.

0
Robert Stoffers
Robert Stoffers answered on Oct 17, 2013 10:45 PM

Hi Jay,

Let me know if you have any further questions on this.

0
Robert Stoffers
Robert Stoffers answered on Oct 10, 2013 3:01 PM

Hi Jay,

To remove the quotes is a bit difficult.  The XamGrid doesn’t know how to handle a JsonValue so when it comes time to display the value it just calls ToString() on the JsonValue object.  This causes the value to convert back into JSON which is why the quotes are there.  I’ve altered the code a bit so the grid no longer binds to a JsonValue but a List<Dictionary<string, string>> instead.  The sample now iterates over the JsonValue result and stores all the data in this list.

0
Robert Stoffers
Robert Stoffers answered on Oct 9, 2013 10:33 PM

Hi Jay,

Let me know if you have any further questions on this matter.