Click here to Skip to main content
15,907,000 members

Comments by Member 8735045 (Top 8 by date)

Member 8735045 14-Jun-21 6:13am View    
thanks for replay ,
i have create inventory application , which one is best control for crud operation in wpf to replace datagrid
Member 8735045 23-Apr-18 7:21am View    
Thank's Richard
i checked result in my side and i am getting result proper in Result View,
if you checked both Result View and Dynamic View, i am not able to getting newShortName in Dynamic Vewi. i think Dynamic Vewi has been bind to the
grdproductitem.ItemsSource = dataList ;
that's why newShortName propert can't be created after JsonConvert.DeserializeObject<>
Member 8735045 21-Apr-18 7:31am View    
Multiple list of json

{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 122104,
"batchId": 122104,
"rateId": 122104,
"shortName": "SME",
"batchNo": "150419",
"expiryDate": "2022-05-28",
"mrp": 60.0,
"saleRate": 60.0,
"purchaseRate": 13.74,
"quantity": 500.0,
"storeName": "Main Store",
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
},
{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 2018030010140000053,
"batchId": 2018030010200000033,
"rateId": 122104,
"shortName": null,
"batchNo": "220",
"expiryDate": null,
"mrp": 60.0,
"saleRate": 0.0,
"purchaseRate": 13.74,
"quantity": 10.0,
"storeName": null,
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
},

I use
var jsonSettings = new JsonSerializerSettings()
{
DefaultValueHandling = DefaultValueHandling.Ignore,
Formatting = Newtonsoft.Json.Formatting.Indented,
TypeNameHandling = TypeNameHandling.All,
NullValueHandling = NullValueHandling.Include

};
but problem still remain
i trying my best
thanks for reply
Member 8735045 20-Apr-18 7:52am View    
This is my json
{
"orgId": 1,
"oprId": 1,
"productCode": 143654,
"stockId": 122104,
"batchId": 122104,
"rateId": 122104,
"shortName": "SME",
"batchNo": "150419",
"expiryDate": "2022-05-28",
"mrp": 60.0,
"saleRate": 60.0,
"purchaseRate": 13.74,
"quantity": 500.0,
"storeName": "Main Store",
"newMrp": null,
"newSaleRate": null,
"newExpiryDate": null,
"newShortName": null,
"createdby": null,
"status": null
}
But only get not null value like "mrp": 60.0, "saleRate": 60.0
and "newSaleRate": null, this are not convert
Member 8735045 20-Apr-18 5:18am View    
if
var datalist = JsonConvert.DeserializeObject<List<expandoobject>>(jsonResult, converter);
object is property value is null that time ExpandoObject can not be DeserializeObject

what we are missing