Telerik Forums
UI for WPF Forum
1 answer
142 views
We are having problems loading a saved layout and I reproduced it with the project that George (Telerik Team) attached to this thread:

http://www.telerik.com/community/forums/wpf/docking/unable-to-dock-pane-after-a-loadlayout.aspx#1362147

Here are the steps:

1) Undock the Documents RadDocumentPane.
2) Enter a name in the textbox.
3) Click Save.
4) Click Load. Notice that this works.
5) Right click the Documents title bar and select "Floating".
6) Click Save.
7) Click Load. Notice the ArgumentOutOfRangeException indicating that the parameter name "index" is out of range.

If you compare the two XML documents that are produced by steps 3 and 6, you will see that a SelectedIndex of -1 appears for the RadPaneGroup named RadDocumentGroup in the second XML document. This appears to be the source of the exception.

<RadSplitContainer>
  <Items>
    <RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="-1">
      <Items />
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

The RadDocumentPane that used to exist in the Items group has been moved to a RadSplitContainer outside of the document host, which makes sense to me.

<RadSplitContainer InitialPosition="FloatingOnly" FloatingWidth="737" FloatingHeight="515" FloatingX="1769" FloatingY="467" IsInOpenWindow="True" WindowZIndex="1" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
  <Items>
    <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
      <Items>
        <RadDocumentPane SerializationTag="DocumentPane" IsDockable="False" Title="Documents" Header="Documents" CanUserClose="False" />
      </Items>
    </RadPaneGroup>
  </Items>
</RadSplitContainer>

George
Telerik team
 answered on 10 Nov 2010
1 answer
201 views
Hello,

We are using  GridViewComboBoxColumns in our grid and our situation is this:

In some cases the SelectedValue will not exist in the ItemsSource and the observed behavior of the column is leave it empty.  Is there any way we could change that value to be something other than empty text like "Item Not Found"?

Are there templates that we can modify to accommodate this?  If so, which ones and how would they have to be changed?

Thanks!
Maya
Telerik team
 answered on 10 Nov 2010
1 answer
195 views
Hi,

i would like to hide (set collapsed) the text input box from the raddatepicker.

how can this be done?
Kaloyan
Telerik team
 answered on 10 Nov 2010
2 answers
127 views
Hello all,

I need some help getting multiple Y axis to work.  I can get other graphs to work, but as soon as I go to multiple Y axis I get nothin.

In my xaml I have this --> 

<telerikChart:RadChart x:Name="radChart" />
In my code behind I have this --> (Which is copied from the online help files, the only changes are in bold)

radChart.DefaultView.ChartArea.AxisY.Title = "Megawatt [MW]";
AxisY axisY = new AxisY();
axisY.AxisName = "AxisY_South";
axisY.Title = "Kilowatt [kW]";
radChart.DefaultView.ChartArea.AdditionalYAxes.Add( axisY );
  
//Series mapping for the collection with index 0
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 0;
seriesMapping.LegendLabel = "North [MW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Actual", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
//Series mapping for the collection with index 1
seriesMapping = new SeriesMapping();
seriesMapping.CollectionIndex = 1;
seriesMapping.LegendLabel = "South [kW]";
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.SeriesDefinition.AxisName = "AxisY_South";
seriesMapping.SeriesDefinition.ShowItemLabels = false;
seriesMapping.ItemMappings.Add( new ItemMapping( "Goal", DataPointMember.YValue ) );
radChart.SeriesMappings.Add( seriesMapping );
radChart.ItemsSource = TMbyDate;

...

TMbyDate works with itemmapping Actual or Goal for single Y axis so I dont think it is my data.

Any ideas?  By copying and pasting and then changing 3 variables I hope I have ruled out typos.
Is there more that the online help isn't telling?  What am I missing?

Also, how come this example doesn't tell me when to put in the DataPointMember.XValue?

Thanks
Travis
Evgeni "Zammy" Petrov
Telerik team
 answered on 10 Nov 2010
3 answers
104 views
Hello everybody, 
The customer asked me an application with tabs and docking.
The application is composed by 4 tabs and inside those tabs there are more tabs and in those there are the dockings.
Tab1
Tab2
--TabSub1
----Docking1
--TabSub2
----Docking2
--TabSub2
----Docking3
Tab3
Tab4

When I click on the tab2 I can see everything ok.
If i click on the tab2 and then TabSub3, TabSub1, TabSub2 and afterwards I go to Tab1 and then again in the Tab2 I can see that automatically the TabSubs start to change alone, like if they need to update the docking and then will stop in the last that i select (TabSub2).
There's a solution? I mean, I can say to the Docking to don't request to get "refreshed"? or to don't show that the tabs are moving, like something that you wait until the changes are done and then you show the Tab (In this case the Tab2).

This is the video to show the problem:
http://www.youtube.com/watch?v=3tg4oMOjt6g
Hristo
Telerik team
 answered on 10 Nov 2010
3 answers
126 views
Hello Telerik Team,

I am implementing the WPF Chart in a scenario with lot's of data, so sampling is critical to keep drawing performance high.

What I need is basically a custom "keepextremes"-function when sampling data.
Currently, keepextremes keeps smaller values of the value is smaller than zero, and larger values of the value is larger than zero. Is this correct? If so, I need to change the value where the graph sampling decides wether to keep the lower value or the higher value to - for example - keep max values if the value is greater than 4, and keep min values of the value is below 4.

Is this possible?

best regards

