SfGrid 18.1.0.42 bug with column contains Json string
A runtime exception will cause if I have a column contains json string, when I check to select a row and use GetSelectedRecords to get selected rows.
Sorry because I had changed my code to exclude that column, I could not have a demo here.
SIGN IN To post a reply.
5 Replies
RN
Rahul Narayanasamy
Syncfusion Team
April 30, 2020 02:45 PM UTC
Hi Nigel,
Greetings from Syncfusion.
We have validated your query and we could not reproduce the reported problem from the given information. Could you please share the below details. It will be helpful to validate and provide a better solution.
- Full Grid code snippets.
- DataSource details with model class structure.
- Exact replication procedure.
- Share the exception details if you have faced any.
Regards,
Rahul
NP
Nigel Pham
April 30, 2020 07:07 PM UTC
Hi Rahul.
I record a video, let see it: https://www.youtube.com/watch?v=Nntke2MyvMc
VN
Vignesh Natarajan
Syncfusion Team
May 1, 2020 11:24 AM UTC
Hi Nigel,
Thanks for sharing the video demo.
We are able to reproduce the reported issue at our end while preparing a sample using your suggestion. From the video we found that you have not displayed the json serialized sting in Grid. then we suggest you to overcome the reported issue by using [JsonIgnore].
Refer the below code example
|
public class Order
{
public int? OrderID { get; set; }
public string CustomerID { get; set; }
public DateTime? OrderDate { get; set; }
public double? Freight { get; set; }
[JsonIgnore]
public string jsonstring { get; set; }
}
|
If above solution does not resolve your query or if have any other queries related to the solution, kindly get back to us with more details.
Regards,
Vignesh Natarajan
NP
Nigel Pham
May 3, 2020 11:14 PM UTC
I don't need that column but I just want to the problem. Maybe someone will need it.
VN
Vignesh Natarajan
Syncfusion Team
May 4, 2020 11:25 AM UTC
Hi Nigel,
Thanks for the update.
Query: “I don't need that column but I just want to the problem. Maybe someone will need it.”
Currently we are improving our data source structure of the Grid. It will be implemented in any of the our 2020 Volume 2 releases.
Till then we appreciate your patience.
Regards,
Vignesh Natarajan
SIGN IN To post a reply.
- 5 Replies
- 3 Participants
-
NP Nigel Pham
- Apr 30, 2020 01:06 AM UTC
- May 4, 2020 11:25 AM UTC