Telerik Forums
UI for WPF Forum
1 answer
192 views
Hi, I'm using a RadRibbonWindow as my main applictiaon window, and several RadWindows for some dialogs.
When I run the application and open a modal or modeless RadWindow from the main window and move focus to other applications or the desktop and then come back to my application, the focus goes to the main window and not the modal or modeless dialog. The floating dialog always hides behind the main window. How can I fix this?
Thanks!
Konstantina
Telerik team
 answered on 21 Dec 2013
1 answer
84 views
Hi,

with the control, I'm trying to have 4 blocks of 6 hours to reprensent a complete day shift: night, am, pm and evening. For the current week, I need the have the pass slot to be in a different style. If you look at the display, you can see that I have a display problem with my slots.

I also have a sample project but I don't know where I can post it...

Look at the picture you can see that there is some missing horiz line in the control...

Thank's
Alain
Konstantina
Telerik team
 answered on 21 Dec 2013
3 answers
117 views
I'm trying to create a user control with RadChart and an expandable RadGridView underneath capable of attaching to any data source.  That is, I can attach the entire control to any DataTable source, without knowing anything about the source (columns, datatypes, etc.) until runtime. 

The chart provides metrics, while the grid underneath exposes the underlying data to the user, allowing them to sort and filter what is displayed on the chart.  To that end, I'm binding both the grid and the chart to a QueryableCollectionView, which has been working well enough.

My problem is that all of my data is categorical and that combinations of columns could potentially produce a category.  That is, I may have two fields providing categories, such as "Year" and "FirstName", and then one field providing Y Values, such as "Distance".  In this example I would want my X categories to be "2010 - James", "2011 - James", "2010 - Mark", etc. or some combination of those fields.  In theory, I could make a calculated column in my data source with this formatting, for the label, but the problem is more complex...

Ideally, I also want to give the user control over these groupings.  I understand how to give my series various aggregation functions for the values, and RadChart seems to handle the values just fine.  But if a user selects a grouping on "Year" in the above example, I would want the chart to instead display "2010", "2011" with series values calculated according to the grouping function.  If I had a calculated column underneath my data, I would need to update this expression according to what fields the user had selected to group on.

So: Is that calculated column the only approach to this or is there something a little less complicated for handling multi-category data?

A couple notes:
  • The chart itself does not seem to natively support multi-category axes, since if I create two ItemMappings both with DataPointMember.XCategory, RadChart will only use the last one.  If this is an option, that would be great.
  • Could I use RadGridView's grouping panel to do the grouping?  I may have something set up incorrectly but even if I provide grouping functions for the GridView, when I group the GridView, the Chart displays a single series of data points with 0 as the YValue.
Peshito
Telerik team
 answered on 21 Dec 2013
1 answer
312 views
Hi how to get corner radius ie, rounded corner combobox in WPF, and also i dont need ro show the scrollbar while it showing items in the combobox?
thanks
Masha
Telerik team
 answered on 21 Dec 2013
2 answers
548 views
I want to save the image in the Image Editor to byte[]. How to achieve this? Is there any example available?

Thanks in Advance,

SamJayander.
samjayander
Top achievements
Rank 1
 answered on 21 Dec 2013
5 answers
209 views
Hi,

I'm using CartesianMarkedZoneAnnotation on RadCartesianChart with a date/time x-axis. When zooming and/or panning the annotation starts moving to a wrong position. The control is inside a tab. Switching between tabs refreshes the control and the annotation returns to the correct position. Bug? Am I missing something?

Markus
Petar Marchev
Telerik team
 answered on 20 Dec 2013
1 answer
115 views
Hi

I want to customize the popup menu of a radrichtextbox with new sub item

I use the ContextMenuContentBuilder like this :


    internal class CustomMenuBuilder : ContextMenuContentBuilder, IDisposable
    {
        private RadMenuItem InsertHyperLink;
        private MyCustomRichTextBox richTextBox;
 
        public CustomMenuBuilder(MyCustomRichTextBox  richTextBox)
            : base(richTextBox)
        {
            this.richTextBox = richTextBox;
 
            InsertHyperLink= new RadMenuItem
            {
                Header = CultureTasks.GetUIString("Infologic.Composite.Views.ILEditeur.CustomMenuBuilder.Message01", "Insert hyperlink"),
                Icon = new Image()
                    {
                        Source = new BitmapImage(new Uri("pack://application:,,,/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/Inserthyperlink.png"))
                    }
            };
            InsertHyperLink.Tag = richTextBox;
            InsertHyperLink.Click += InsertHyperlink_Click;
        }
 
        void InsertHyperlink_Click(object sender, Telerik.Windows.RadRoutedEventArgs e)
        {
            this.richTextBox.MyInsertHyperlink();
        }
 
        protected override ContextMenuGroup CreateFieldCommands()
        {
            return null;
        }
 
        protected override ContextMenuGroup CreateHyperlinkCommands(bool forExistingHyperlink)
        {
            return null;
        }
 
        protected override ContextMenuGroup CreateTextEditCommands()
        {
            var commands = base.CreateTextEditCommands();
            commands.Add(InsertHyperLink);          // OK
            //commands.Insert(0, InsertHyperLink);  // KO -> stack overflow
            return commands;
        }
 
        public void Dispose()
        {
            InsertHyperLink.Click -= InsertHyperlink_Click;
 
            InsertHyperLink= null;
 
            richTextBox = null;
        }
    }


Then i use this custom builder like this when i instanciate my richtextbox :

