Telerik Forums
UI for WPF Forum
1 answer
115 views

How to turn Panning Inertia off?

Hi Kammen,

can we turn Panning Inertia off? Just Panning, no inertia.

Thanks

Wenjie

Kammen
Telerik team
 answered on 09 Apr 2013
2 answers
98 views
Hi,
    I have data source which contains values in millions or billions.Default interval range for y-axis is 5000000.but i want to customize this interval using radchartview. could you please help me on this topic?
Thank you in advance
 
Dts
Top achievements
Rank 1
 answered on 09 Apr 2013
3 answers
200 views
I want to use timebar control for displaying events. To achieve that, I am trying to create my custom control to be hosted inside timebar thumb.
I am not sure how should I handle the zoom changes and how can I synchronize my custom control layout with the timeslots of the timebar in most efficient manner given that, zoom and scrolling are frequent and non-performant operations could be real performance issue.

My requirements are very much like Telerik SchedulerView in Timeline mode. But, I also want zooming feature of timebar control and also, timebar control best suites interms of look and feel for this type of requirement.

Any pointers or alternative approaches will be of great help.

Thanks,
Tsvetie
Telerik team
 answered on 09 Apr 2013
1 answer
89 views
Hello,

I'm working with the ScheduleView and i need to have my appointments with two different backgroug colors. For example, the first hour of the appointment is yellow and the remaining hours are green. How can i do this?


Regards,
Masha
Telerik team
 answered on 09 Apr 2013
2 answers
87 views
Since applying the aforementioned update I can no longer get my RadExpander to display in the designer.  
I get a Design Time warning of "cannot locate resource 'themes/genericwindows8touch.xaml'".  

I am using the Windows8 Theme(non touch version) implicitly, which was working as expected prior to this update.
Patrick
Top achievements
Rank 2
 answered on 08 Apr 2013
9 answers
345 views
Hi.

Can I use an OGC Web Map Service as datasource for the WPF Map control?

/Thomas
David
Top achievements
Rank 1
 answered on 08 Apr 2013
4 answers
386 views
Hello,

I have a RadGridView that will be populated by a dynamically generated DataTable. I have therefore set the RadGridView property as follows: AutoGenerateColumns="True". My DataTable will contain dates, strings and integers. I want to be able to use a DataTemplate for each data type in the automatically generated columns of the grid. For instance, for string columns, I will want to use a TextBox with text wrapping, which accepts returns and has a certain maximum width.

For the purpose of this question, my datatable will be created and bound to the RadGridView as follows:

DataTable table = new DataTable();
table.Columns.Add(
new DataColumn("Date Column 1", typeof(DateTime)));
table.Columns.Add(
new DataColumn("Date Column 2", typeof(DateTime)));
table.Columns.Add(
new DataColumn("String Column 1", typeof(string)));
table.Columns.Add(
new DataColumn("String Column 2", typeof(string)));

DataRow row1 = table.NewRow();
row1[table.Columns[0]] = DateTime.Now;
row1[table.Columns[1]] = DateTime.Now.AddDays(10);
row1[table.Columns[2]] =
"some string";
row1[table.Columns[3]] =
"some other string";

table.Rows.Add(row1);
radGridView1.ItemsSource = table;

And my RadGridView currently looks like:

<telerik:RadGridView HorizontalAlignment="Stretch" Name="radGridView1" VerticalAlignment="Stretch" AutoGenerateColumns="True">
    <telerik:RadGridView.Resources>
        <DataTemplate x:Key="TextCellEditorTemplate">
            <TextBox Background="LightYellow" MaxWidth="250" TextWrapping="Wrap" AcceptsReturn="True"
                        Text="{Binding WHAT_GOES_HERE?}" />
        </DataTemplate>
        <DataTemplate x:Key="DateTimeCellEditorTemplate">
            ...
        </DataTemplate>
        <DataTemplate x:Key="IntegerCellEditorTemplate">
            ...
        </DataTemplate>
    </telerik:RadGridView.Resources>
</telerik:RadGridView>

Can you help me specify the binding of the text property of the DataTemplate that uses a TextBox? It should be a two-way binding with the underlying cell in the DataTable. Could you provide me with a basic working example of what I am trying to achieve? This would be greatly appreciated.

Thanks!
Nedyalko Nikolov
Telerik team
 answered on 08 Apr 2013
2 answers
333 views
How do you set the style for all cells in an autogenerated GridView in a designer friendly manner?

ItemContainerStyle has no effect.

it is possible to handle Columns.CollectionChanged and set Column.CellStyle there, but that approach requires code behind and is invisible at design time.

Martin
Top achievements
Rank 1
 answered on 08 Apr 2013
3 answers
202 views
Hi

I am using a RadMenu as content for RadRibbonDropDownButton.  I want the user to be able to select multiple RadMenuItems so I set StaysOpenOnClick=true but the menu doesn't stay open.  I also tried it as a sub menu with the same result.  See xaml below.

Thanks
Rich


                        <telerik:RadRibbonDropDownButton CollapseToMedium="WhenGroupIsMedium"
                                SmallImage="/Icons/16/find.png"                                                  
