Hello,
Using the latest WPF controls, I need to add inside a RadWindow, a RadTimePicker or RadDatePicker.
When I run the application the controls are displayed correctly, but when I try to open the datepicker, I get the attached error.
I`ve added the NoXML dlls and in the App.XAML I`ve added the Windows8Touch theme for each control.
Note that, independently, all controls are working perfectly fine, but in this case I don`t understand what is the problem. Am I missing something ?
Details of the sistem : Windows 8.1 x64
Hello.
Is it possible to use RadRibbonBackstageItem with prism?
I try to use navigation but view doesn't appears.
<telerik:RadRibbonBackstageItem Header="Info" IsDefault="True" Command="{Binding NewCommand}" CommandParameter="Info" >
<ContentControl regions:RegionManager.RegionName="RadRibbonViewRegion" />
</telerik:RadRibbonBackstageItem>
...
var regionManager = ServiceLocator.Current.GetInstance<IRegionManager>();
regionManager.RequestNavigate("RadRibbonViewRegion", new Uri("New", UriKind.Relative));
Hi,
I tried to load a complex 3D project exported as KMZ from Sketchup. Nothing appears...
You have planned a complete support for Kml specifications?
If not, exists another way to show a sketchup project into a RadMap (or other control)?
thanks
marc.
Hi,
I'm using VS2013 with the latest version of Telerik and I have a problem in design mode. When I have multiple RadTabItem, if I click on a RadTabItem, the designer don't show the content of the RadTabItem I clicked on. It work only if it's the first one.
Thank's
Alain
In my application I have a datagrid and one of the column is a column with a richtextbox. There are about 30 rows in the datagrid and loading of each richtextbox take some time, so loading of 30 richtextboxes take a lot of time.
Is there any way to improve loading speed of datagrid with richtextboxes? Maybe they can use the same background logic instead of separated for each item.
If it could help, at the same time only one richtextbox can be editable. So, by default row is read only, but user can edit only one at the same time.
Thanks
Best Regards,
Grigory
I am using EF 6 to connect to a database in a WPF app using MVVM pattern. I have a derived context like so:
public
class
TIMSContext : DbContext
{
public
TIMSContext()
:
base
(
"name=TIMSContext"
) { }
protected
override
void
OnModelCreating(DbModelBuilder modelBuilder)
{
//map models...
}
public
IQueryable<T> Query<T>()
{
return
this
.Set(
typeof
(T)).AsQueryable()
as
IQueryable<T>;
}
}
I want to use the EntityFrameworkDataSource to provide items to a RadGridView so that I don't have to write the paging/filtering code myself. I have looked at the example, but I cannot get it to work.
My XAML:
<
telerik:RadGridView
x:Name
=
"RadGridView1"
Grid.Row
=
"0"
AlternateRowBackground
=
"CornflowerBlue"
AlternationCount
=
"2"
AutoGenerateColumns
=
"True"
CanUserDeleteRows
=
"False"
CanUserFreezeColumns
=
"False"
CanUserInsertRows
=
"False"
GroupRenderMode
=
"Flat"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding ShipmentData}"
RowIndicatorVisibility
=
"Collapsed"
/>
<
telerik:RadDataPager
Grid.Row
=
"1"
DisplayMode
=
"FirstLastPreviousNextNumeric"
PageSize
=
"25"
Source
=
"{Binding ShipmentData}"
/>
Here is my Viewmodel:
public
class
ShipmentsViewModel :ViewModelBase
{
private
readonly
QueryableEntityCollectionView<TIMS.Data.Entities.ASN> shipments;
private
readonly
TIMS.Data.TIMSContext ctx;
public
ShipmentsViewModel()
{
try
{
ctx =
new
Data.TIMSContext();
shipments =
new
QueryableEntityCollectionView<Data.Entities.ASN>(ctx,
"ASN"
);
//Argument 1: cannot convert from 'TIMS.Data.TIMSContext' to 'System.Data.Objects.ObjectContext'
//Also tried this which I saw on some forums...
//shipments = new QueryableEntityCollectionView<Data.Entities.ASN>( ((IObjectContextAdapter)ctx).ObjectContext, "ASN");
//Argument 1: cannot convert from 'System.Data.Entity.Core.Objects.ObjectContext' to 'System.Data.Objects.ObjectContext'
}
catch
(Exception)
{
}
}
#region Properties
public
Object ShipmentData
{
get
{
return
shipments;
}
}
#endregion
}
Hallo,
I'd like to ask about my problem. I have app where i'm working with tabControl and RadDiagram. First RadDiagram is created in xaml code and it's loaded manualy with some logic from the xml file. DragDrop logic is based on your DragDrop tutorial and it's working fine. But when i try create diagram manualy behind the code with my own method which is defining the most important things in diagram i don't know how to make it works with my DragDropBehavior Class.
How could i define dragDrop:DragDropBehaviorRadDiagram.IsEnabled="True" behind code when i'm create new diagram?
thank you for your time and advices
Grettings
Jakub Rautner
private
RadDiagram CreateNewDiagram()
{
RadDiagram dgrm =
new
RadDiagram();
// Events handlers
dgrm.ShapeDoubleClicked +=
new
EventHandler<ShapeRoutedEventArgs>(diagram_ShapeDoubleClicked);
dgrm.MouseDoubleClick +=
new
MouseButtonEventHandler(diagram_MouseDoubleClick);
dgrm.SelectionChanged +=
new
SelectionChangedEventHandler(diagram_SelectionChanged);
dgrm.ZoomChanged +=
new
EventHandler<RadRoutedPropertyChangedEventArgs<
double
>>(diagram_ZoomChanged);
DragDropManager.AddDropHandler(dgrm, OnDrop);
dgrm.Style =
this
.Resources[
"diagramStyle"
]
as
Style;
dgrm.ShapeStyleSelector = xGrid.Resources[
"CustomShapeStyleSelector"
]
as
NodeStyleSelector;
dgrm.ConnectionStyleSelector = xGrid.Resources[
"CustomConnectionStyleSelector"
]
as
LinkStyleSelector;
dgrm.LayoutAsync(LayoutType.Tree, TreeSettings);
dgrm.IsDraggingEnabled =
true
;
dgrm.AllowDrop =
true
;
return
dgrm;
}
Here' s definition RadDiagram in xaml file: dragDrop is namespace where i have created DragDropBehavior logic for TreeView and RadDiagram
<
telerik:RadDiagram
x:Name
=
"diagram"
Grid.Row
=
"0"
ShapeStyleSelector
=
"{StaticResource CustomShapeStyleSelector}"
ConnectionStyleSelector
=
"{StaticResource CustomConnectionStyleSelector}"
Style
=
"{StaticResource diagramStyle}"
ZoomChanged
=
"diagram_ZoomChanged"
IsZoomEnabled
=
"True"
MouseDoubleClick
=
"diagram_MouseDoubleClick"
AllowDrop
=
"True"
dragDrop:DragDropBehaviorRadDiagram.IsEnabled
=
"True"
ShapeDoubleClicked
=
"diagram_ShapeDoubleClicked"
SelectionChanged
=
"diagram_SelectionChanged"
>
<
primitives:ItemInformationAdorner.AdditionalContent
>
<
telerik:SettingsPane
x:Name
=
"xSettingsPane"
Diagram
=
"{Binding ElementName=diagram}"
>
</
telerik:SettingsPane
>
</
primitives:ItemInformationAdorner.AdditionalContent
>
</
telerik:RadDiagram
>
Hi,
I am trying to have a single chart with a Stacked 100 Bar series with a Line Series over it, however the line series doesn't want to show.
Example code:
<telerik:RadCartesianChart.Series>
<telerik:BarSeries x:Name="barSeries1" CategoryBinding="MyDateTime"
ValueBinding="RedValue"
ItemsSource="{Binding MyDataSource}"
CombineMode="Stack100">
<telerik:BarSeries.PointTemplate>
<DataTemplate>
<Rectangle Fill="Red"/>
</DataTemplate>
</telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
<telerik:BarSeries x:Name="barSeries2" CategoryBinding="MyDateTime"
ValueBinding="GreenValue"
ItemsSource="{Binding MyDataSource}"
CombineMode="Stack100"
>
<telerik:BarSeries.PointTemplate>
<DataTemplate>
<Rectangle Fill="Green"/>
</DataTemplate>
</telerik:BarSeries.PointTemplate>
</telerik:BarSeries>
<telerik:LineSeries x:Name="lineSeries1" CategoryBinding="MyDateTime" ValueBinding="MyValue" Stroke="Black"
ItemsSource="{Binding MyDataSource}"
/>
</telerik:RadCartesianChart.Series>
Any assistance would be greatly appreciated.