Telerik Forums
UI for WPF Forum
1 answer
208 views
How to use a tab panel in a wpf page?
Evgenia
Telerik team
 answered on 23 Sep 2015
3 answers
136 views
Hello, is it possible to style the selection rectangle for the RadSpreadsheet control? I can't seem to find where it is being applied.
Nikolay Demirev
Telerik team
 answered on 23 Sep 2015
1 answer
187 views

Hey, i have a RadTreeListView that i used to display my data, when i change the value of RowDetailsTemplate property in runtime, the event that called SelectionChanged fired more than 15 times, here is my code:

 

XAML Code:

<telerik:RadTreeListView ItemsSource="{Binding ItemSearchingResults}"
                                                 RowDetailsVisibilityMode="VisibleWhenSelected"
                                                 ScrollViewer.VerticalScrollBarVisibility="Auto"
                                                 RowDetailsTemplate="{Binding RowDetailsTemplate}"
                                                 ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                                 SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                                                 CanUserFreezeColumns="False" SelectionMode="Single"
                                                 VerticalAlignment="Stretch" SelectionUnit="FullRow"
                                                 CanUserDeleteRows="False" GridLinesVisibility="Both"
                                                 CanUserInsertRows="False" AutoGenerateColumns="False"
                                                 AutoLoadHierarchy="True" HierarchyColumnIndex="1" HierarchyIndent="25"
                                                 RowIndicatorVisibility="Collapsed" ShowColumnFooters="False" HorizontalAlignment="Stretch">

                            <telerik:RadTreeListView.Columns>
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemNumber}" IsReadOnly="True"
                                                            Header="{x:Static tterpResources:UcItemSearching.Number}" Width="*" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemArabicName}" IsReadOnly="True"
                                                            Header="{x:Static tterpResources:UcItemSearching.ArabicName}" Width="*" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemEnglishName}" IsReadOnly="True"
                                                            Header="{x:Static tterpResources:UcItemSearching.EnglishName}" Width="*" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemGroupArabicName}" IsReadOnly="True"
                                                            Header="{x:Static tterpResources:UcItemSearching.Group}" Width="*" />
                                <telerik:GridViewDataColumn DataMemberBinding="{Binding ItemTypeArabicName}" IsReadOnly="True"
                                                            Header="{x:Static tterpResources:UcItemSearching.Type}" Width="*" />
                            </telerik:RadTreeListView.Columns>

                            <interactivity:Interaction.Triggers>
                                <interactivity:EventTrigger EventName="SelectionChanged">
                                    <interactions:CallMethodAction MethodName="OnSelectItemChanged" TargetObject="{Binding}" />
                                </interactivity:EventTrigger>
                            </interactivity:Interaction.Triggers>

                            <telerik:RadTreeListView.ChildTableDefinitions>
                                <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildItems, 
                                                                     RelativeSource={RelativeSource AncestorType=models:ItemSearchingModel}}" />
                            </telerik:RadTreeListView.ChildTableDefinitions>

                        </telerik:RadTreeListView>

 

C# Code:

public void OnSelectItemChanged()
        {
            if (SelectedItem == null || !SelectedItem.IsDataChanged) return;

            //Get child items of selected item.
            if (!SelectedItem.IsChildLoadedOnce)
            {
                SelectedItem.IsChildLoadedOnce = true;
                SelectedItem.ChildItems = GetChildItemsOfParentItem(SelectedItem.ItemTreeId);
            }

            //Get alternative items of selected item.
            if (!SelectedItem.IsAlternativeLoadedOnce)
            {
                SelectedItem.IsAlternativeLoadedOnce = true;
                SelectedItem.AlternativeItems = GetAlternativeItemsOfSelectedItem(SelectedItem.ItemTreeId);
            }

            RowDetailsTemplate = SelectedItem.AlternativeItems.Count > 0 ? Application.Current.FindResource("AlternativeItemsDataTemplate") as DataTemplate : null;
        }

        private ObservableCollection<ItemSearchingModel> GetChildItemsOfParentItem(long parentItemId)
        {
            var childItems = _erpEntities.ItemTrees.Where(itemTree => itemTree.ParentId == parentItemId);
            if (!childItems.Any()) return new ObservableCollection<ItemSearchingModel>();

            var childItemSearchingModelList = new ObservableCollection<ItemSearchingModel>();
            foreach (var childItemTree in childItems)
            {
                childItemSearchingModelList.Add(new ItemSearchingModel
                {
                    ItemTreeId = childItemTree.Id,
                    ItemNumber = childItemTree.Number,
                    ItemArabicName = childItemTree.NameArabic,
                    ItemEnglishName = childItemTree.NameEnglish,
                    ChildItems = new ObservableCollection<ItemSearchingModel>(),
                    AlternativeItems = new ObservableCollection<ItemSearchingModel>(),
                    ItemTypeArabicName = childItemTree.ItemsType != null ? childItemTree.ItemsType.NameArabic : string.Empty,
                    ItemTypeEnglishName = childItemTree.ItemsType != null ? childItemTree.ItemsType.NameEnglish : string.Empty,
                    ItemGroupArabicName = childItemTree.ItemsGroup != null ? childItemTree.ItemsGroup.NameArabic : string.Empty,
                    ItemGroupEnglishName = childItemTree.ItemsGroup != null ? childItemTree.ItemsGroup.NameEnglish : string.Empty
                });
            }
            return childItemSearchingModelList;
        }

        private ObservableCollection<ItemSearchingModel> GetAlternativeItemsOfSelectedItem(long selectedItemId)
        {
            //Get the child items.
            var alternativeItems = _erpEntities.AlternativeItems.Where(itemTree => itemTree.BasicItemTreeId == selectedItemId);
            if (!alternativeItems.Any()) return new ObservableCollection<ItemSearchingModel>();

            var alternativeItemsSearchingModelList = new ObservableCollection<ItemSearchingModel>();
            foreach (var childItemTree in alternativeItems)
            {
                alternativeItemsSearchingModelList.Add(new ItemSearchingModel
                {
                    ItemTreeId = childItemTree.Id,
                    IsAlternativeLoadedOnce = true,
                    ItemNumber = childItemTree.ItemTree.Number,
                    ItemArabicName = childItemTree.ItemTree.NameArabic,
                    ItemEnglishName = childItemTree.ItemTree.NameEnglish,
                    ChildItems = new ObservableCollection<ItemSearchingModel>(),
                    AlternativeItems = new ObservableCollection<ItemSearchingModel>(),
                    ItemTypeArabicName = childItemTree.ItemTree.ItemsType != null ? childItemTree.ItemTree.ItemsType.NameArabic : string.Empty,
                    ItemTypeEnglishName = childItemTree.ItemTree.ItemsType != null ? childItemTree.ItemTree.ItemsType.NameEnglish : string.Empty,
                    ItemGroupArabicName = childItemTree.ItemTree.ItemsGroup != null ? childItemTree.ItemTree.ItemsGroup.NameArabic : string.Empty,
                    ItemGroupEnglishName = childItemTree.ItemTree.ItemsGroup != null ? childItemTree.ItemTree.ItemsGroup.NameEnglish : string.Empty
                });
            }
            return alternativeItemsSearchingModelList;
        }

