Telerik Forums
UI for WPF Forum
1 answer
239 views
When using the RadRibbonWindow in combination with RadRibbonView, I have an odd problem with the position of the quick access toolbar, and the title/application name. For some reason they become positioned below the title bar. See attached screen shots.

From my tests it appears, that the problem is only present when the property IsBackstageOpen is binded, and the property CollapseThresholdSize is
set. Removing CollapseThresholdSize solves the problem?

I can recreate the problem using this XAML:

<telerik:RadRibbonWindow x:Class="TelerikRibbon.MainWindow"
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView"
        xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
       Title="Window title should not be displayed"
>
    <Grid>
        <telerik:RadRibbonView Title="RibbonView Title" ApplicationName="My Application" IsBackstageOpen="{Binding ShowBackStage}" CollapseThresholdSize="100,100" VerticalAlignment="Top"  ApplicationButtonContent="Fil" >
 
 
            <telerik:RadRibbonView.QuickAccessToolBar>
                <telerik:QuickAccessToolBar CustomizationMenuVisibility="Collapsed">
                    <telerik:RadRibbonButton Text="Open" SmallImage="/Images/Icons/open.png" Size="Small" />
                </telerik:QuickAccessToolBar>
            </telerik:RadRibbonView.QuickAccessToolBar>
 
            <!-- Backstage section-->
            <telerik:RadRibbonView.Backstage>
                <telerik:RadRibbonBackstage>
                    <!-- Save-->
                    <telerik:RadRibbonBackstageItem Header="Click here to save" Icon="/Images/Icons/save.png" CloseOnClick="True" IsSelectable="true" />
                </telerik:RadRibbonBackstage>
            </telerik:RadRibbonView.Backstage>
 
            <telerik:RadRibbonTab Header="Home">
                <telerik:RadRibbonGroup Header="Clipboard">
                    <telerik:RadRibbonSplitButton
                                                  Size="Large"
                                                  Text="Paste"
                                                  telerik:ScreenTip.Description="Paste the contents the Clipboard."
                                                  telerik:ScreenTip.Title="Paste(Ctrl+V)">
                        <telerik:RadRibbonSplitButton.DropDownContent>
                            <controls:RadContextMenu BorderThickness="0">
                                <controls:RadMenuItem Header="Paste" />
                                <controls:RadMenuItem Header="Paste Form" />
                            </controls:RadContextMenu>
                        </telerik:RadRibbonSplitButton.DropDownContent>
                    </telerik:RadRibbonSplitButton>
                </telerik:RadRibbonGroup>
            </telerik:RadRibbonTab>
            <telerik:RadRibbonTab Header="View" />
        </telerik:RadRibbonView>
    </Grid>
</telerik:RadRibbonWindow>


Tina Stancheva
Telerik team
 answered on 17 Mar 2014
1 answer
148 views
Hi!

What is the best way to sort the children of a certain node?
Yoan
Telerik team
 answered on 17 Mar 2014
1 answer
174 views
Hi All,

Here "ItemCollection"  having 2 items.I am ssigning one  item to RadTreeViewItem as shown bellow.

Inside i am calling same method and assigning RadTreeViewItem(Insted of ItemCollection), if i call like this i am getting error "Can not convert type RadTreeViewItem  to ItemCollection "


