Hello,
I'm new to Kendo UI, so this may turn out to be pretty trivial. I have an ajax bound grid that's initially bound to a set of records. I'm planning on having a form within the same page which the user will fill out to add new records, I'm not using inline or popup editing because the data needed to generate a new record won't necessarily have a 1:1 correspondence with the grid model's fields and because of interface design requirements. My question is, after adding a new record to the set via ajax, how can I refresh the grid to reflect the changes made to the set? I provide a test solution I tinkered with, I tried to hook into the dataSource's change event and refreshing the grid after I successfully call .read() on it, but to no avail, I have an html button I call to add a mock random record server side. Any suggestions? Am I missing something?
I'm new to Kendo UI, so this may turn out to be pretty trivial. I have an ajax bound grid that's initially bound to a set of records. I'm planning on having a form within the same page which the user will fill out to add new records, I'm not using inline or popup editing because the data needed to generate a new record won't necessarily have a 1:1 correspondence with the grid model's fields and because of interface design requirements. My question is, after adding a new record to the set via ajax, how can I refresh the grid to reflect the changes made to the set? I provide a test solution I tinkered with, I tried to hook into the dataSource's change event and refreshing the grid after I successfully call .read() on it, but to no avail, I have an html button I call to add a mock random record server side. Any suggestions? Am I missing something?