Telerik Forums
UI for WPF Forum
1 answer
135 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
164 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
211 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
153 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
518 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
160 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
331 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
123 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
185 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
1 answer
284 views
Hello,

I'm trying to display a tree layout with multiple roots - in the sample I attached both "a" and "f" nodes are top level nodes - however only a gets arranged correctly. I was hoping the auto format display something more similar to the image in preferred.png

How does the multiple roots work? is this its intention to specify nodes on the first level? The layout is better if I add a single top level node (called "start" in sample app - you have to uncomment the code), but I don't really want an unnecessary single top node.

Any help would be really appreciated.

Many Thanks

Gary Howlett

As cant post .zip sample files I placed on my OneDrive here http://1drv.ms/1fQ6pYD
Pavel R. Pavlov
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?