Telerik Forums
UI for WPF Forum
0 answers
38 views
Hi,

In my control actually I have a WeekViewDefinition which display from monday to friday, from 8 am to 9 pm with a minor tick length of 15 mins. In each cells I need to display a UserControl, one for the Appointment or one for the ReadOnly Slot. So filling the grid take a lot of time, approximately "00:00:00.42". I'm trying to find an event with the control where I can find which part of the data I need to load instead of loading the grid completly.

Can someone tell my if this kind of event exist or do I have to change my loading data approach?!?

Thank's
Alain
Christie Admin
Top achievements
Rank 1
 asked on 05 May 2014
0 answers
60 views
Hi,

In my control, I have a WeekViewDefinition from monday to friday, from 8 am to 9 pm with a MinorTickLength of 15mins (with 2 resources). Each cells can be an appointment or a readonly slots. Each cell contain a UserControl, one UserControl for the appointment and another UserControl for the readonyl slot. Filling the grid take a lot of time (00:00:00.41 estimated) so I'm trying to find how I can fill only the visible parts and fill the none visible parts only when it's necessary like when the user scroll. Actually when the user click on the "Next week" or on the "Previous week" buttons, the control hang until all the data is displayed and react after that.

I need to know if the control have this kind of event to let my know the real visible area or do I have to change my approach to be more efficient?!?

Thank's
Alain
Christie Admin
Top achievements
Rank 1
 asked on 05 May 2014
1 answer
150 views
Hello,

I've run into an issue where my Row Horizontal Grid Line is disappearing when I have many columns. I am not changing any styling. I do have Row and Column virtualization on though.

The issue occurs when I add at least 834 columns, not sure why 834 and that number could be higher if other environments. If I add only 833 columns to the grid the Row Horizontal Grid Line appears just fine. If I add 834 columns or more, the Row Horizontal Grid Line is gone.

Is there anything I can do to make sure that Horizontal Grid Line always shows?

Thank you.
Dimitrina
Telerik team
 answered on 05 May 2014
6 answers
317 views
I have a grid bound to an ObservableCollection and the following code is used to add a new record to the collection then select the new record in the grid;
'Add the new object to the collection...
mcolStudents.Add(moStudent)
 
'Locate the record in the grid...
With gvStudents
    For Each item As StudentView In .Items
        If item.StudentId = moStudent.StudentId Then
            .SelectedItem = item
            .ScrollIntoView(item)
            Exit For
        End If
    Next
End With

This works perfectly unless the user has grouped the records.  When the records are grouped the new record is not added to the grid and the code to locate the record in the grid doesn't locate the new record.

I have also confirmed the grid DataLoaded event doesn't fire if the records are grouped but does fire otherwise.  There are no filters applied to the grid.

What do I have to do to force the grid to load and display the record?
Dimitrina
Telerik team
 answered on 05 May 2014
11 answers
747 views
Hello

We've observed that with the amount of text typed in rich text box, it becomes very slow. If it has good amount of content then typing a small text takes even a minute or two. Same thing happens when you try to delete characters. This eventually makes the application screen load very-very slow where this control is used.

We're using Telerik RichTextBox in our application. Version - 2012.1.0326.40. Are you aware if performance is already known issue with Rich Text Box control? Do you have any suggestions?

Thanks
Manoj
Vasil
Telerik team
 answered on 05 May 2014
3 answers
257 views
Hello,

I got some issues with setting a Value in an Object depending on the Selection in a GridViewComboBoxColumn.

I have a List of Objects bound to a RadGridView. An Object contains a List of valid Value-Objects for a Value-Property the Object has. What I want to do is now bind the List of valid Value-Objects to the ComboBoxes of the Column ( each Object has a different List of valid Value-Objects) and set the Value-Property of the referring Object depending on the SelectedItem in the ComboBox.

Object ()
{
string Name {get; set;}
int Number {get;set;}
List<Value> ValidValues;
Value Value {get; set;}
bool Visibility {get;set;}
}

Value()
{
string Description {get;set;}
string Key {get;private set;}
}

<telerik:RadGridView ItemsSource="{Binding Objects}" AutoGenerateColumns="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="Nr." DataMemberBinding="{Binding Number}" IsReadOnly="True">
                            </telerik:GridViewDataColumn>
                            <telerik:GridViewDataColumn Header="Name" IsReadOnly="True" DataMemberBinding="{Binding Name}">
                            </telerik:GridViewDataColumn>
                            <telerik:GridViewCheckBoxColumn Header="Visibility" IsReadOnly="True" DataMemberBinding="{Binding IsVisible}">
                            </telerik:GridViewCheckBoxColumn>
                            <telerik:GridViewComboBoxColumn Header="Value"
                                                            Width="250"
                                                            ItemsSourceBinding="{Binding ValidValues}"
                                                            DisplayMemberPath="Description"
                                                            IsComboBoxEditable="False"
                                                            DataMemberBinding="{Binding Key}"
                                                            SelectedValueMemberPath="Key" // I have to set that to Key because otherwise the Combobox is not showing anything when the respective row is not more on focus //
                                                            >
                            </telerik:GridViewComboBoxColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

