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

Columns dedicated for every run

3 Answers 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saqib
Top achievements
Rank 1
Saqib asked on 16 Jan 2012, 04:49 PM
Hello,

We are using the Telerik RadGrid for showing the Pass/Fails for test runs.

The design is as follows:

Columns: 'Test Name' and 'Station Test Run' where 'Station Test Run' column would dynamically generated for every test run in the datasource - max 500.  The 'Station Test Run' would show Pass/Fails for the particular run.

There will be 20 TestResults (rows) shared by all 'Stations Test Runs' as denoted by 'Test Name' column.

The problem is how do we assign each column a test run?  Right now our datasource has all test runs mixed (but we have TestRun_ID property for each TestResult).  How can we say we want a specific run shown for each column?  Let's say our datasource contains 5 test runs 1111, 1112, 1113 and 1114.  We would want 5 columns generated with each column dedicated to displaying a particular test run (aligned with the 20 tests).  I'm reading through

http://demos.telerik.com/aspnet-ajax/grid/examples/client/databinding/defaultcs.aspx 

But can't seem to find how to do this (bind a column to a particular run)?

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Jan 2012, 07:20 PM
Hello Saqib,

To achieve your goal you can create a datatable and define its schema by using DataColumn and DataRow objects. You can refer to the link below for more information. 
http://msdn.microsoft.com/en-us/library/t31h6yhs(v=vs.80).aspx

Then you could create a datatable object on the server and connect the WebService to this table. Similar approach could be seen in the online example below: 
http://demos.telerik.com/aspnet-ajax/grid/examples/client/declarativedatabinding/defaultcs.aspx

Regards,
Pavlina
the Telerik team
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 their blog feed now
0
Saqib
Top achievements
Rank 1
answered on 19 Jan 2012, 07:40 PM
Thanks!  Once I get some time to look into it I'll let you know how it goes.
0
Pavlina
Telerik team
answered on 21 Jan 2012, 02:09 PM
Hi,

Let us know if any questions or problems arise after you test it. We will be glad to help.

Kind regards,
Pavlina
the Telerik team
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 their blog feed now
Tags
Grid
Asked by
Saqib
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Saqib
Top achievements
Rank 1
Share this question
or