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

CrossTab Report adding coloumn

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
mennam
Top achievements
Rank 1
mennam asked on 10 May 2010, 07:56 AM
Hi,

I am building a crosstab report, with value of Textbox as count(field).
I want to add another column in the report with percent value w.r.t the textbox. I was able to add the column in the report, the problem is that the percent column is accepting decimal values, i tried using user-defined functions, changing it in textbox data bind property, but nothing seems to work.
I am populating the percent column using the following function:
 public static decimal Qtr(int a)
        {
            return (a /5);
        }

But only numeric values are displayed, I tried formatting options of the textbox too, but no success.

I ve attached the screenshot, please suggest something.

Thanks

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 11 May 2010, 11:51 AM
Hi mennam,

We are unable to reproduce the described behavior. Check out the CrossTab (ProductSales) demo that came with your installation of Telerik Reporting. In the CrossTab item we have set the Format property to {0:N1} and it works as expected. To further investigate please send us a sample runnable project via the support system that shows the issue you have encountered and we would advise you accordingly.

All the best,
Peter
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
General Discussions
Asked by
mennam
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or