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

PivotGrid - Text in Cell value

6 Answers 253 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
jung
Top achievements
Rank 1
jung asked on 21 Jul 2016, 01:15 AM

hello 

I would like to express a Text in cell value.
but An error occurs.

so,
I would like to know whether there are any add-ons after this post

- Similar post in 2012' (last update 2014' , ASP)
http://www.telerik.com/forums/will-pivot-grid-show-the-string-values

and,
Please let me know if i don't know the case using pivotgrid.

 

Programming Language : C#
OS : Windows7 x86
.NET4
Telerik : R2 2016 SP1

6 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 21 Jul 2016, 12:57 PM
Hi Jung,

Thank you for writing.

RadPivotGrid represents aggregated data which can be grouped by rows and columns. The text displayed in a particular cell is a result of the applied groups or aggregates. Could you please specify in details what is your requirement?

In case you do not need grouped rows, perhaps RadGridView could fit your local setup: http://docs.telerik.com/devtools/winforms/gridview/overview.

I hope this information is useful. Looking forward to your reply.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
0
jung
Top achievements
Rank 1
answered on 21 Jul 2016, 06:18 PM

Thank you very much 

I was just trying to rotate the table.

It's possible, but i had been looking for a solution being provided  more efficient

0
jung
Top achievements
Rank 1
answered on 21 Jul 2016, 06:35 PM
Additionally, i wanted to separate view and Data.
and Data=DataSet, view=gridview
so i made   Data=normaly (horizen) , View=rotate(vertical)

naturally process of rotating was slow
i was dizzy what did i.

finally i just use gridview and using GridViewDataColumn decided to add vertical without separating view and data.

if other solution is exist, tell me us.
0
Hristo
Telerik team
answered on 22 Jul 2016, 08:34 AM
Hello Jung,

Thank you for writing back.

If I understand correctly you are now using RadGridView  which fits your requirement. In case you are having a data table and you would like to transpose it before binding the grid you can check the following forum thread:
I hope this information is useful. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
0
John
Top achievements
Rank 1
answered on 21 Apr 2017, 03:34 PM

From a similar thread in Asp.Net. http://www.telerik.com/forums/will-pivot-grid-show-the-string-values 

You can use min/max on a numeric value and then replace the text in the CellFormatting Event

    Private Sub RadPivotGrid1_CellFormatting(sender As Object, e As Telerik.WinControls.UI.PivotCellEventArgs) Handles RadPivotGrid1.CellFormatting

        Dim sResNum As String = CInt(Val(e.CellElement.Text))
        If sResNum.Length > 5 Then
            Dim dr As DataRow = myEverythingTable.Rows.Find(sResNum)
            If dr IsNot Nothing Then
                'e.CellElement.Text = IIf(IsDBNull(dr("result")), "", dr("Result"))
                If IsDBNull(dr("result")) Then
                    e.CellElement.Text = ""
                Else
                    e.CellElement.Text = dr("result")
                End If
            End If
        End If

End Sub

0
Hristo
Telerik team
answered on 24 Apr 2017, 08:10 AM
Hi John,

Thank you for writing.

Indeed handling the CellFormatting event is a valid approach for changing the text displayed in the cells. Additional information is available here: Formatting Appearance. RadPivotGrid is virtualized so please also make sure that you reset all the properties you set in a formatting event.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PivotGrid and PivotFieldList
Asked by
jung
Top achievements
Rank 1
Answers by
Hristo
Telerik team
jung
Top achievements
Rank 1
John
Top achievements
Rank 1
Share this question
or