This is a migrated thread and some comments may be shown as answers.

Batch edit "preloaded" items

1 Answer 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ezequiel
Top achievements
Rank 2
Ezequiel asked on 16 Apr 2013, 03:13 PM
I have a detail grid where I want to display a specified number of items.
My master grid item have a Quantity columns that is 6, for example. And for detail items, in database, is set that I need to have 4 of type A, and 2 of type B.
and the user *MUST* fill all the 6 lines.

in controller I add 6 items to the list, 4 for type A, 2 for type B, for each type, while needed:
list.Add(new Editable
                    {
                        Id = -1,
                        MasterId = masterId,
                        Type = TypeCode
                    });

but when I try to save it, I got this error in jquery.min.js:
Unhandled exception at line 3, column 5099 in http://localhost:60455/Scripts/kendo/jquery.min.js
 
0x800a138f - Microsoft JScript runtime error: 'length' is null or not an object
Is there a way to work this out?

Thanks,
Ezequiel

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 18 Apr 2013, 12:52 PM
Hello Ezequiel,

I am not sure if I understand the exact scenario. Could you provide the full code you are using so I can check the setup?

Kind regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Ezequiel
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or