Telerik Forums
UI for WPF Forum
2 answers
173 views
i want a video player kind of functionality in Slider. The slider movement should be handled from play ,pause or stop button 
Chandan
Top achievements
Rank 1
 answered on 09 Apr 2015
1 answer
99 views

Hi,

 

Information: I am currently using version 2014.2.729.45 of the Telerik WPF Controls suite.  I am wondering if the following is possible:

 

Problem: Within two groups (date and venue) am I able to filter only venues within each date block that have appointments on them?

 

Details:

I have currently using two groupings for my Day and Week view definitions, they are as follows:

<telerik:RadScheduleView.GroupDescriptionsSource>
    <telerik:GroupDescriptionCollection>
        <telerik:DateGroupDescription />
        <telerik:ResourceGroupDescription ResourceType="Venue" ShowNullGroup="False" />
    </telerik:GroupDescriptionCollection>
</telerik:RadScheduleView.GroupDescriptionsSource>

This could look like:

Monday

     Venue 1

     Venue 2

     Venue 3

 

Tuesday

     Venue 1

     Venue 2

     Venue 3

 

Wednesday

    Venue 1     

    Venue 2 

    Venue 3

 

I have tried using the Group Filter property against the view definitions to achieve the required result I am after.  However, it appears that it takes all three days, works out which venues have appointments in them, and then shows them all days, irrespective of whether or not a particular day does in fact have something in that venue.

 

The result I would like to see is:

Monday

     Venue 3

 Tuesday

     Venue 1

Wednesday

    Venue 1

    Venue 3

 

The reason for this, is because the particular venues in questions, only have appointments on those days.  and Venue 1 and 2 on Monday are empty the entire day and so I do not want to display them.  Is there a setting I am missing for hide empty resources?

 

Is this possible?

 

 

Kind Regards,

 

Shaun

Nasko
Telerik team
 answered on 09 Apr 2015
14 answers
799 views
I've got a double-click event wired up on my telerik gridview. Annoyingly for the users, if I double-click on the scrollbar area with the intention of scrolling down, the double-click event fires. Can this be disabled?
Dimitrina
Telerik team
 answered on 09 Apr 2015
3 answers
227 views

Hello,

I have a problem with a telerik radtabcontrol which doesn't occur with the standard wpf tabcontrol.

My code is structured as follows :-

<telerik:RadTabControl>
    <telerik:RadTabItem Header="Locations" IsSelected="True">
         
        // irrelevant stuff here
         
    </telerik:RadTabItem>
    <telerik:RadTabItem Header="Sources">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
 
            <telerik:RadTabControl  ItemsSource="{Binding MyViewModel.Sources}"
                                    SelectedItem="{Binding MyViewModel.SelectedSource}">
                <telerik:RadTabControl.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Style="{StaticResource SubTabTitle}" Text="{Binding DisplayName}"/>
                            <Button Command="{Binding Path=DataContext.MyViewModel.RemoveSourceCommand,ElementName=LayoutRoot}" CommandParameter="{Binding}" ToolTip="Remove Source" Style="{StaticResource RemoveButton}" />
                        </StackPanel>
                    </DataTemplate>
                </telerik:RadTabControl.ItemTemplate>
                <telerik:RadTabControl.ContentTemplate>
                    <DataTemplate>
                        <ScrollViewer>
                            <StackPanel>
                                <view:EditExcelSourceControl ViewModel="{Binding Path=DataContext.MyViewModel, ElementName=LayoutRoot}" Workbook="{Binding Path=DataContext.MyViewModel.SelectedExcelWorkbook,ElementName=LayoutRoot}" Visibility="{Binding Path=DataContext.MyViewModel.HasSelectedExcelWorkbook,ElementName=LayoutRoot,Converter={c:BooleanToVisibilityConverter}}"/>
                                <view:EditTextSourceControl ViewModel="{Binding Path=DataContext.MyViewModel, ElementName=LayoutRoot}" File="{Binding Path=DataContext.MyViewModel.SelectedTextFile,ElementName=LayoutRoot}" Visibility="{Binding Path=DataContext.MyViewModel.HasSelectedTextFile,ElementName=LayoutRoot,Converter={c:BooleanToVisibilityConverter}}"/>
                            </StackPanel>
                        </ScrollViewer>
                    </DataTemplate>
                </telerik:RadTabControl.ContentTemplate>
            </telerik:RadTabControl>
        </Grid>
    </telerik:RadTabItem>
</telerik:RadTabControl>

Setting SelectedSource causes OnPropertyChange notifications for SelectedSource, and updates SelectedTextFile, SelectedExcelWorkbook, HasSelectedTextFile, HasSelectedExcelWorkbook as appropriate.

The user control has code as follows

<telerik:RadComboBox ItemsSource="{Binding DataContext.ViewModel.Points, ElementName=LayoutRoot}" SelectedValue="{Binding CurrentPoint}" Width="150">
    <telerik:RadComboBox.ItemTemplate>
        <ItemContainerTemplate>
            <TextBlock Text="{Binding Name}" Margin="0" Padding="0" />
        </ItemContainerTemplate>
    </telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>

 

My problem is that if I switch between the toplevel tabcontrol items (from 'locations' tab to 'sources' tab), the object that the selectedsource is bound to on the nested tabcontrol will have it's currentpoint set to null.

If I modify the nested tabcontrol to be a simple WPF tabcontrol instead of a telerik:radtabcontrol, I do not have this problem where currentpoint is set to null.

Any help would be appreciated, thank you.

 

 

 

AshR
Top achievements
Rank 1
 answered on 09 Apr 2015
1 answer
141 views