I hope this is enough code to understand what my problem is and offer me some help if possible. Thank you!
Regards,
Achim
Dimitrina
Telerik team
 answered on 05 May 2014
1 answer
242 views
I've implemented a hierarchical GridView with RadGridView in WPF and bound it MVVM style to an ObservableCollection of some custom object A which expose a child property which again is another ObservableCollection of some other type B.  It binds correctly and for the most part behaves correctly (virtualization doesn't work) but it is including a varying amount of blank vertical space between the top level rows which seems to correlate to some degree with the number of rows in the child GridView.

Seems like the GridView is just not able to correctly measure and size the vertical space necessary to accommodate the rows.

I've tried setting a fixed height on the container element which is a grid, setting the rowheight, the visiblerowheight, disable vertical scrolling - nothing seems to make a difference.

Desperate for a solution. Getting ready to throw in the towel and write my own regular ol' hierarchical data grid.

Any ideas?

Vera
Telerik team
 answered on 05 May 2014
3 answers
262 views
I have an application which is using RadMap to display Bing data which works very nice. The application also uses a map tool created by ThinkGeo to load and display shape files distributed by them called the World Map Kit. The ThinkGeo tool is fine, however the Telerik one is much better and nicer to work with. As such I attempted to load the shape files into the RadMap tool and was unable to because of the extreme slowdown of the application.

One shape file which appears to outline all land features took about a minute to load and then an additional minute or so after the ReadCompleted event to finally let the layer display. Another shape file is taking several minutes to load with no signs of stopping. Panning or zooming is also painfully slow.

ThinkGeo is able to load and display their map with about 30 or so seconds of total loading.

One key difference I can see is the largest shape file in the RadMap example is world_continents with a size of 185K. The largest ThinkGeo shape file is 384 MB with a DBF size of 285 MB. Can RadMap work with very large shape files?

Update: I went to check the version I was using which was 2010.3.1314.40. I upgraded to 2011.1.411.40 and now it fails loading any shape file with the error "Width and Height must be non-negative" and attempts to find the source for InformationLayer.ArrangeOverride line 695. In the 2010 version these shape files loaded, but were quite slow.
Peshito
Telerik team
 answered on 05 May 2014
1 answer
133 views
Is it possible to bind SelectedItems on the VisualizationLayer?
Andrey
Telerik team
 answered on 05 May 2014
2 answers
195 views
I have a RadGridView hosted with a RadPane.  The GridView uses a row style to highlight those rows where "IsSelected" is true however whenever any panes are added to the RadPaneGroup or the docking of any Pane (including the pane with the GridView) is changed, all of the "Selected" checkboxes are set to False and the formatting is lost.

Selecting another record from the master grid then selecting the original record resets the formatting.

The following defines the DocumentHost, RadPaneGroups and RadPanes;

