Telerik Forums
UI for WPF Forum
6 answers
255 views
I would like to change custom style for RadpanelBar to display the arrow on the left instead of on the right side.
How can I customize it?  Also, when the row is expanded, the arrow will display differently.

Ram
Top achievements
Rank 1
 answered on 19 Dec 2014
1 answer
119 views
Every time I use the RadWindow i get this exception at design time:

It's impossible to cast 'Microsoft.Expression.DesignSurface.View.ArtboardBorder' on type 'System.Windows.Window'

At runtime everything works fine.
Kalin
Telerik team
 answered on 19 Dec 2014
5 answers
171 views
Hi guys,

I get the following issue on the version 2014.2.0617.45:

When I select one row on top of the grid, then scroll down, and try to select other row - all the pages in between are getting loaded. The issue haven't reproduced on earlier version (2013.2.724.40).

Here is the code to reproduce the problem:
View:

<Window x:Class="RadGridView_Virtualization.MainWindow"
        xmlns:local="clr-namespace:RadGridView_Virtualization"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <local:MyViewModel x:Key="MyViewModel" />
    </Window.Resources>
         
    <Grid DataContext="{StaticResource MyViewModel}">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <telerik:RadGridView x:Name="gridAccessList"
                              Height="240"
                              Width="370"
                             IsFilteringAllowed="False" CanUserReorderColumns="True"
                              AutoGenerateColumns="False"
                              ItemsSource="{Binding Path=Items}"
                             EnableRowVirtualization="True"
                             SelectionMode="Extended"
                             ScrollViewer.IsDeferredScrollingEnabled="True" IsReadOnly="True"
                             ShowGroupPanel="False">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Id}"
                                                            Width="*"/>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>

ViewModel:

using System.Collections.Generic;
using System.ComponentModel;
using Telerik.Windows.Data;
 
namespace RadGridView_Virtualization
{
    public class MyViewModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
 
        public MyViewModel()
        {
            Items = new VirtualQueryableCollectionView<DummyData>
              {
                VirtualItemCount = LoadSize, LoadSize = this.LoadSize
              };
 
          Items.ItemsLoading += OnItemsLoading;
        }
 
    private void OnItemsLoading(object sender, VirtualQueryableCollectionViewItemsLoadingEventArgs args)
    {
      Items.VirtualItemCount = 35000;
 
      Source = new List<DummyData>();
 
      for (int i = 0; i < args.ItemCount; i++)
      {
        Source.Add(new DummyData { Id = args.StartIndex + i });
      }
 
      Items.Load(args.StartIndex, Source);
    }
 
      private List<DummyData> source;
        public List<DummyData> Source
        {
            get { return this.source; }
            set { this.source = value; }
        }
 
        private int loadSize = 100;
        public int LoadSize
        {
            get { return loadSize; }
            set { loadSize = value; }
        }
 
        public VirtualQueryableCollectionView<DummyData> Items { get; private set; }
 
        public class DummyData
        {
            public int Id { get; set; }
        }
    }
}

If you put a breakpoint in OnItemsLoading method - you'll see that grid requests all pages between two selected rows. Please, note, that it happens after regular single row selection, so no data pages in the middle of two selected rows are not needed.
Nick
Telerik team
 answered on 19 Dec 2014
3 answers
301 views
I have two issues with the RadTreeListView control. 

1)Performance sucks on the UI load for the expansion of rows with MVVM. The issue I have is I maintain the state of the collapsed and expanded nodes. Let's say my Nodes are all expanded. I set my datasource.
The control draws them all collapsed, then "pops" then expands them all. Looks like crap. i.e. I do a "refresh" on my datasource and reset the collection and all the items collapse then expand again. Looks pretty bad.


2) I spent hours trying to figure this out to no avail. I am refreshing my datasource and I tried to ways to set my selected item. 
1) using the IsSelected property. Which should have been good enough since I store that value and load it with my objects. (And yes, I had the row databinding style which would have been nice if you had that supported like the IsExpandedBinding property)
2) Setting my SelectedItem property on my VM. Which is bound two way to the grid.

I set it before. I set it after the ItemSource update. I always just get the first item in the dataset to appear selected.

I am using an observablecollection for the ItemsSource.

Maybe I am missing something obvious, but the control isn't feeling very solid to me so far.





Nick
Telerik team
 answered on 19 Dec 2014
1 answer
198 views
RadRichTextBox Header and Footer places can not show images in WPF. When I open a word docx file header images are remove.
Boby
Telerik team
 answered on 19 Dec 2014
3 answers
169 views
Hi,

Can you guide me on the simplest way of how I can change the Background of an Selected Appointment ?
I also want to customize the Opacity and the Border and also all this when hover on it.

I successfully changed different properties of an appointment, but I'm not sure how to change the selected properties.

Thanks,
Daniel
Kalin
Telerik team
 answered on 19 Dec 2014
10 answers
364 views

I have two issues:

1) On data type validation, I see the row highlight but do not see any error message as a comment that I see in DataAnnotations Support demo

2) How do I add validations like Required field validation or any custom validation at runtime.

I am using 2013.2.724.45 version of telerik controls.

Dimitrina
Telerik team
 answered on 19 Dec 2014
5 answers
98 views
Seems that GroupHeaderTemplate doesn't use the Converter set in the GroupDescription?
How can I make a template that does?
Dimitrina
Telerik team
 answered on 19 Dec 2014
1 answer
59 views
Steps to reproduce:
1. create the following lines of text:
line 1
line 2
line 3

2. select "line 1" and indent it to the right ; it results in one step indentation
3. select both "line 2" and "line 3" and indent them to the right;  it results in two step indentation
Aylin
Telerik team
 answered on 19 Dec 2014
4 answers
263 views
Howdy Everyone,

I'd like to ask on how to hide/show telerik grids on the same window by clicking a button?

Here's my scenario: 
I have 3 buttons: the day, week and month. My default grid on the window is the Day Grid. When I clicked on the day button, the day grid would show up, when the week button is clicked, the week grid will and the day grid will hide, and lastly, when the month button is clicked, the month grid will show and the week grid will be hidden. Please help me since i'm new to your tools. Would greatly appreciate your help. God bless.

Ayana
Ben
Top achievements
Rank 1
 answered on 18 Dec 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?