Problem Background:
In my WPF application, in one of the window/page contains 3 List Boxes and 1 ComboBox. These 3 ListBoxes are binded with XML dataprovider and there is no issues. I mean when 1st listbox selection changes automatically updates listbox2. In the same way, listbox3 updates as listbox2 changes. These are all worked out in XAMl file alone and there is code-behind except InitializeComponent() and few lines of code for loading this XAML file dynamically using XAMLReader(this is my requirement)

Problem facing Requirement:OnSelection change event of any of the ListBox, need to populate ComboBox data dynamically( it will fire webservices which is based on above mentioned 3 LisBox selection). For this purpose, in SelectionChange I am trying to get

ListBoxObj.SelectedItem - Always contains XML tree.(i.e) of type XMLElement

I have tried all possiblities, everywhere I am getting only XML tree.
Anyone have any idea, how to extract ListBox selected Item Text from XMLElement?
Thanks

Nasko
Telerik team
 answered on 08 Apr 2015
1 answer
122 views

Hi,

When you open a recurrence appointment the dialog who ask for open event or serie is not well translated in French.

The RadioButton are :

Ouvrir cetévénement

Ouvrir lasérie

Missing a space between last word, must be :

Ouvrir cet événement

Ouvrir la série

 

For information the resourcekey are provided here :

<RadioButton
        AutomationProperties.AutomationId="OpenOccurrenceRB"
        Margin="3"
        telerik:LocalizationManager.ResourceKey="OpenOccurrence"
        GroupName="RecurrenceModeChoice"
        IsChecked="{Binding IsOccurrenceModeSelected, Mode=TwoWay}"/>
<RadioButton
        AutomationProperties.AutomationId="OpenSeriesRB"
        Margin="3"
        telerik:LocalizationManager.ResourceKey="OpenSeries"
        GroupName="RecurrenceModeChoice"
        IsChecked="{Binding IsSeriesModeSelected, Mode=TwoWay}"/>

 

Regards

Luc

Kalin
Telerik team
 answered on 08 Apr 2015
1 answer
131 views
I have created a custom AnnotationRange following the CustomLayerAndCustomAnnotation example and I would like any text the user types in the editor to break this annotation range and only show content that was loaded with this range and never edited to show up in the range.

I'm calling SplitAnnotationRange on the current AnnotationRange in a PreviewEditorKeyDown event handler after I have determined that they keypress was one that would insert content. The annotation range is split at the correct position but my cursor is not placed in the area of the split, it is at the start of the second range. If I call CaretPosition.MoveToPrevious the cursor ends up at the end of the first annotation range.

I have tried all combinations of SkipPositionBefore on my start and end ranges but I believe the correct settings are False on the RangeStart and True on the RangeEnd which should make the position between a RangeEnd and a RangeStart a valid editable position.

Is there any easier way to get content inserted by the user to automatically split my annotation range or to get the cursor to go into the position between the RangeEnd and RangeStart after SplitAnnotationRange.
Petya
Telerik team
 answered on 07 Apr 2015
12 answers
694 views
I'm looking for a simple way to implement server-side filtering using the RadDataFilter for WPF. All examples I've seen so far seem too complex.

Is there an easy way to translate the collection of filterdescriptors into a SQL Where clause that can then be passed to a dynamic SQL Server stored procedure?

What I'm looking for is the code (VB .Net) to take the RadDataFilters/FilterDescriptors from a RadDataFilter control and translate those into the SQL Where clause.

Of course, if there was an easier way to pull the result set from the server using the RadDataFilter filters that would be nice too!

Thanks in advance ...

Greg

Dimitrina
Telerik team
 answered on 07 Apr 2015
1 answer
146 views

Hello. I tried to apply tree layout on 50 generated nodes (by first tab).

This is result:

http://joxi.ru/L21RM8Quq4zWAX

But, while IgnoreContainers=true, result is:

http://joxi.ru/Vm6dpMLSqZvyAZ

Why  layouting don't work in this case? I don't want to involve containers in layouting algotithm.

The screenshots are from your demo projects (xaml-sdk-master).

 

Petar Mladenov
Telerik team
 answered on 07 Apr 2015
1 answer
239 views

Hi, I encounter a problem about calling the event handler of the scrollviewer inside radgridview template in a style .xaml file.
 I have a radgridview which refer to a basic style in another style xaml file. And the its content is several column build up a table

========== page1.xaml ============

<telerik:RadGridView x:Name = "rgv1" Style="{StaticResource BasicRGVStyle}">

     <telerik:RadGridViewColmns>
           <   ...   few columns ...>
     </telerik:RadGridViewColumns>

</telerik:RadGridView>



and this styling has its template as scrollviewer (when the row or column exceed the viewport, scroll bar appear)

========== BasicStyle.xaml ==========

<Style x:Key="BasicRGVStyle" TargetType="telerik:RadGridView">

     <Setter Property="Template">
          <Setter.Value>

               <ControlTemplate TargetType="{x:Type telerik:RadGridView}">

                     ...

                     <telerik:GridViewScrollViewer x:Name="PART_ItemScrollViewer" Grid.Row="1" ScrollChanged="PART_ItemsScrollViewerChanged">

                     </telerik:GridViewScrollViewer>

                     <Border x:Name="Border1" Grid.Row="2" ...>

                                ...

                      </Border>

</Style>


Can I call PART_ItemsScrollViewerChanged event handler in my page1.xaml.cs and i want to control the border inside this event handler. I recall that it prompt some error some sort like no such event handler found and object reference error.

Tell me if you can't understand my question. Thanks

Dimitrina
Telerik team
 answered on 07 Apr 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
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
VirtualKeyboard
HighlightTextBlock
Security
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?