<telerik:RadDocking Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Name="rdContent"
    Margin="5,2"
    MaxWidth="5000"
    MaxHeight="5000"
    telerik:StyleManager.Theme="Office_Blue">
     
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer x:Name="rcsContent" InitialPosition="DockedLeft">
            <telerik:RadPaneGroup x:Name="rpgContent">
                <telerik:RadPane x:Name="rpProcesses" Header="Well Processes">
                    <telerik:RadGridView Name="gvProcesses" RowStyle="{StaticResource SelectedGrid}"
                        Margin="5,2"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        telerik:StyleManager.Theme="Office_Blue"
                        AutoGenerateColumns="False"
                        ShowColumnFooters="False"
                        ShowGroupFooters="False"
                        ShowGroupPanel="False"
                        RowIndicatorVisibility="Collapsed"
                        ItemsSource="{Binding}"
                        DataLoadMode="Synchronous"
                        CanUserDeleteRows="False"
                        CanUserInsertRows="False"
                        ToolTip="Select the Processes associated with the Well Stage record"
                        UseLayoutRounding="True"
                        Visibility="Visible"
                        MinHeight="100"
                        MaxHeight="250">
 
                        <telerik:RadGridView.Resources>
                            <Style TargetType="ListBox">
                                <Setter Property="MaxHeight" Value="400" />
                            </Style>
                        </telerik:RadGridView.Resources>
 
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewCheckBoxColumn Header="Active" UniqueName="IsActive" DataMemberBinding="{Binding Path=IsActive}" IsReadOnly="True" Width="auto" TextAlignment="Center">
                                <telerik:GridViewCheckBoxColumn.CellStyle>
                                    <Style TargetType="telerik:GridViewCell">
                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                    </Style>
                                </telerik:GridViewCheckBoxColumn.CellStyle>
                            </telerik:GridViewCheckBoxColumn>
 
                            <telerik:GridViewDataColumn Header="Select" UniqueName="Selected" DataMemberBinding="{Binding Path=IsSelected}" IsReadOnly="False" Width="auto">
                                <telerik:GridViewDataColumn.CellStyle>
                                    <Style TargetType="telerik:GridViewCell">
                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                    </Style>
                                </telerik:GridViewDataColumn.CellStyle>
 
                                <!-- See http://www.telerik.com/help/wpf/gridview-checkbox-column-clicks.html for info on enabling single-click editing of checkboxes -->
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked="{Binding Path=IsSelected, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" telerik:StyleManager.Theme="Office_Blue" Click="Process_Clicked" />
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
 
                            <telerik:GridViewDataColumn Header="Process" UniqueName="Process" DataMemberBinding="{Binding Path=Process}" IsReadOnly="True" Width="auto" />
 
                            <telerik:GridViewDataColumn Header="Notes" UniqueName="Notes" IsReadOnly="True" Width="*">
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Path=Notes, Converter={StaticResource RemoveNewLine}}" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" />
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </telerik:RadPane>
                 
                <telerik:RadPane x:Name="rpRigClasses" Header="Rig Classes">
                    <telerik:RadGridView Name="gvRigClasses" RowStyle="{StaticResource SelectedGrid}"
                        Margin="5,2"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        telerik:StyleManager.Theme="Office_Blue"
                        AutoGenerateColumns="False"
                        ShowColumnFooters="False"
                        ShowGroupFooters="False"
                        ShowGroupPanel="False"
                        RowIndicatorVisibility="Collapsed"
                        ItemsSource="{Binding}"
                        DataLoadMode="Synchronous"
                        CanUserDeleteRows="False"
                        CanUserInsertRows="False"
                        ToolTip="Select a Project record to edit"
                        UseLayoutRounding="True"
                        Visibility="Visible"
                        MinHeight="100"
                        MaxHeight="250">
 
                        <telerik:RadGridView.Resources>
                            <Style TargetType="ListBox">
                                <Setter Property="MaxHeight" Value="400" />
                            </Style>
                        </telerik:RadGridView.Resources>
 
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewCheckBoxColumn Header="Active" UniqueName="IsActive" DataMemberBinding="{Binding Path=IsActive}" IsReadOnly="True" Width="auto" TextAlignment="Center">
                                <telerik:GridViewCheckBoxColumn.CellStyle>
                                    <Style TargetType="telerik:GridViewCell">
                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                    </Style>
                                </telerik:GridViewCheckBoxColumn.CellStyle>
                            </telerik:GridViewCheckBoxColumn>
 
                            <telerik:GridViewDataColumn Header="Select" UniqueName="Selected" DataMemberBinding="{Binding Path=IsSelected}" IsReadOnly="False" Width="auto">
                                <telerik:GridViewDataColumn.CellStyle>
                                    <Style TargetType="telerik:GridViewCell">
                                        <Setter Property="HorizontalContentAlignment" Value="Center" />
                                    </Style>
                                </telerik:GridViewDataColumn.CellStyle>
 
                                <!-- See http://www.telerik.com/help/wpf/gridview-checkbox-column-clicks.html for info on enabling single-click editing of checkboxes -->
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <CheckBox IsChecked="{Binding Path=IsSelected, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" telerik:StyleManager.Theme="Office_Blue" Click="RigClass_Clicked" />
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
 
                            <telerik:GridViewDataColumn Header="Rig Class" UniqueName="RigClass" DataMemberBinding="{Binding Path=RigClass}" IsReadOnly="True" Width="auto" />
 
                            <telerik:GridViewDataColumn Header="Notes" UniqueName="Notes" IsReadOnly="True" Width="*">
                                <telerik:GridViewDataColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock Text="{Binding Path=Notes, Converter={StaticResource RemoveNewLine}}" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" />
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.CellTemplate>
                            </telerik:GridViewDataColumn>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
</telerik:RadDocking>

The attached shows;
  1. The initial display when a record is loaded.
  2. The screen after docking to the right.
  3. The screen after re-selecting the record.

The grid is bound to an ObservableCollection so I'm not sure why the "Selected" values would change.

Does anyone have any suggestions?

Raymond
Top achievements
Rank 1
 answered on 04 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?