Hi,
The gridview really impress us. The way of showing data is very nice to us.
But we have a problem about the speed .
When we show the list with many columns(more than 35 columns),every time it takes a lot time(more than 3~4 sec), even only loading 100 records.
We have tried everything we can try , but the result is not OK yet.
Is the reason that we use the trial version?
If we buy the professional version , can we improve the speed ?
We appreciate your help very much.
Stan
When select a cell an then click it the cell is in edit mode
it is too flexible
is there any way to block it and just enter the edit mode by doubleclick
thank you!
Hello,
On the RadSpreadsheet whenever I press the decimal key the default decimal separator apears selected. So whatever I press after that overwrites it unless I unselect it first. This doesn't happen if I press the respective keyboard key (next to the letters). This happens on all the spreadsheet demos and my application. This still happens if I change my default decimal separator.
The PreviewKeyDownEvent is called when the pressed key is Key.Decimal, but the KeyDownEvent is not called.
My telerik version is 2015.2.728.40
I am trying very hard to format a cell number, but it is not working as expected.
In my country we use the numbers like this: 1.000,00. The 'comma' to represent the decimal and the 'dot' to represent 'thousand' point.
What I want: The number value to look like this: "0,824".
What I get: the number value looking like this: "823.723.228.995.058,00". (PS: I get this value from a database).
That's really weird.
I am setting the format like this:
worksheet.Cells[row, column].SetFormat(new CellValueFormat("#.##0,00"));
I have already tried a lot of formats, but none of them seems to work as I expect. I aways get the same result.
Is there any other CellValueFormat that I am missing here?
Thank you
I've followed the example at:
http://docs.telerik.com/devtools/wpf/controls/radgridview/troubleshooting/styling-custom-header.html
Well, it works for most cases, but it doesn't work if the column visibility is bound to a property, and it is invisible when the grid is loaded. It's hard for me to give a simple example that demonstrates exactly the scenario I have, but I've managed to find a different scenario, which reproduces the problem.
MyGridView.xaml
<
UserControl
x:Class
=
"GridViewHeaderForground.MyGridView"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:GridViewHeaderForground"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
>
<
telerik:GridViewDataColumn.Header
>
<
TextBlock
Text
=
"First Column"
Foreground
=
"{Binding Foreground, RelativeSource={RelativeSource AncestorType={x:Type ContentControl}}}"
/>
</
telerik:GridViewDataColumn.Header
>
</
telerik:GridViewDataColumn
>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
MainWindow.xaml
<
Window
x:Class
=
"GridViewHeaderForground.MainWindow"
xmlns:local
=
"clr-namespace:GridViewHeaderForground"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Grid
>
<
TabControl
SelectedIndex
=
"0"
>
<
TabItem
Header
=
"1"
>
<
local:MyGridView
/>
</
TabItem
>
<
TabItem
Header
=
"2"
>
<
local:MyGridView
/>
</
TabItem
>
</
TabControl
>
</
Grid
>
</
Window
>
As you can see, the first tab looks fine, but if you switch to the second one, then the textblocks are all black.
If you try to "debug" it with snoop, and it fixes the binding problem.
My scenario is a little different: I have several RadPanes which only one of them is selected. On the other ones, few columns are invisible by using the IsVisible which is bound to a property.
When one of the RadPanes get selected, it loads (and so does the header cells). On the RowLoaded event, I get only the cells that are visible (if I'm correct).
Now if I change that property to true, the column becomes visible, but the textblock is black.
I think both problems are the same.
How do I solve it? I need to have both image and text in the header.
Thanks.
My program needs to display a TimeSpan with days expressed in hours. For example,take the following TimeSpan:
var someTimeSpan = TimeSpan.FromHours(50);
The RadTimeSpanPicker displays the value and allows it to be edited in this format:
2.2:00:00
However, I need it to display the value and allow it to be edited in this format:
50:00:00
I grant that the way this is done out of the box is the way most would want it, and that I am asking for something special.
Hi, when using the GridViewSelectColumn filters, it deselects the selecteditems. So I use this bit of code to fix it
private void LoanGrid_OnFiltered(object sender, GridViewFilteredEventArgs e)
{
LoanGrid.SelectedItems.AddRange(SelectedLoans);
}
public BindableCollection<
LoanDTO
> SelectedLoans { get; set; }
private void LoanGrid_OnFiltering(object sender, GridViewFilteringEventArgs e)
{
SelectedLoans = new BindableCollection<
LoanDTO
>();
foreach (var selectedItem in LoanGrid.SelectedItems)
{
SelectedLoans.Add((LoanDTO)selectedItem);
}
}
That works perfectly fine, but I'm trying to have it be in MVVM format using caliburn.
on xaml side, cal:Message.Attach="[Filtered] = [Filtered];[Filtering] = [Filtering] "
ViewModel
private BindableCollection<
LoanDTO
> _oldLoans = new BindableCollection<
LoanDTO
>();
public void Filtered()
{
SelectedLoans = new BindableCollection<
LoanDTO
>(Items.Where(x => _oldLoans.Any(y => y.Id == x.Id)));
}
public void Filtering()
{
_oldLoans = new BindableCollection<
LoanDTO
>();
foreach (var selectedItem in SelectedLoans)
{
_oldLoans.Add(selectedItem);
}
}
The selecteditems get cleared using the MVVM methods. Any thoughts?