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

My company is getting ready to release a few projects that use the Telerik controls.  In development however we have used some code shared by an admin on the forums as a code example.  Are there any license restrictions placed on this code?
Vlad
Telerik team
 answered on 24 Oct 2011
3 answers
205 views
Is it possible to give the have the Expression Editor pull properties from multiple object for the fields in the tree view?  Also, is it possible to make the Editor check if child objects of the object it is passed have properties?

Thank you very much
Ron
Top achievements
Rank 1
 answered on 21 Oct 2011
4 answers
132 views
I have a DataTable that is the source for my DataFilter but I need to get the FilteredSource as a DataTable back out. Is there an easy way to accomplish this using the current control?

Thanks,
Shawn
David
Top achievements
Rank 1
 answered on 21 Oct 2011
1 answer
62 views
Dear Telerik team,
I would like to add the ability to select several days of a month as a filter criteria of several components to the RadRibbonView. So, which control would be better to use? A RadCalendar or RadDateTimePicker?
As far as I have understood the docs I need a dropdownbutton or splitbutton, which is built in in the datetimepicker. But do I need a Gallery for popup then as well?

Kind regards,
Hermann
Petar Mladenov
Telerik team
 answered on 21 Oct 2011
1 answer
144 views
I'm using version 2010.2.924.40 of RadGridView. The ColumnWidthChanged event is not firing when the user Dbl-Clicks the header cell splitter. It does fire when the user drags the header cell splitter to resize the column manually.
Tsvyatko
Telerik team
 answered on 21 Oct 2011
5 answers
273 views
I am Using RadColorPicker in our project. But RadColorPicker is not working as Office ColorPicker.

when i am selecting ColorPicker By Default NoColorFeild Selected with Black color.
after that i am selecting any color from Header Pallete or Standard Pallete. Color change as per selection.

when again i am trying to select NoColorFeild or click on 'Automatic', That is not working as Office ColorPicker.

 
Petar Mladenov
Telerik team
 answered on 21 Oct 2011
8 answers
225 views
Howdy,

I have two questions dealing with the UriImageProvider:

1) Are there limits to what size/resolution image you should use with the UriImageProvider? I seem to be unable to load files that have huge resolution (25,200 x 18,000 3.3 MB GIF for example).

2) I need to be able to hide/disable the grey area of the map control when using UriImageProvider. I am allowing users to drag MapPinPoints onto the map, but want to deny them ability to do so outside the bounds of the underlying image. Any ideas how this can be accomplished? I also would like to prevent zooming too high so that the user can no longer see the image (I would hope that I could look at the underlying image, check the resolution, and set the MinZoomLevel of the map control based on it's size).

Thanks,
Seth
Andrey
Telerik team
 answered on 21 Oct 2011
1 answer
185 views
I'm trying to modify the text size for RadTabItem headers for the entire application. If I set fontsize on the control itself it will apply to all children so I'm modifying the template to change the size on just the header content control.

I'm using the Metro theme set in the app.xaml.cs.

When I use Expression Blend to Edit a Copy of the template I would expect that the template that gets generated would be exactly the same as the default Metro radtabitem template but it's not. If I drop a tabcontrol, edit template (copy) and run the app the background of the active tab is no longer white. I thought that setting the Theme explicitly on the control and then generating a copy might make a difference but it didn't.

Is the suggested way to make changes like this to use Blend and generate a copy like I would for normal controls or do I have to include the Telerik theme project and modify the xaml directly there?
Petar Mladenov
Telerik team
 answered on 21 Oct 2011
2 answers
281 views
Hi,

I have a very annoying issue. I bind the radgridview to a list of 100 items. I scroll down the list until item100. I rebind the gridview to a list of 3 items. The problem is the following: if AlternationCount is set to a value > 0, the list is not refreshed and the items in the list are not visible, until I force a refresh by maximizing the window that hosts the gridview. The scrollbar position is not reset to 0.

I attach an example of how to reproduce this problem using the latest stable version (.NET 3.5)

Steps:
1. run the app
2. scroll the grid to bottom
3. click on "Test" button
4. the grid is rebinded. The 3 items should be visible. If AlternationCount = 2 we have an issue. If you remove AlternationCount the items are visible.

MainWindow.xaml

<Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Button Content="Test" Click="Button_Click" />
        <telerik:RadGridView Margin="0,10,0,0" Grid.Row="1" ItemsSource="{Binding Items}" AutoGenerateColumns="False" AlternationCount="2" AlternateRowBackground="#E6E3E3">
            <telerik:RadGridView.Columns>
                <telerik:GridViewColumn Width="80" Header="ID">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding ID}" VerticalAlignment="Center" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
                <telerik:GridViewColumn Width="80" Header="Data">
                    <telerik:GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding Name}" VerticalAlignment="Center" HorizontalAlignment="Left" TextTrimming="CharacterEllipsis" />
                        </DataTemplate>
                    </telerik:GridViewColumn.CellTemplate>
                </telerik:GridViewColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>

MainWindow.xaml.cs
public partial class MainWindow : Window
   {
       public MainWindow()
       {
           InitializeComponent();
       }
 
       private void Button_Click(object sender, RoutedEventArgs e)
       {
           ((MainWindowViewModel)DataContext).Test2();
       }
 
       private void Window_Loaded(object sender, RoutedEventArgs e)
       {
           DataContext = new MainWindowViewModel();
           ((MainWindowViewModel)DataContext).Test1();
       }
   }


MainWindowViewModel.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
 
namespace GridViewBug
{
    public class Stuff
    {
        public int ID { get; set; }
        public string Name { get; set; }
    }
 
    public class MainWindowViewModel : INotifyPropertyChanged
    {
        private PropertyChangedEventHandler _propertyChangedEvent;
        public event PropertyChangedEventHandler PropertyChanged
        {
            add
            {
                _propertyChangedEvent += value;
            }
            remove
            {
                _propertyChangedEvent -= value;
            }
        }
 
        protected virtual void NotifyPropertyChanged(string name)
        {
            PropertyChangedEventHandler handler = _propertyChangedEvent;
            if (handler != null)
            {
                handler(this, new PropertyChangedEventArgs(name));
            }
        }
 
        private List<Stuff> _items;
        public List<Stuff> Items
        {
            get { return _items; }
            set
            {
                _items = value;
                NotifyPropertyChanged("Items");
            }
        }
 
        public void Test1()
        {
            Items = new List<Stuff>();
            for (int i = 0; i < 100; i++)
            {
                Items.Add(new Stuff() { Name = "item" + i.ToString(), ID = i });
            }
        }
 
        public void Test2()
        {
            var items = new List<Stuff>();
            items.Add(new Stuff() { Name = "item1", ID = 1 });
            items.Add(new Stuff() { Name = "item2", ID = 2 });
            items.Add(new Stuff() { Name = "item3", ID = 3 });
 
            Items = items;
        }
    }
}

Jean
Top achievements
Rank 1
 answered on 21 Oct 2011
1 answer
120 views

WPF v2011.2.712.40

We have a grid showing a list of contacts with email addresses.  If an email is not valid a UriFormatException is thrown when just hovering over the hyperlink or trying to click on the hyperlink.  How can we trap this and stop the exception from being thrown?  I looked for error events on the grid and could not find anything obvious.

<telerik:GridViewDynamicHyperlinkColumn Header="Email" NavigateUrlMemberPaths="EmailAddress" NavigateUrlFormatString="{} mailto:{0}"  DataMemberBinding="{Binding EmailAddress}" />
Vlad
Telerik team
 answered on 21 Oct 2011
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
Book
FileDialogs
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?