Hello,
I'm using client RowSelectionChanged event and I want to pass selected rows to AJAX-enabled web service. And I get an error "Cannot serialize object with cyclic reference within child properties". Is there a way to do that?
Almost forgot - I don't want to use postbacks in this situation.
Thanks.
Yes, the row has a reference to its grid which will then have a collection of the rows, so that would be the problem. When we pass row information back, we use just the row data key.
-Dave
I tried to pass the whole row with all data in them. But yes, looks like it's better to pass keys or IDs and then associate them with rows in dataset. Thank you.
Hi dprosko,
What object exactly are you trying to serialize? Most likely, you should just be able to create an array of the selected rows' data keys and serialize that.
regards,
David Young