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

SPAN rows

6 Answers 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 16 Jan 2014, 02:16 PM
Hello, I'm very new to Telerik and I can't seem to find a way to recreate this table using a Telerik control (I need to be able to edit each data fied). The table is in the attachment.

If anyone could point me in the right direction it would be great. This looks like a simple thing to do, but I only found how to span column headers, not rows.

Thanks for the help!

6 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 21 Jan 2014, 08:57 AM
Hello,

The table from the screenshot seems to present static information. RadGrid is a data-bound control and is generally used to present and edit data in a database. If you would like to display a static table RadGrid would not be suitable.

Would you elaborate more on the scenario you would like to implement? What data in the table from the screenshot will be populated from a data source?

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Pascal
Top achievements
Rank 1
answered on 21 Jan 2014, 01:20 PM
Hi,

This table was just an example. Every field in the table will be pulled from the DB. The reason why I want to use RadGrid is so I can edit any field "In Place". I am not having problems pulling data to the grid. My problem is to have the table laid out the way I showed in the example.

Thanks for your help!
0
Viktor Tachev
Telerik team
answered on 24 Jan 2014, 08:03 AM
Hi,

It is possible to make RadGrid look like the table from the screenshot, however such functionality is not available out of the box.

In order to achieve similar look you could use the PreRender event for RadGrid. In the handler you could check if the text in neighboring rows is the same. If this condition is met the RowSpan property for the first cell is increased and the second cell is hidden.

For your convenience I have also prepared a sample project that illustrates the described approach.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Pascal
Top achievements
Rank 1
answered on 24 Jan 2014, 02:48 PM
Thanks so much for your help!

Here's another related issue... Whenever I drop a RadGrid on a form, I get the following error:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
  Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

 Parser Error Message: Could not load file or assembly 'AWSSDK, Version=1.5.23.2, Culture=neutral, PublicKeyToken=9f476d3089b52be3' or one of its dependencies. The system cannot find the file specified.

Source Error:

 

Line 18:         <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 19:         <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 20:         <add assembly="AWSSDK, Version=1.5.23.2, Culture=neutral, PublicKeyToken=9F476D3089B52BE3"/>
Line 21:         <add assembly="Microsoft.WindowsAzure.StorageClient, Version=1.7.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 22:         <add assembly="Telerik.Everlive.Sdk.Net35, Version=1.0.0.0, Culture=neutral, PublicKeyToken=B28C218413BDF563"/>
 

 Source File:  c:\users\administrator\documents\visual studio 2012\Projects\RadGridRowSpan\RadGridRowSpan\web.config    Line:  20

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18055

How can I resolve this issue? It only happens after I drop the control on the form.

Thanks!

0
Viktor Tachev
Telerik team
answered on 29 Jan 2014, 11:24 AM
Hello,

The error you are seeing generally indicates that an assembly file is missing, in this case AWSSDK.dll.

If you are using Amazon Web Services you need to make sure that you have the dll file included in the bin folder of your project and that it is referenced properly.

In case you are not using this service then you could remove the line referencing this assembly from the web.config file.

Additionally you could take a look at this forum thread that discusses similar issue.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Vasssek
Top achievements
Rank 1
answered on 23 Feb 2020, 06:28 PM

Hi,

your example works as expected. It would be nice, if you can add it to RadGrid - How To section, because on forums, there are similar threads and this could be very helpful to have it on one place.

Best regards

Vasssek

Tags
Grid
Asked by
Pascal
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Pascal
Top achievements
Rank 1
Vasssek
Top achievements
Rank 1
Share this question
or