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

vertical vs horizontal lines radgrid

8 Answers 155 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Niels Lynge
Top achievements
Rank 1
Niels Lynge asked on 12 Sep 2008, 12:48 PM
Hi is it posible to rotate the asp.net radgrid so instead of displaying

Customerid, Name, phone, ...
1, username1, 555...
2, usernam.....

So it would be

Customerid       1                            2
Name                Username1            Username2
Phone                555                        55555
...
..
-------


8 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 12 Sep 2008, 12:55 PM
Hello Niels,

Please check this example:
http://demos.telerik.com/aspnet/Prometheus/Grid/Examples/Programming/Pivot/DefaultCS.aspx

Regards,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Niels Lynge
Top achievements
Rank 1
answered on 17 Sep 2008, 11:59 AM
Great!! Almost there, except...
1.) i need two buttons accept and reject on eact row 
    I got my buttons but they are still horisontal not vertical as the row now is (pivot)
2.) The color seperator still runs horisontal. (using webblue telerik skin)

Any good idea how to fix?


0
Nikolay Rusev
Telerik team
answered on 23 Sep 2008, 11:31 AM
Hello Niels,

The example attached to this forum post demonstrates how to have two button columns in pivot RadGrid.
The buttons in those columns bubbles event which might be catch on RadGrid.ItemCommand.


Kind regards,
Nikolay
the Telerik team


Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Søren
Top achievements
Rank 1
answered on 26 Sep 2008, 09:27 AM
Hi NikR

I am working on the same project as Niels.

I have a question.

Thanks for the example you posted, I got it to work after some fiddling around, because I user .net 3.5 :)

But the accept and reject buttons need to be under each column, not next to each row.

It does not make sense to have them on each row, because when you click accept at the Name column, which name are you then accepting ?

Hope it makes sense.

Best regards
Søren Reinke
0
Balaji
Top achievements
Rank 1
answered on 26 Sep 2008, 10:16 AM
Hai Matt,
                      Thank you for  your Information.I solved that issue. I have one more issue.
I am Created a button inside a detailtable(hierarchialgrid),radiobutton column also in detailtable.Now I am select option button and click ModifyButton,at that time selected row is blank But information are shown in Control.How to solve this problem.Please tell me detail.

Thanks and Regards
Balaji

0
Nikolay Rusev
Telerik team
answered on 26 Sep 2008, 04:20 PM
Hello Søren,

I am sending you an example showing RadGrid as pivot table with two button rows - accept/ reject.
You can find it attached to this forum post.

- Matt, can you be a little bit more specific and explain what issue you are facing. 

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Søren
Top achievements
Rank 1
answered on 29 Sep 2008, 09:08 AM
Hi Nikolay

Thanks for the zip file, just what i needed :)

Now a new issue surfaced :)

At the moment the row color is alternating, but because it is pivot data, each column should be alternating, i have tried to figure out how to do that, but with no luck.

Hopefully, you can help me again.

See ya
Søren
0
Søren
Top achievements
Rank 1
answered on 29 Sep 2008, 09:25 AM
Ahh i found a solution:

    int lColumnCount = 0;
    protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        Color lcol = lColumnCount++ % 2 == 0 ? System.Drawing.Color.Red : System.Drawing.Color.Blue;
        e.Column.ItemStyle.BackColor = lcol;
    }


Okay maybe not the best selection of colors, but at least it works :)
Tags
Grid
Asked by
Niels Lynge
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Niels Lynge
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Søren
Top achievements
Rank 1
Balaji
Top achievements
Rank 1
Share this question
or