I am trying to display the data using very simple JSON data. but the data is not displaying. Below is the code
var data3 = '{"key":1,"firstName":"Bill","lastName":"Smith"}';$("#grid1").igGrid({ //localSchemaTransform: false, //dataSourceType: "jsonp", features: [], dataSourceType: "json", dataSource: data3, //autoGenerateColumns: true });
Could you please do the needful help?
Thank you.
Hello,
thank you for your feedback. If you need any additional assistance regarding this topic feel free to contact me.Thank you for choosing Infragistics components!
Best regards,Yana DimitrovaDeveloper Support EngineerInfragistics, Inc.
Thank you, its working fine.
thank you for contacting us. The datasource of the code is not correct, it shouldn't be in quotes and it should be defined as an array like this:
var data3 = [{"key":1,"firstName":"Bill","lastName":"Smith"}];
I also attach a sample for you reference. For additional questions don't hesitate to ask!