Telerik Forums
UI for WPF Forum
1 answer
112 views
Hi,

In my control (ScheduleView with WeekViewDefinition), I alway displaying from monday to friday and from 8:00AM to 6:00PM for each day (each day can have 1 ou 2 resource). For each cell, I need to create a SpecialSlot and of course, I need to add available appointments. When the user navigate through each weeks, I need to recreate the same pattern but this pattern seem's to take a huge amount of time and the application freeze between each week rendering.

Actually, I set the SpecialSlotsSourceand the AppointmentsSource to null before the rendering and I assign my collections to the control after the special slots and the appointments was created.

Can you gave me some hints to accelerate my week generation?

Thank's
Alain
Kalin
Telerik team
 answered on 06 May 2014
2 answers
457 views
Hello,
I have a GridView that contains a column bound to a Boolean value.
I want that the value is not displayed with the default check box, so I wrote a converter that displays a check mark only when the value is true.

If I use the converter only on the DataContext, the column is still displayed with the standard check box:
DataContext="{Binding IsTeamMate, Converter={StaticResource BooleanToCheckMark}}"

To have the column displayed normally, I had to define a cell template:
<tk:GridViewDataColumn DataContext="{Binding IsTeamMate, Converter={StaticResource BooleanToCheckMark}}"
                       Header="Already played"
                       IsGroupable="False"
                       ShowFieldFilters="False"
                       UniqueName="IsTeamMate"
                       Width="30">
  <tk:GridViewDataColumn.CellTemplate>
    <DataTemplate>
      <TextBlock Text="{Binding IsTeamMate, Converter={StaticResource BooleanToCheckMark}}" />
    </DataTemplate>
  </tk:GridViewDataColumn.CellTemplate>
</tk:GridViewDataColumn>

Is it a normal behavior or is there another way to display the column correctly ?
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 06 May 2014
2 answers
159 views
Hello, basically in the event handler "CellEditEnded", I would like to check if the old cell value is the same as the new cell value.
e.OldData == e.NewData returns true if I completely don't touch the cell values.

However, if I for example, add something to the cell, and delete it again BACK to the same value, then e.OldData == e.NewData return false.
(Example - original value: test --> typed 's' to become 'tests' --> backspace again to become 'test' which is back to the same value.
Setting breakpoints does show that  e.OldData and e.NewData still have the same value, but somehow no longer equal.

e.OldData.ToString() and e.NewData.ToString() works, however, there will be exception if the column is binded to any non-string datatype (such as int / datetime etc). Is there any workaround for this? Thanks for your attention.
Nick
Telerik team
 answered on 06 May 2014
2 answers
81 views
I was wondering if anyone has done any work in showing the RadTimeBar in a vertical orientation?  Every example I have seen shows it in a horizontal layout, and I don't see anything that would allow me to show it vertical.  Am I overlooking it somewhere, or is it not currently a feature?

Thanks
Paul
Paul
Top achievements
Rank 1
 answered on 06 May 2014
3 answers
221 views
Hello,
i have some trouble with the RadComboBox control.

Window is Loaded, see Screenshot 001
I clicked in RadComboBox, see Screenshot 002
I typed in "14" and pressed Enter, see Screenshot 003

I clicked again in RadComboBox and I have severell problems. (see Screenshot 004)
  • Marked Text cannot be overriden
  • DropDown doesn't show up, even if I clicked clear
  • No caret appears

The Code is very minimalistic
<Window x:Class="RadComboBoxSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
        Title="MainWindow" Height="220" Width="220">
    <Window.Resources>
        <Style x:Key="RadComboBoxContentUserControlStyle" TargetType="telerik:RadComboBox">
            <Setter Property="Margin" Value="10" />
            <Setter Property="Padding" Value="10" />
            <Setter Property="HorizontalAlignment" Value="Stretch" />
            <Setter Property="IsReadOnly" Value="True" />
            <Setter Property="IsEditable" Value="True" />
            <Setter Property="IsFilteringEnabled" Value="True" />
            <Setter Property="CanAutocompleteSelectItems" Value="True" />
            <Setter Property="CanKeyboardNavigationSelectItems" Value="True" />
            <Setter Property="OpenDropDownOnFocus" Value="True" />
            <Setter Property="TextSearchMode" Value="Contains" />
            <Setter Property="ClearSelectionButtonVisibility" Value="Visible" />
            <Setter Property="ClearSelectionButtonContent" Value="Clear" />
            <Setter Property="EmptyText" Value="Please select" />
        </Style>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" MinWidth="200" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <telerik:RadComboBox Grid.Column="0" Grid.Row="0" Style="{StaticResource RadComboBoxContentUserControlStyle}">
            <telerik:RadComboBoxItem Content="14 - Car" />
            <telerik:RadComboBoxItem Content="15 - Airplane" />
            <telerik:RadComboBoxItem Content="16 - Boat" />
            <telerik:RadComboBoxItem Content="17 - Bike" />
        </telerik:RadComboBox>
    </Grid>
</Window>




Kalin
Telerik team
 answered on 06 May 2014
0 answers
63 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
77 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
165 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
331 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
807 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
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?