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

[Solved] Is there a way to do rowSpan ?

3 Answers 19 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Narendra
Top achievements
Rank 1
Narendra asked on 27 Jun 2011, 09:34 PM
I know I can do this via the built in grouping feature but that is not customizable using ajax binding 

Is there any other way you can do it ?

Thanks,
Narendra

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 28 Jun 2011, 07:04 AM
Hello Narendra,

 You can set the rowSpan property by handling the OnRowDataBound event.

function onRowDataBound(e) {
   e.row.cells[0].rowSpan = 3;
}

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Narendra
Top achievements
Rank 1
answered on 28 Jun 2011, 10:38 PM
This works, although as soon as I go row.cells[0] .rowspan = 2  the whole formatting shifts to the left 

Do you know why this might be happening ?
0
Atanas Korchev
Telerik team
answered on 29 Jun 2011, 07:26 AM
Hi Narendra,

 This is how the rowspan attribute works. The cell occupies more than one row.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Narendra
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Narendra
Top achievements
Rank 1
Share this question
or