Ulrik
Ves
Telerik team
 answered on 10 Nov 2010
5 answers
165 views
Hi to all, I set the ShowInsertRow to true, but at runtime the new row isn't show.
I try to set the same ItemSource in a standard WPF toolkit datagrid and the new row works fine.
Am I missing something ?

XAML
<telerik:RadExpander Header=".: Web Roles :." Margin="7,150,9,223" IsExpanded="True">
<telerik:GridViewDataControl x:Name="gvdWebroles" IsFilteringAllowed="False" ShowGroupPanel="False" RowHeight="24" Height="192" VerticalAlignment="Top" AutoGenerateColumns="False" ShowInsertRow="True" RowDetailsVisibilityMode="Visible">
<telerik:GridViewDataControl.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name data" MinWidth="400"/>
<telerik:GridViewCheckBoxColumn AutoSelectOnEdit="True"  DataMemberBinding="{Binding EnableNativeCode}" Header="Enable Native Code" IsThreeState="False" MinWidth="100" ShowFieldFilters="False" IsGroupable="False" IsFilterable="False" ShowDistinctFilters="False" TextAlignment="Center" />
</telerik:GridViewDataControl.Columns>
</telerik:GridViewDataControl>
</telerik:RadExpander>

C#
gvdWebroles.ItemsSource = this.m_deploy.ServiceDefinition.WebRoles;

WebRoles class
public class AzureWebRole
    {
        public string Name { get; set; }
        public bool EnableNativeCode { get; set; }
  
        public List<AzureWebRoleInputEndPoint> InputEndPoints { get; set; }
  
        public AzureWebRole()
        {
            this.Name = "DefaultWebRole";
            this.EnableNativeCode = true;
  
            this.InputEndPoints = new List<AzureWebRoleInputEndPoint>();
            AzureWebRoleInputEndPoint defaultEP = new AzureWebRoleInputEndPoint();
            this.InputEndPoints.Add(defaultEP);
        }
    }
Yavor Georgiev
Telerik team
 answered on 10 Nov 2010
5 answers
243 views
Hi,
Does the grid/listgridview support some sort of spinner, while waiting?
I've if it does, I can't seem to find it on in your documentation.

Best regards
Kristján.
Kristjan Einarsson
Top achievements
Rank 1
 answered on 10 Nov 2010
2 answers
103 views

Drag and Drop

When I using flow direction right to left on the Grid  view the drag and drop act strange

Someone know this problem?

Best Regards

Ehud

Tsvyatko
Telerik team
 answered on 10 Nov 2010
1 answer
160 views
Hi,
I'm new with Telerik controls and am testing the demo Telerik WPF controls.
I have a problem with Right To Left support:

I create a new "Rad Control Browser Application" project. Then in "Page1" page, set it's FlowDirection property to "RightToLeft", then I place a button in this page, and in it's click event instantiate a RadWindow inherited control.
In this window I try to place some drag and drop samples. For example I place two tree with IsDragDropEnabled sets to true (It's not matter, I also test samples provided with WPF controls).
The problem is here:
When the FlowDirection property of the page is "LeftToRight" all things works well, but when this property is set to "RightToLeft", If I drag somthing for example from right to left it will move in opposite direction from left to right.

Note that I change the page's FlowDirection property, not the window. when I just change the window FlowDirection property all things are well. The problem is from page's FlowDirection property.

Sorry for my bad English. :)

Here is my source codes, please see these if my explanation is confusing.
I will attach an image of the result.

Page1.xaml:
<Page x:Class="RadControlsWpfBrowserApp1.Page1"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" mc:Ignorable="d"
      d:DesignHeight="300" d:DesignWidth="300"
      Title="Page1" FlowDirection="RightToLeft">
    <Grid>
        <Controls:RadButton Content="Open the window" Width="100" Height="40" Click="RadButton_Click" />
    </Grid>
</Page>

Page1.cs:
using System.Windows;
using System.Windows.Controls;
 
namespace RadControlsWpfBrowserApp1
{
    /// <summary>
    /// Interaction logic for Page1.xaml
    /// </summary>
    public partial class Page1 : Page
    {
        public Page1()
        {
            InitializeComponent();
        }
 
        private void RadButton_Click(object sender, RoutedEventArgs e)
        {
            var page = new RadWindow1();
            page.ShowDialog();
        }
    }
}

RadWindow1.xaml:
<telerik:RadWindow x:Class="RadControlsWpfBrowserApp1.RadWindow1"
        Header="RadControlsScenario1" Height="300" Width="300" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <telerik:RadTreeView Name="LeftRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1"/>
        <telerik:RadTreeView Name="RightRadTreeView" Margin="10" IsDragDropEnabled="True" BorderBrush="Black" BorderThickness="1" Grid.Column="1"/>
    </Grid>
</telerik:RadWindow>

RadWindow1.cs
using System.Collections.Generic;
 
namespace RadControlsWpfBrowserApp1
{
    /// <summary>
    /// Interaction logic for RadWindow1.xaml
    /// </summary>
    public partial class RadWindow1
    {
        public RadWindow1()
        {
            InitializeComponent();
 
            var items = new List<string>()
                            {
                                "Item1",
                                "Item2",
                                "Item3"
                            };
            RightRadTreeView.ItemsSource = items;
        }
    }
}

So, Any Ideas?

Thanks.
Tsvyatko
Telerik team
 answered on 10 Nov 2010
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
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
Iron
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
Iron
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?