InitData, how does it work?

Sep 23, 2013 at 1:33 PM
Hi Tomasz,

How to set the default values for a inserted row? Hopefully there is a way to ask the controller to supply the defaults.

Regards, Gerard
Coordinator
Sep 24, 2013 at 8:02 AM
Hi Gerard,

The InitData option is kind of specific, because I haven't provided a corresponding InitDataScript for it. That have been done because such a possibility will often lead to anti-patterns (for example in what you are describing it would result in async: false usage which is almost always wrong), and there are no useful information available there that would make it worth creating row initialization data for every row dynamically at client side (for all identified cases ExtraParamScript should be enough, the data are usually shared by all the rows).

But I'm always open for suggestions, if you know of an actual real life case where functionality like this is absolutely necessary I will add InitDataScript option for such occasions.

Regards,
Tomasz Pęczek
Marked as answer by TPeczek on 11/27/2013 at 2:36 AM