Hello,
I was able to override the style of the RadWindow prompt according to this thread: https://www.telerik.com/forums/radwindow-prompt-textbox-as-password
and I added one more textbox but I could not read result (or did not know how) so I can use them in my app.
Is this approach possible because PromptResult is a string
Thanks alot
Hello,
In our project we must create a DataTemplate for a grid cell programmatically. Everything works perfect, but a click to a button within the template does not work.
Here is a snippet of the code:
var cellEditTemplate = new DataTemplate();
var dockPanel = new FrameworkElementFactory( typeof( DockPanel ) );
dockPanel.SetValue( DockPanel.LastChildFillProperty, true );
var textBlock = new FrameworkElementFactory( typeof( TextBlock ) );
textBlock.SetValue( FrameworkElement.StyleProperty, textBlockStyle );
textBlock.SetBinding( TextBlock.TextProperty, binding );
textBlock.SetValue( DockPanel.DockProperty, Dock.Left );
var button = new FrameworkElementFactory( typeof( RadButton ) );
button.SetValue( FrameworkElement.StyleProperty, buttonStyle );
button.SetValue( ContentControl.ContentProperty, "Press me" );
button.SetValue( FrameworkElement.MinWidthProperty, 0.0 );
button.SetValue( DockPanel.DockProperty, Dock.Right );
button.AddHandler( Button.ClickEvent,
new RoutedEventHandler( ( sender, args ) =>
{
int i = 0;
i++;
} ) );
button.SetValue( Button.CommandProperty );
dockPanel.AppendChild( button );
dockPanel.AppendChild( textBlock );
cellEditTemplate.VisualTree = dockPanel;
cellEditTemplate.Seal();
The event handler is not called.
Best regards,
Michael
Is there a way to find out if the RadListBox.SelectionChanged event was triggered by user input (mouse click, touch, tabbing, keyboard input...) vs programmatically (by setting datacontext, binding, or setting RadListBox.SelectedItem in code behind)?
Hi,
Can anyone help me with this problem. Please look here:
http://prntscr.com/m4t10v
The code of my GridView:
<telerik:RadGridView x:Name="GV_ProjectTerms" AutoGenerateColumns="False" Margin="10" RowIndicatorVisibility="Collapsed" ShowSearchPanel="False" CanUserFreezeColumns="False" CanUserReorderColumns="False" DragElementAction="None" IsFilteringAllowed="False" ShowGroupPanel="False">
I'm using 2017.3.1018.45 on 64-bit Windows 10 and Visual Studio 2017.
My application has a single chart view. I can change the data that is displaying. The DataContext changes out from under the view. When the DataContextChanged message arrives, I:
1. save the current pan/zoom settings for the chart.
2. clear all series.
3. generate all series for the new data context
4. restore the pan/zoom settings that were saved from the last time this data was displayed.
Except that it doesn't work at all. I have tried saving and restoring: Zoom, PanOffset, Horizontal/Vertical-ZoomRange-Start/End.
At first, I tried just saving/restoring Zoom and PanOffset. I could successfully set the Zoom, but the PanOffset was always (0,0) after the set.
I have tried invoking my restore operation on the dispatcher during Idle, so it should be done after everything has been complete.
Any ideas?
-John.
Hello,
Is there a way of customizing the appointment stack behavior when 2 or more items are overlapping on the timeline view?
Currently, the longest appointment will appear on top of the stack.
I would like to change this behavior so that the order of the stack is not calculated based on the length of the appointment but rather on a custom attribute or by the order in which the appointments are added.
Hello,
I have read the post on modifying RadChart Candlestick to display the median and therefore be a Box Plot / Box Whisker. http://docs.telerik.com/devtools/wpf/controls/radchart/how-to/howto-create-scatter-errorbars-and-boxplot-series
I would like to achieve this same effect using RadChartView, as I would like the implicit styles that ChartView provide over Chart.
Please could you provide guidance on how I should go about adding a median line to the candlesticks in RadChartView
Many thanks in advance.
Finally upgrading my controls..
How in the 'world' do I convert my Schedule to ScheduleView?
I assume NO MORE Scheduler?
Help!!!!!!!!!!!!!!
<telerik:RadScheduler Name="radSchedule" telerik:StyleManager.Theme="{StaticResource MyThemeInstance}" AppointmentTemplate="{StaticResource AppointmentTemplateFLOM}"
TimeRulerHostStyle="{StaticResource TimeRulerHostStyleFLOM}"
TimeSlotTemplateSelector="{StaticResource TimeSlotTemplateSelector}" ViewMode="Week"
TimelineHeaderFormat="{}{0:M-d-yyyy}"
AppointmentEditing="radSchedule_AppointmentEditing"
SelectedViewStartDateChanged="radSchedule_SelectedViewStartDateChanged" AllDayAreaHeight="0" AllowDrop="False" FontSize="14" IsEnabled="True" AppointmentAdding="radSchedule_AppointmentAdding" AppointmentDeleting="radSchedule_AppointmentDeleting" AppointmentCreating="radSchedule_AppointmentCreating" IsReadOnly="False">
<telerikScheduler:RadScheduler.WeekViewDefinition>
<telerikScheduler:WeekViewDefinition DayStartTime="0:00:00" VisibleDays="7" DayEndTime="23:00:00" TimeSlotLength="0:15:0" LargeChangeInterval="7d" />
</telerikScheduler:RadScheduler.WeekViewDefinition>
<telerikScheduler:RadScheduler.DayViewDefinition>
<telerikScheduler:DayViewDefinition DayStartTime="0:00:00" DayEndTime="23:00:00" TimeSlotLength="0:15:0" /> <!--HEIGHT OF APPT -->
</telerikScheduler:RadScheduler.DayViewDefinition>
</telerik:RadScheduler>