Hello Telerik team
We're considering using RadMap in our new WPF application
I'm trying to add my custom webclient which uses custom user-agent and referrer
solutions i'v tried:
- adding this mechanism to getCachedTile(), but it seems not using Asyc method so it makes the progrom very laggy and slow
- adding dummy Uri in GetTile() then add tile retriever to GetCachedTileAsync(), it works but i can't cancel out-of-view tile requests after fast zoom or drag
Is there any way else to get around this issue?
regards
I have a gridview bound to a dictionary... working well except this part. I'm trying to pass a the value component of the item in the grid as a command parameter to the view model. I get a null object as the parameter. examples of this anywhere?
when the collection was just an observable collection the xaml worked as follows:
CommandParameter= {Binding}
this gave me the item in the collection as the command parameter. When i changed my collection to a dictionary (from observableCollection) it started being null.
I am using Visual Studio 2013 with Telerik 2015.2.623.45 and I am seeing some very odd behavior with the Designer when I add a RadRibbonSplitButton to a RadRibbonView. Here is my simple test code.
<
telerik:RadRibbonView
>
<
telerik:RadRibbonTab
Header
=
"Home"
>
<
telerik:RadRibbonGroup
Header
=
"Search"
>
<
telerik:RadRibbonSplitButton
Text
=
"Sketch"
Size
=
Large
" />
</
telerik:RadRibbonGroup
>
</
telerik:RadRibbonTab
>
</
telerik:RadRibbonView
>
When I am trying to type more XAML into the XAML tab (and the Designer is not even open, its minimized) the Designer keeps opening and selecting the RadRibbonSplitButton. Its very add (and extremely frustrating) that while I am typing or using the keyboard in the XAML tab the Designer will just take over and open directly on top of everything. I added a color picker as the content of the RadRibbonSplitButton and the color picker will draw on top of the XAML and the designer is minimized (collapsed). As it stands right now I can't even use the RadRibbonSplitButton or my Designer just takes over.
Anyone else seeing this behavior?
Hi, is there any way to wrap text on merged cells? I'm using a custom template the style of the merged cells but I haven't been able to wrap the text con those cells.
Thanks.
Hello dear,
i am so tired, to implement a sample, i want make a sample Map project in WPF for SalesDashboard only, but i alwasy have a problem,
can you provide a sample map especially only a salesdashboard project only and send to me please
Hello All,
I would first like to thank Martin again, he's sample got me pretty far. In fact in the first sample included below, I got my Labels and the slider bar behaving as I would like. When I tried porting over to my main application (the second sample below Sample2), I got some BUT not all behavior... Namely, the trackbar is not coloring correctly, nor does it have the proper thumbs, for the selector. I see in Martin's sample code that there is an application resource defined in the app.xaml file.
<
Application
x:Class
=
"BaseApplicationProject.App"
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri
=
"MainWindow.xaml"
>
<
Application.Resources
>
<
ControlTemplate
x:Key
=
"largeDecreaseButtonTemplate"
TargetType
=
"{x:Type RepeatButton}"
>
<
Grid
Background
=
"{TemplateBinding Background}"
/>
</
ControlTemplate
>
</
Application.Resources
>
</
Application
>
However, my lack of familiarity with this has caused some problems. You see in my main app the App.xaml file has a ResourceDictionary defined:
<
Application
x:Class
=
"Worms.App"
xmlns
=
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x
=
"http://schemas.microsoft.com/winfx/2006/xaml"
Startup
=
"OnStartup"
Exit
=
"OnExit"
>
<
Application.Resources
>
<
ResourceDictionary
>
<
ResourceDictionary.MergedDictionaries
>
<
ResourceDictionary
Source
=
"/Fluent;Component/Themes/Generic.xaml"
/> <
ResourceDictionary
Source
=
"/Fluent;Component/Themes/Office2010/Silver.xaml"
/> <
ResourceDictionary
Source
=
"Theme/Colors/Silver.xaml"
/> <
ResourceDictionary
Source
=
"Theme/Theme.xaml"
/> <
ResourceDictionary
Source
=
"Theme/Resources.xaml"
/> <
ResourceDictionary
Source
=
"pack://application:,,,/AvalonDock.Themes;component/themes/dev2010.xaml"
/> <
ResourceDictionary
Source
=
"Theme/AvalonDockTheme.xaml"
/>
</
ResourceDictionary.MergedDictionaries
>
</
ResourceDictionary
>
</
Application.Resources
>
</
Application
>
So, I tried to put the ControlTemplate in one of the included files of the ResourceDictionary, more precisely into either Theme/Theme.xaml or Theme/Resources.xaml. Neither one seemed to work. The problem I get is a Null reference in the SliderUtilities.cs file in the slider_Loaded function:
1.
static
void
slider_Loaded(
object
sender, RoutedEventArgs e)
2.
{
3.
var slider = (RadSlider)sender;
4.
var button = slider.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name ==
"LargeDecreaseButton"
);
5.
button.Template = (ControlTemplate)Application.Current.Resources[
"largeDecreaseButtonTemplate"
];
6.
7.
slider.Tag = button;
8.
}
When I step through this function in Martin's sample after line 4 is executed, button is instantiated to a good value. In my main app, when I step through the same function, button is null... Not Good! Also the slider variable in Martin's sample has an instantiated decreaseButton and increaseButton of type System.Windows.Controls.Primitives.RepeatButton. In my main app, they are both null....
Any ideas why the slider control/variable is NOT picking up the ControlTemplate for the repeatbuttons???
Thanks again in advance!,
Kevin Orcutt
Senior Software Engineer
Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: kevin.orcutt@we-ics.com
http://www.we-ics.com
hai
I am creating a user control with datagrid and i created a property called DataGridNumeric column and I want to add this property for my control.
Please he me hos to do this.
I use this code for creating column collection
public Collection<DataGridColumn> field = new Collection<DataGridColumn>();
[Category("Data")]
[Description("New Column Creation")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public Collection<DataGridColumn> Columns
{
get { return field; }
}
Thanks.
Dear Telerik Support
I just started using your controls for WPF, to see if it suits the needs of our company
Starting by doing basic examples, I stumbled upon the RadGridView pagination
I am trying to use this example
http://demos.telerik.com/silverlight/#DomainDataSource/MVVM and
and this documentation
http://docs.telerik.com/devtools/wpf/controls/raddatapager/getting-started#adding-raddatapager
But it seems my grid wont page if I dont use this
this.view = new QueryableDomainServiceCollectionView<Customer>(context, getCustomersQuery);
this.view.PageSize = 10;
thus attributing the PageSize to it.
right now I use a ObservableCollection<Entity> List.
So my question is: Where how can I use the above mentioned class (QueryableDomainServiceCollectionView) to support my need of pagination?
I don't want to paginate it manually, by using the Unbound mode. and I would prefer to avoid that all data goes into memory
I wish I could attach a zip file of my project. but since I cannot, here is the code (note: you must install the PropertyChanged.Fody nugget in order to run it):
XAML
<Window x:Class="TelerikWpfApp1.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"
xmlns:local="clr-namespace:TelerikWpfApp1"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
<Grid Name="grid">
<Grid.DataContext>
<local:ViewModel/>
</Grid.DataContext>
<telerik:RadGridView x:Name="radGridView"
HorizontalAlignment="Left"
Margin="23,30,0,0" VerticalAlignment="Top"
Height="234" Width="468"
ItemsSource="{Binding List}" AutoGenerateColumns="True">
<telerik:RadGridView.Columns>
<telerik:GridViewColumn BindingGroup="{Binding id}"/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
<telerik:RadDataPager x:Name="radDataPager"
Margin="23,264,26,27"
PageSize="5"
DisplayMode="PreviousNext"
Source="{Binding List, ElementName=radGridView}" />
</Grid>
</Window>
XAML.CS
using System.Windows;
namespace TelerikWpfApp1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
ViewModel vm = null;
public MainWindow()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
vm = grid.DataContext as ViewModel;
vm.Load();
}
}
VIEWMODEL.cs
using PropertyChanged;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
namespace TelerikWpfApp1
{
[ImplementPropertyChanged]
public class ViewModel
{
public ObservableCollection<Entity> List { get; set; }
public void Load()
{
List = GetList().ToObservableCollection();
}
List<Entity> GetList()
{
List<Entity> list = new List<Entity>();
for (int i = 0; i < 100; i++)
{
list.Add(new Entity() { comment = "dasd", id = 1, name = "fefe" });
list.Add(new Entity() { comment = "xxcv", id = 2, name = "dewd" });
list.Add(new Entity() { comment = "zzz", id = 3, name = "jjj" });
}
return list;
}
//public void Save(Entity item, string comment)
//{
// if (item.comment != comment)
// {
// //controller.Save(); }
// }
//}
}
public class Entity
{
public int id { get; set; }
public string name { get; set; }
public string comment { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
}
public static class ListExtensions
{
public static ObservableCollection<T> ToObservableCollection<T>(this IEnumerable<T> items)
{
var c = new ObservableCollection<T>();
foreach (var item in items)
{
c.Add(item);
}
return c;
}
}
}
Thank you!!!!
I am working through your documentation and am trying to get the 2nd TimeSpanPicker working.
<telerik:RadTimeSpanPicker x:Name="Duration" Value="{Binding SelectedDuration, Mode=TwoWay}"...
My implementation (different source & different name):
<
telerik:RadTimeSpanPicker
Grid.Row
=
"1"
x:Name
=
"Duration"
Value
=
"{Binding SelectedDuration, Mode=TwoWay}"
StringFormat
=
"hh\:mm' hours'"
TimeSpanWatermarkContent
=
"Select duration..."
>
<
telerik:RadTimeSpanPicker.TimeSpanComponents
>
<
wpf:TimeSpanDurationComponent
ItemsSource
=
"{Binding Durations, Mode=OneWayToSource}"
Header
=
"Minutes"
/>
</
telerik:RadTimeSpanPicker.TimeSpanComponents
>
</
telerik:RadTimeSpanPicker
>
I added the DurationTimeSpanComponent (wpf.TimeSpanDurationComponent) and have the Durations collection on my MV.
However, I get this error during runtime:
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=Durations; DataItem=null; target element is 'TimeSpanDurationComponent' (HashCode=46098163); target property is 'ItemsSource' (type 'IEnumerable')
Your example includes that control is a container. Is that important?
What I see is that you include a namespace that doesn't seem to be part of my install. When I attempt to set this xmlns I don't have it as an option. And, when I go to add a reference this is not part listed. Is the documentation bad? Is this QuickStart namespace supposed to be part of most common implementations?
xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common"