Telerik Forums
UI for WPF Forum
1 answer
366 views

     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

Dilyan Traykov
Telerik team
 answered on 15 Jan 2019
1 answer
437 views

 

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

 

 

Vladimir Stoyanov
Telerik team
 answered on 15 Jan 2019
1 answer
912 views

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)?

Vladimir Stoyanov
Telerik team
 answered on 15 Jan 2019
1 answer
91 views
Is there a way for cancelling an individual download, or can you only call RequestCancel (which cancels all uploading items)?
Vladimir Stoyanov
Telerik team
 answered on 14 Jan 2019
1 answer
56 views
How to implement AutomationID to charts (RadCartesianChart) datapoints? 
Martin Ivanov
Telerik team
 answered on 14 Jan 2019
3 answers
71 views

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">

Vladimir Stoyanov
Telerik team
 answered on 11 Jan 2019
2 answers
247 views

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.

 

 

Reilly
Top achievements
Rank 1
Veteran
 answered on 11 Jan 2019
3 answers
159 views

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.

 

 

Joel
Top achievements
Rank 1
Iron
 answered on 11 Jan 2019
4 answers
200 views

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.

Martin Ivanov
Telerik team
 answered on 11 Jan 2019
2 answers
117 views

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>

Sullivan
Top achievements
Rank 1
 answered on 11 Jan 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?