Stefan
Telerik team
 answered on 23 Sep 2015
1 answer
229 views

Hey,

I have RadTreeListView named ItemsTree and i have another RadTreeListView named ChildItemsTree, the ChildItemsTree is inside the RowDetailsTemplate of ItemsTree, when the user selects an item from the ChildItemsTree i noticed that the selected item of ItemsTree does not clear. what i want to do is to clear the selected items of ItemsTree when the user selects an item from the ChildItemsTree​ and vice versa.

Thanks in advance.

Yoan
Telerik team
 answered on 23 Sep 2015
3 answers
231 views

 Hello,

 

I was wondering if there was any new option in the control to modify at once several cells of a GridViewComboBoxColumn, as I am using the same ItemsSourceBinding for all rows of that column (in my GridView, the selection ​is: SelectionMode="Multiple" SelectionUnit="FullRow").

I found that as a string point, but is there some other builtin/custom option than that kind:

http://www.telerik.com/forums/editing-multiple-cells-at-once

Thanks,

Christophe

Yoan
Telerik team
 answered on 23 Sep 2015
8 answers
95 views
Our application is in WPF and we are using RED Timebar control for playing video.
We are facing some issue with that.

1) When we change mouse wheel we are changing time in that, as we need that event as we like to bind some other control on that. So can we know how to generate mouse wheel event?

2) As in our application we can bind multiple video control, we also have to add multiple time in same REDTimebarLine in REDTimebar control, so is there any possibility for that?

3) In the selected range of REDTimebar, we need one cursor bar that give actual time while video is running and that cursor will change inbetween selected Range only and we also need its click and drag and drop event too.

attached image provide the idea what we need using timebar control.
Petar Marchev
Telerik team
 answered on 23 Sep 2015
1 answer
369 views

Hi, 

 I try to customize the appointment of a scheduleview. I use the following code to change the backgroud color. But I also need to change the background color when the appointment is selected. How can we change it ?

 

        <scheduleview:OrientedAppointmentItemStyleSelector x:Key="AppointmentItemStyleSelector">
            <scheduleview:OrientedAppointmentItemStyleSelector.VerticalStyle>
                <Style TargetType="scheduleview:AppointmentItem" BasedOn="{StaticResource AppointmentItemBaseStyle}">
                    <Setter Property="Background" Value="#C1D72E" />
                </Style>
            </scheduleview:OrientedAppointmentItemStyleSelector.VerticalStyle>
        </scheduleview:OrientedAppointmentItemStyleSelector>

 

Thanks

Marc

Nasko
Telerik team
 answered on 23 Sep 2015
1 answer
120 views

Hello,

When plotting a StepLineSeries onto a CategoricalAxis chart with only one single category we don't get the 'step' rendered for that value.

Is there a way to get this single value to show? Or is there another way to plot a straight line across the full width of a category at a specific value?

Thanks in advance for any help you can provide.

 

Peshito
Telerik team
 answered on 23 Sep 2015
2 answers
330 views
Hi, in your QR examples you give the source as a text value ,  does telerik QR support the pre-defined QR classes change as driving licence or address? 
Joe Bohen
Top achievements
Rank 1
 answered on 23 Sep 2015
2 answers
344 views

Team,

I want to disable the Floating Option for RadPane,but i shoud be able to drag a Pane from a Group and Dock to Left/Top/Right/Bottom/Center.I dont want to make it float.

PLease provide me solution to disable Floating and enable Docking.

 (Telerik Version-2012)

Thanks,

R.Suresh

Suresh
Top achievements
Rank 1
 answered on 22 Sep 2015
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?