var richTextControl = new MyCustomRichTextBox
                          {
                              Name = string.Format("rtb{0}", increment),
                              AcceptsTab = false,
                              LayoutMode = DocumentLayoutMode.Flow,
                              IsSelectionMiniToolBarEnabled = false,
                              DocumentInheritsDefaultStyleSettings = true,
                              FontFamily = fontFamily,
                              ShowMergeFieldsHighlight = true,
                              FontSize = fontSize,
                              HorizontalScrollBarVisibility = ScrollBarVisibility.Auto
                          };
 
var builder = new CustomMenuBuilder(richTextControl);
 
richTextControl.ContextMenu = new Telerik.Windows.Controls.RichTextBoxUI.ContextMenu();
 
((Telerik.Windows.Controls.RichTextBoxUI.ContextMenu)richTextControl.ContextMenu).ContentBuilder = builder;



If i use ContextMenuGroup.Add , it's ok, but i want my item to be the first of the popup menu.

If i use ContextMenuGroup.Insert , i got a stack-overflow


Is it a bug or is it me who don't use the component properly ?

Petya
Telerik team
 answered on 20 Dec 2013
3 answers
146 views
We are using RadControls for WPF version 2013.2.611.40

A bug was reported to us where the original selected text in a RadRichTextBox was not displayed in our custom Insert Hyperlink dialog.  This is because the RadRichTextBox does not pass along the selected text to the IInsertHyperlinkDialog.ShowDialog() method if the text includes trailing newline characters.

Expected behavior (for example, Microsoft Outlook):

Open a blank new email, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you click Insert -> Hyperlink, the trailing newline character is deselected, so that it will not be included in the created hyperlink.  The "Text to display" field will then contain the word you typed.

Actual behavior (In the WPF RadRichTextBox)

Open a blank document, type a word, press enter, and select the whole line containing the word.  The editor will select the word, along with the trailing newline character.  When you execute the InsertHyperlinkCommand, IInsertHyperlinkDialog.ShowDialog() is called on our implementation of IInsertHyperlinkDialog as expected.  However, the newline character remains selected, and as a result the passed "text" string is null.  The resulting behavior is that we do not display anything in the "Text to display" field of the Insert Hyperlink dialog.

Is this a known issue?

Thanks,
Evan



   
Vasil
Telerik team
 answered on 20 Dec 2013
2 answers
273 views
Hello Telerik,

regarding this thread, I'd like to know if this issue still is not fixed? We really try to make it work, but the RadWindow doesn't resize, when its content size is changed.

Is there something required like setting the MinHeight?

If it works properly, I'd really like to know which properties need to be set to certain values, because I can't figure it out from the documentation.

EDIT: currently we achieve the behaviour we'd like to have through hacking the contents ActualHeight into the RadWindows Height property (content's OnSizeChanged event). We prevent layout cycles through a couple of if-statements, but we'd really like to get rid of this.
tung ngie
Top achievements
Rank 1
 answered on 20 Dec 2013
2 answers
224 views
Hi,

I have had this problem a couple of times now and i dont understand why it happens. 

Every time i try to use a property on for example an AreaSeries, the compiler tells me that this property does not exist in the telerik namespace "http://schemas.telerik.com/2008/xaml/presentation" even though the intellisense suggest the property. 

See attached image.

I have the following code for the graph:
<telerik:RadCartesianChart Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Margin="0,0,0,3" x:Name="lineSeries" ClipToBounds="False">
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis IsInverse="True" Name="verticalAxis" Title="Depth(µm)"/>
            </telerik:RadCartesianChart.VerticalAxis>
 
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:LinearAxis Name="horizontalAxis" Title="Concentration(µmol/l)"/>
            </telerik:RadCartesianChart.HorizontalAxis>
             
            <telerik:ScatterPointSeries x:Name="pointSeries" XValueBinding="XValue" YValueBinding="YValue" ItemsSource="{Binding}">
                <telerik:ScatterPointSeries.PointTemplate>
                    <DataTemplate>
                        <Ellipse Width="17" Height="17" Fill="Blue"/>
                    </DataTemplate>
                </telerik:ScatterPointSeries.PointTemplate>
            </telerik:ScatterPointSeries>
 
            <telerik:ScatterLineSeries ItemsSource="{Binding}" StrokeThickness="1.5" x:Name="serie" Stroke="Red" XValueBinding="XValue" YValueBinding="YValue">
            </telerik:ScatterLineSeries>
 
            <telerik:AreaSeries StrokeThickness="2" Fill="Gray">
                <telerik:AreaSeries.DataPoints>
                    <telerik:CategoricalDataPoint Value="20"/>
                    <telerik:CategoricalDataPoint Value="40"/>
                    <telerik:CategoricalDataPoint Value="35"/>
                    <telerik:CategoricalDataPoint Value="40"/>
                    <telerik:CategoricalDataPoint Value="30"/>
                    <telerik:CategoricalDataPoint Value="50"/>
                </telerik:AreaSeries.DataPoints>
            </telerik:AreaSeries>
 
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
 
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid Name="chartGrid" MajorLinesVisibility="XY" MajorXLineDashArray="5, 5" MajorYLineDashArray="5, 5">
                    <telerik:CartesianChartGrid.MajorXLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="Shape.Stroke" Value="Gray" />
                        </Style>
                    </telerik:CartesianChartGrid.MajorXLineStyle>
                    <telerik:CartesianChartGrid.MajorYLineStyle>
                        <Style TargetType="Line">
                            <Setter Property="Shape.Stroke" Value="Gray" />
                        </Style>
                    </telerik:CartesianChartGrid.MajorYLineStyle>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
        </telerik:RadCartesianChart>


I must be doing something wrong here i just cant see what it is :)

Best regards,
Jeppe
Unisense
Top achievements
Rank 1
 answered on 20 Dec 2013
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
FileDialogs
Book
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?