Telerik Forums
UI for WPF Forum
1 answer
1.3K+ views
My customer requires grid cells to be joined vertically. This information must be updated whenever the grid changes, e.g. sorting/filtering updates of the underlying data. I now have the problem, that my grid contains the correct information but it is not redrawn with the updated information. the cell joining information is not on the objects contained in the list, but in a dictionary in the background. I am calling the method to update my dictionary when the grid is sorted. The grid is redrawn sorted correctly, but my information in the background is not up to date, so the cell-joining does not work correctly. I've tried various ways to have the grid update (also within the sorted event) but no success.

I've tried:
grid.InvalidateVisual();
grid.Measure(new Size());
grid.Visibility = Hidden -> Visible;

I've also tried the same on the parent element (a normal grid).

The thing is, when i hide the area where the problem is, then resize to show it, it's how it should be. so the data is up to date, but i can't seem to force a redraw at the right time.

I somehow need to force a redraw after the data has been updated and the sorting is done. any help much appreciated.

--- update

I have managed to get an update working, not so nice though. i am using DispatcherTimer to redraw after 10milliseconds. there is a visual jump though. but it does show that the underlying data is correct. I've also just noticed that my grid joining does not work, when items are removed/added to the list. what event on the radgridview can i use to find changes to the list (or even better the changes to the items in the list). I noticed LayoutUpdated does the trick, but it's mighty slow/called way too often.
marc
Top achievements
Rank 1
 answered on 03 Jan 2012
8 answers
1.0K+ views
I have a RadGrid where the user is supposed to select more than one item (multiple). In the ViewModel I have a property called _SelectedItem with NotifyPropertyChanged. First time i click a row in the grid, I get into the _SelectedItem property setter, but if I also want to select another row, the setter of _SelectedItem property is not fired. Am I missing something? CodeBehind is not allowed in the project where this is to be used.

This is my Grid:
<telerik:RadGridView Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4"
                      ItemsSource="{Binding ModelCollection}"
                      ActionOnLostFocus="None"
                      AutoGenerateColumns="False"
                      CanUserSortColumns="True"
                      IsFilteringAllowed="True"
                      SelectionMode="Multiple"
                      ShowGroupPanel="True"
                      RowIndicatorVisibility="Collapsed"
                      Height="470"
                      CanUserSelect="True"
                      SelectedItem="{Binding SelectedModel, Mode=TwoWay}"
                      IsSynchronizedWithCurrentItem="False"
                      IsReadOnly="True">
     <telerik:RadGridView.Columns>
         <telerik:GridViewDataColumn Header="Kode" Width="100" DataMemberBinding="{Binding Code}" />
         <telerik:GridViewDataColumn Header="Tekst" Width="360" DataMemberBinding="{Binding Text}" />
     </telerik:RadGridView.Columns>
 </telerik:RadGridView>
Vlad
Telerik team
 answered on 03 Jan 2012
1 answer
59 views
Hi!

I was testing out the following tip: http://www.telerik.com/help/wpf/radchart-howto-display-pointmarks-and-labels-for-specific-points-only.html

It was working perfectly with my small dataset for testing but then once I tested it with a larger dataset it didn'n work anymore. After a bit of testing it seems this feature only works if the dataset has less than 200 datapoints. As soon as you reach 201 the DataItem is no longer attached to the pointmark. Why is this and is there a way around it?
Evgenia
Telerik team
 answered on 03 Jan 2012
21 answers
263 views
We are using a RadRibbonWindow in an application (running on Win 7). When the application starts, there is a lot of black areas where comtrols (RibbonBar, tabs etc.) normally are placed, and when moving the mouse pointer around in the RadRibbonWindow, the controls are showing and the black fields disappear. This also happens if i by using the mouse drags the window so it's size gets smaller or larger.

The problem started after i upgraded to version 2010.2.812.40 of the radcontrols. Is this a bug, or is there something i have missed?
Tina Stancheva
Telerik team
 answered on 03 Jan 2012
1 answer
115 views
Hello,
I'm using an MVVM pattern in a WPF application with RadDocking ... I've got some RadGridView inside usercontrols and they perform poorly with horizontal and vertical scroll... I've searched this forum and the problem seems to be a missing height/width on the RadGridView... since I've defined in me Shell a 1024*768 width have I for each UserCotrol to specify a default width/height? how can I set it to the parent content?

I've also some master/detail gridview that uses a behavior to fill the child RadGrid...those performs worst... have I to specify an height/width as well?

Thanks

Paolo
Dimitrina
Telerik team
 answered on 03 Jan 2012
0 answers
116 views
I've written a module to export data from a WinForm RadGridView to excel. The module handles grouping as well. 
Now that we have ported over to WPF, that module doesn't work anymore.

Below are the RadGridView Winform objects, properties or methods. What are the equivalents in WPF? GridViewChildRowCollection GridViewRowInfo row.ChildRows row.Group row.HierarchyLevel row.Group.GroupRow.HierarchyLevel DataGroupCollection DataGroup
group.Groups.Count
grid.ColumnCount 
Oliver
Top achievements
Rank 1
 asked on 03 Jan 2012
0 answers
102 views
Hi,

 I have used RadGridViews(Telerik.Windows.Controls.GridView) in WPF that has some column. The header of column is a CheckBox. Some times header CheckBox content binding is works fine, but when i changed to another form and return back to the same form CheckBox content binding doesn't work ie, its not showing the CheckBox contant.

the code is below
   <telerikGrid:RadGridView >
 <telerikGrid:RadGridView.Columns>                                
                            <telerikGrid:GridViewDataColumn  DataMemberBinding="{Binding Name}" >
                                <telerikGrid:GridViewBoundColumnBase.Header  >
                                    <CheckBox IsChecked="False"  Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerikGrid:RadGridView}}, Path=DataContext.HeaderName}" />
                                </telerikGrid:GridViewBoundColumnBase.Header>
                            </telerikGrid:GridViewDataColumn>
</telerikGrid:RadGridView >

its shows some time like this

any solution pls send me, very urgent..

Thanks in advance
Govind

Govind
Top achievements
Rank 1
 asked on 03 Jan 2012
2 answers
273 views
Hi,
 
How can I export all the records to excel, when I'm using RadDataPager for paging.

Currentl when I export it export only the records which are currently displayed in grid.

Thanks,
Pankaj
Dimitrina
Telerik team
 answered on 03 Jan 2012
1 answer
230 views
Hello

I found a bug i cannot solve on my own

When you put RadDocking on RadRibbonWindow
Compass gets a strange translation to the right and bottom
same as all his markers

what i want to do is to combine docking with RibbonView on one window

Overview of code:

<telerik:RadRibbonWindow>
<DockPanel>
        <telerik:RadRibbonView DockPanel.Dock="Top" />
        <telerik:RadDocking/>
</DockPanel>
</telerik:RadRibbonWindow>

All works perfect except the problem i described :

Compass, transparent overlays that shows where new panel will be docked and markers are translated to the right and bottom


Tina Stancheva
Telerik team
 answered on 02 Jan 2012
2 answers
180 views
We are missing the "IsDefault" property on the RadRibbonButton. How can we set this kind of button as "default"?
Heiko
Top achievements
Rank 1
Iron
Veteran
 answered on 02 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?