LargeImage="/Icons/32/twitter.png" Size="Large" Text="Panes">
                            <telerik:RadRibbonDropDownButton.DropDownContent>
                                <telerik:RadMenu Name="panes" Orientation="Vertical"> 
                                    <telerik:RadMenuItem Header="Navigation"
                                       Uid="1"
                                       IsCheckable="True"
                                       IsChecked="True" 
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />
                                    <telerik:RadMenuItem Header="Available Tables"
                                       Uid="2"
                                       IsCheckable="True"
                                       IsChecked="True"
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />
                                    <telerik:RadMenuItem IsSeparator="True" />
                                    <telerik:RadMenuItem Header="Criteria Columns"
                                       Uid="3"
                                       IsCheckable="True"
                                       IsChecked="True"
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />                                 
                                    <telerik:RadMenuItem Header="Sql Statement"
                                       Uid="4"
                                       IsCheckable="True"
                                       IsChecked="True" 
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />
                                    <telerik:RadMenuItem Header="Data Sheet"
                                       Uid="5"
                                       IsCheckable="True"
                                       IsChecked="True" 
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />
                                    <telerik:RadMenuItem Header="Data Filter and Expression"
                                       Uid="6"
                                       IsCheckable="True"
                                       IsChecked="True"
                                       Checked="RadMenuItem_Checked"
                                       Unchecked="RadMenuItem_Unchecked"
                                       StaysOpenOnClick="True" />
                                </telerik:RadMenu>
                            </telerik:RadRibbonDropDownButton.DropDownContent>
                        </telerik:RadRibbonDropDownButton>
Pavel R. Pavlov
Telerik team
 answered on 08 Apr 2013
1 answer
394 views
Hi I am trying to customize the look of the group header with the use of data templates. When ever I do this no group header is displayed. I have tried to to use the Group Header template selector and to modify content template within the style selector both have th same results.  Here is the xmal I am trying to use. I have verified that the event creation style is being applied.
<ecu:GroupHeaderStyleSelector x:Key="GroupHeaderStyleSelector">
            <ecu:GroupHeaderStyleSelector.DateStyle>
                <Style TargetType="telerik:GroupHeader">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </Style>
            </ecu:GroupHeaderStyleSelector.DateStyle>
            <ecu:GroupHeaderStyleSelector.EventCreationStyle>
                <Style TargetType="telerik:GroupHeader">
                    <Setter Property="Visibility" Value="Visible"/>
                    <Setter Property="Height" Value="100"></Setter>
                    <Setter Property="VerticalAlignment" Value="Top">
                    </Setter>
                    <Setter Property="ContentTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <TextBlock>Audio</TextBlock>
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                    <!--<Setter Property="Template" Value="{StaticResource Testing}"></Setter>-->
                </Style>
            </ecu:GroupHeaderStyleSelector.EventCreationStyle>
        </ecu:GroupHeaderStyleSelector>

On the control I am doing the following 
<telerik:RadScheduleView Grid.Row="2"
                                 DialogClosing="eventsTimeline_DialogClosing_1"
                                  
                             AppointmentsSource="{Binding Events, Mode=TwoWay}"
                             NavigationHeaderVisibility="Collapsed"
                             ShowDialog="RadScheduleView_ShowDialog"
                             ResourceTypesSource="{Binding EventTypes}"                            
                             TimeRulerItemStyleSelector="{StaticResource TimeRulerItemStyleSelector}"
                             GroupHeaderStyleSelector="{StaticResource GroupHeaderStyleSelector}"
                             
                             AppointmentEditing="RadScheduleView_AppointmentEditing"
                             AppointmentSaving="eventsTimeline_AppointmentSaving" 
                             AppointmentCreating="eventsTimeline_AppointmentCreating_1"
                             AppointmentCreated="eventsTimeline_AppointmentCreated"
                             AppointmentSelectionChanged="eventsTimeline_AppointmentSelectionChanged_1"
                             AppointmentDeleting="eventsTimeline_AppointmentDeleting_1"
                             AppointmentDeleted="eventsTimeline_AppointmentDeleted_1"
                             DeleteAppointmentConfirmDialogStyle="{StaticResource DeleteEventConfirmDialogStyle}"
                             ResizeHighlightStyle="{StaticResource EventResizeHighlightStyle}"
                             Name="eventsTimeline" VerticalAlignment="Top">
            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:DayViewDefinition
                    VisibleDays="1"
                    MajorTickLength="5min"
                    MinorTickLength="1min"
                    MinTimeRulerExtent="5000"
                    TimerulerMajorTickStringFormat="{}{0: HHmm}"
                    DayStartTime="00:00:00" DayEndTime="3:00:00" Orientation="Horizontal">
                </telerik:DayViewDefinition>
            </telerik:RadScheduleView.ViewDefinitions>
 
            <telerik:RadScheduleView.DragDropBehavior>
                <ecu:EventCreationDragDropBehavior />
            </telerik:RadScheduleView.DragDropBehavior>
 
            <telerik:RadScheduleView.AppointmentStyleSelector>
                <ecu:EventStyleSelector
                        AudioEventStyle="{StaticResource AudioEvent}"
                        OdorEventStyle="{StaticResource OdorEvent}"
                        LightingEventStyle="{StaticResource LightingEvent}"
                        SmokeEventStyle="{StaticResource SmokeEvent}"/>
            </telerik:RadScheduleView.AppointmentStyleSelector>
 
            <telerik:RadScheduleView.GroupDescriptionsSource>
                <telerik:GroupDescriptionCollection>
                    <telerik:ResourceGroupDescription ResourceType="Event Types" />
                </telerik:GroupDescriptionCollection>
            </telerik:RadScheduleView.GroupDescriptionsSource>
        </telerik:RadScheduleView>

Everything worked as intended until I tried to modify the control template. When I tried using the template selector I got the exact same results.
Vladi
Telerik team
 answered on 08 Apr 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
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
Security
VirtualKeyboard
HighlightTextBlock
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?