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

How Resistant to Tampering is the grid?

6 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 28 Aug 2012, 10:15 PM
Hi, I need to write a really complex grid, and I know that out of the box, kendo UI (or any other framework) will not support the features, so I'm trying to figure out what exactly Kendo UI can do and how resistant to tampering it is.  Mainly I just want a uniform look across platforms and have simple functionality available to me.

a) Does Kendo  UI support headers on the Y axis?  Like my grid needs to have headers, subheaders, sub-subheaders on both X and Y axis (ie on the top and on the left).

b) Can I Insert multiple rows at once at any point on the grid?  I've seen .addRow and datasource.Insert, but nothing for inserting multiple rows at once

c) Does it do colspan and rowspan correctly?  I saw one forum post, but no answers.  Because I need headers and subheaders, obv. the headers need to span multiple columns, and then the subheaders will span less columns, and sub-subheaders will span even less columns.

d) I will need to basically override all custom events that the grid does, I assume I can prevent all default behaviour using e.preventdefault like in telerik mvc

e) I will need to do column insertion (sort of like a row-detail view, but for columns).  If I do this manually into the grid, will it break anything?  I'm likely going to be preventing default for most things, so I'm wondering how much appending <td> to the grid would affect things.  I don't want any javascript to break because there's now a new column.

Thanks.

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 29 Aug 2012, 08:36 AM
Hello Matt, 

Up to your questions:
  1. The Kendo Grid does not support headers on the Y axis. It also does not support multi-level headers.
  2. We need a clarification here. What do you mean by insert multiple rows at the same time? Do you want them all to be in edit mode? While you can call the addRow as many times as you want only the last added row will be in edit mode.
  3. The Kendo Grid currently does not handle colspan and rowspan attributes. It expects the number of rows and cells to match the number of columns and data items.
  4. Could you clarify what do you plan to do when overriding the events? Describe the scenarios you want to implement
  5. Appending a td in the grid would prevent certain column features from working - column reordering and resizing for example. It may also affect inline editing. Performing a sort, filter, or changing the page will refresh the grid and  remove that extra td.

Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Matt
Top achievements
Rank 1
answered on 30 Aug 2012, 02:33 PM
Hi Atanas,

2. When I saw insert multiple rows, I mean add multiple rows of information to the table at once.  Sort of like detail-row, but just more rows.  So I want to be able to just put 4-5 rows into the middle of the grid when I click a button.  I guess similar to just doing an append on 4-5 <tr>'s.

4. Since we require inserting columns and other stuff that the grid doesn't support, I need to override any events that might refresh the grid and prevent default behaviour.

Thanks,
Yi
0
Atanas Korchev
Telerik team
answered on 30 Aug 2012, 02:52 PM
Hello Мatt,

 You can use the dataSource API to insert as many records as you want:

grid.dataSource.isert(4, { name:"John Doe" });

 Which events would you like to prevent? Currently none of the grid events can be prevented. However adding an extra column to the grid will not cause it to refresh. Only changing the data source (paging, sorting, adding a new record or inserting a new one) would cause that.
 
Regards,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Matt
Top achievements
Rank 1
answered on 30 Aug 2012, 03:20 PM
Hi,

If I use datasource.insert(0 ...), datasource.insert(1 ....) datasource.insert(2 ...) will it all show up at once or 1 by 1?

And this .insert() would cause a refresh that's not preventable?

Thanks
0
Atanas Korchev
Telerik team
answered on 03 Sep 2012, 08:36 AM
Hi,

 If you call the insert method three times it would add three rows. You can try that out to see how it behaves.

Greetings,
Atanas Korchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jayson
Top achievements
Rank 1
answered on 18 Sep 2012, 02:12 PM
How can i have a multiple header? I believe, this is something that's present in Telerik grid.
Tags
Grid
Asked by
Matt
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Matt
Top achievements
Rank 1
Jayson
Top achievements
Rank 1
Share this question
or