BuildConfigDetailsData_Helper(ItemCollection ndcol, ref string strConfigDetailsData)
        {
            string strImagesPath = "file:///" + _Params.SizerFolderName + "xml\\";
            RadTreeViewItem nd;
            for (int iCount = 0; iCount < ndcol.Count; iCount++)
            {
                nd = (RadTreeViewItem)ndcol[iCount];

   BuildConfigDetailsData_Helper((ItemCollection)nd, ref strConfigDetailsData);


Please help me how can i proceed..........................
Petar Mladenov
Telerik team
 answered on 17 Mar 2014
2 answers
239 views
Hi 

Is there some way by which we can get the points on a RadDiagramShape. 
Currently we see that the RadDiagramShape has Geometry property. Is there some way to get a PointCollection from the shape.
eg Is it possible to get the four points of a rectangle represented by  RadDiagramShape.

Regards
Jeevan
Jeevan
Top achievements
Rank 1
 answered on 17 Mar 2014
2 answers
169 views
Hi,

the ColorEditor ist running fine, but is it possible to save the "new" colored pic as new Image?

Thanks
regards
ww
Arron
Top achievements
Rank 1
 answered on 17 Mar 2014
3 answers
556 views
Something is wrong with my event handling. Trying to throw a few events like KeyDown, SelectionChanged, and most importantly a notification that a Pan or Zoom has occurred via ChartPanAndZoomBehavior_Changed event handler.

Here is a XAML snippet, what is going on? Thanks in advance?

<telerik:RadCartesianChart Grid.Row="2" Name="chart2" Palette="Arctic" KeyDown="chart2_KeyDown" IsHitTestVisible="True" DragOver="chart2_DragOver"   >
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartSelectionBehavior SelectionChanged="chart2_SelectionChanged">
                </telerik:ChartSelectionBehavior>
                
                <telerik:ChartTrackBallBehavior ShowTrackInfo="True" SnapMode="AllClosePoints" ShowIntersectionPoints="True">
                </telerik:ChartTrackBallBehavior>
                <telerik:ChartSelectionBehavior DataPointSelectionMode="Single" ></telerik:ChartSelectionBehavior>
                <telerik:ChartPanAndZoomBehavior  PanMode="Horizontal" ZoomMode="Horizontal" Changed="ChartPanAndZoomBehavior_Changed">
                </telerik:ChartPanAndZoomBehavior>
            </telerik:RadCartesianChart.Behaviors>
Boris
Telerik team
 answered on 14 Mar 2014
7 answers
177 views
Hi,

We are using telerik radRichTextBox. The version is 2012.3.1129.45.

1. Picture button in ribbon menu
2. Select an image file
3. Use the context menu to "Text Wrapping" and select "Square".
4. Moving the picture with the mouse pointer.

After step 4 the inserted pictures dissapers.
Somtimes it reappers when I insert another picture.

Kind regards

/Andreas

Anders
Top achievements
Rank 1
 answered on 14 Mar 2014
6 answers
363 views
Hi 
I am iterating through the rows and columns of the grid view like this :
foreach (var row in radGridView.Items)
                    {
                        foreach (var column in HeaderInfo)
                        {
                            string sUniquename = uniqueNames[iColumn];
                            var boundColumn = radGridView.Columns[sUniquename] as GridViewBoundColumnBase;
                            if (boundColumn != null)
                            {                                string data = string.Format("{0}", boundColumn.GetValueForItem(row));}
                            iColumn += 1;}}
The thing is that its too slow ...for a grid with say 80k rows it is taking 5 minuted to complete this loop...I guess internally it is building up the rows internally as our grid has virtualization enabled.

Please suggest if something can be done on this.
                        
                    
Yoan
Telerik team
 answered on 13 Mar 2014
2 answers
139 views
I got this error while updating the data of schedule view in another thread , not in dispatching thread. Per the exception message, the collection was changed already while it was being enumerated, in line 4625 in ScheduleViewBase.cs, which was triggered in the method OnQueryGoToNextAppointmentCanExecuted in ScheduleViewBase.

The situation is that I have to update the data in a timer , which will execute update in another thread. Could you please give some suggestion about how to fix it, or some work around? I was trapped for almost a week.

The message of the exception is attached.
Thanks a lot.
Konstantina
Telerik team
 answered on 13 Mar 2014
1 answer
198 views
I have a custom template for my Appointments , the main problem is Touch events are not working

I  can click or double click in my custom Appointment but  I can not select  the appointments with touch.

Here is my xaml.


My DataTemplate to fill the  content 
 <DataTemplate x:Key="PatientAppointmentDataTemplate">


        <Grid MinHeight="150">
          
<---> Content

        </Grid>


     </DataTemplate>

My Selector.

<selectors:AppointmentSelector x:Key="DefaultAppointmentStyleSelector">
        <selectors:AppointmentSelector.TodayAppointmentSelector>
            <Style TargetType="telerik:AppointmentItem">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="telerik:AppointmentItem">
                            <ContentControl DataContext="{Binding .}">


                                <i:Interaction.Triggers>

///HACK TO FORCE TO SELECT AN APPOINTMENT

                                    <i:EventTrigger EventName="TouchDown" SourceObject="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:AppointmentItem}}}">
                                        <ei:ChangePropertyAction PropertyName="SelectedAppointment"
                                                                 TargetObject="{Binding RelativeSource={RelativeSource FindAncestor,
                                                                                                                       AncestorType={x:Type telerik:RadScheduleView}}}"
                                                                 Value="{Binding}" />

                                        <i:InvokeCommandAction Command="telerik:RadScheduleViewCommands.EditAppointment" />
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>

                                <Grid x:Name="Root"
                                      Background="Gray"
                                      Focusable="True">
                                    <Grid.InputBindings>
                                        <MouseBinding Command="telerik:RadScheduleViewCommands.EditAppointment" MouseAction="LeftDoubleClick" />
                                    </Grid.InputBindings>

                                    <ContentPresenter ContentTemplate="{StaticResource PatientAppointmentDataTemplate}" />
                                </Grid>
                            </ContentControl>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </selectors:AppointmentSelector.TodayAppointmentSelector>

My Slots have IsReadOnly= False.

I handled  ShowDialog to personalize the edit or delete appointments.

         this.scheduleView.ShowDialog += scheduleView_ShowDialog;


 private async void scheduleView_ShowDialog(object sender, ShowDialogEventArgs e)
        {
            e.Cancel = true;
           /// My code
        }

But this event does not fire too, when I do double touch simulating MouseDoubleClick.


Please help me. Thank you.







Kalin
Telerik team
 answered on 13 Mar 2014
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?