Hello everyone,
I am new to Telerik and I am trying to show some reports in a RadGridview but some data doesn't show correctly. I have currenlty 2 problems.
Format String
I tried different ways to set up the FormatString. It doesn't change the format in the cells. (see screenshot1).
I want the numbers to look like 999,999,999,999.99 or 99.00 or 0.00 for example and the date to look like 03/02/2010 or 12/24/2001 but it doesn't want to change. When I sent the data to the radgridview, it is send as a string.
I tried different things to format the numbers and the date:
What ever I try, it doesn't change any format of the numbers. Do you know why? I tried to put the Formatting code before or after setting the view, it has no effect.
Pin Columns.
I want to pinned the first 2 columns of my radgridview. No problem to do that. It's well explained in the documentation but the result is scary. I follow the documentation and just wrote this after setting up the view (if I put it before setting up the view, it doesn't work). I started first with 1 column:
Some empty space appears after the columns (see screenshot1) and I can not scrool horizontally more than this and 2 columns or more are hidden (see screenshot2).
Do you have any idea why this happen?
When I do it for 2 columns (see screenshot3), the empty space become even bigger.
Do you know anyway to have this to show correclty?
Thanks,
LB
I am new to Telerik and I am trying to show some reports in a RadGridview but some data doesn't show correctly. I have currenlty 2 problems.
Format String
I tried different ways to set up the FormatString. It doesn't change the format in the cells. (see screenshot1).
I want the numbers to look like 999,999,999,999.99 or 99.00 or 0.00 for example and the date to look like 03/02/2010 or 12/24/2001 but it doesn't want to change. When I sent the data to the radgridview, it is send as a string.
I tried different things to format the numbers and the date:
radGridViewSaleReport.Columns[
"Date1"
].FormatString =
"{0:MM/dd/yyyy}"
;
radGridViewSaleReport.Columns[
"Amount1"
].FormatString =
"{0:#,###0.00;(#,###0.00);0.00}"
;
radGridViewSaleReport.Columns[
"Amount2"
].FormatString =
"{0:#,0.00}"
;
radGridViewSaleReport.Columns[
"Amount4"
].FormatString =
"${0:F2}"
;
radGridViewSaleReport.Columns[
"Price/Sq.M."
].FormatString =
"{0:C}"
;
radGridViewSaleReport.Columns[
"Selling Price"
].FormatString =
"{0:###,###,###,##0.00}"
;
radGridViewSaleReport.Columns[
"TotalInstPaid"
].FormatString =
"{0: ####.## THB}"
;
What ever I try, it doesn't change any format of the numbers. Do you know why? I tried to put the Formatting code before or after setting the view, it has no effect.
Pin Columns.
I want to pinned the first 2 columns of my radgridview. No problem to do that. It's well explained in the documentation but the result is scary. I follow the documentation and just wrote this after setting up the view (if I put it before setting up the view, it doesn't work). I started first with 1 column:
radGridViewSaleReport.Columns["Customer Name"].IsPinned = true;
Do you have any idea why this happen?
When I do it for 2 columns (see screenshot3), the empty space become even bigger.
Do you know anyway to have this to show correclty?
Thanks,
LB