Telerik Forums
UI for WPF Forum
2 answers
212 views

Hello,

 

I have created a Radwizard Application (c#) that has a HeaderTemplate and a FooterTemplate.

 

Inside the footer i have created custom radbuttons for back, cancel, next and finish. However, i cannot seem to access them in the code behind.this.Rad.

 

RadWizard.xaml:

<Window
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                xmlns:wizard="clr-namespace:Telerik.Windows.Controls.Wizard;assembly=Telerik.Windows.Controls.Navigation"
                x:Class="App.MainWindow"  
                Height="450" Width="600"
                Title="MyApp">
    <telerik:RadWizard x:Name="Rad" IsContentPreserved="True" Background="#dee3e9">
        <telerik:WizardPage HeaderHeight="90">
            <telerik:WizardPage.HeaderTemplate>
            ...
            </telerik:WizardPage.HeaderTemplate>
            <telerik:WizardPage.FooterTemplate>
<DataTemplate>
                    <StackPanel Orientation="Horizontal" Margin="-0.5 -0.5 -1.51 -2" HorizontalAlignment="Left" Width="650">
                        <telerik:RadButton x:Name="Back"
                                           Content="< Back"  
                                           Margin="160 5 5 5"
                                           Command="wizard:RadWizardCommands.MoveCurrentToPrevious"/>
                    </StackPanel>
</DataTemplate>
            </telerik:WizardPage.FooterTemplate>
</Window>

I need to acess the RadButton inside the footertemplate from the code behind.

 

Can anyone help me?

 

Regards

Ricardo
Top achievements
Rank 1
 answered on 04 Jun 2018
1 answer
922 views

Hi, I'm using a RadGridView and I call a RowEditEnded function to:

Edit all columns when the first column value is 1, but after I changed the columns values the Grid values are not updated in real time.

My simple code is:

            AreaCoeficienteEscoamento updatedItem = e.Row.Item as AreaCoeficienteEscoamento;
            updatedItem.Area = 333;
            updatedItem.Coeficiente = 333;
            // How to update and refresh the table values?

Thks!

Martin Ivanov
Telerik team
 answered on 04 Jun 2018
4 answers
151 views

Hi Progress,

 

I was wondering if it is possible to combine BaseLine_WPF project and ProjectDeadline_WPF project inside your xaml-sdk-master samples/Examples?

If I have understood this correctly, TimelineContainerSelector in Xaml can only have one child. How can I give several behaviors to TimelineContainerSelector?

 

Thanx

Best Regards

kourosh

Martin Ivanov
Telerik team
 answered on 04 Jun 2018
1 answer
307 views
I have seen the new application "WFP Control Examples" and I would be interested in implementing the "hamburger menu" that expands like UWP mnufly. Is the code available in some repository?
Martin Ivanov
Telerik team
 answered on 01 Jun 2018
1 answer
154 views

Is there an option to set Duplex print for the RadRichTextbox?

 

Tanya
Telerik team
 answered on 01 Jun 2018
3 answers
139 views

Hi,

I am using Telerik RichTextBox Mail Merge functionality. I am printing mail merge document in the background thread and it is working fine. Now just I want to print it both side of the paper. How can I do duplex printing with Mail Merge.

Thanks

Tanya
Telerik team
 answered on 01 Jun 2018
1 answer
115 views

Hi
Does OpenMaps provider have option that you type name of city in textbox and then you get  pointed to that city.
Something like search. I saw in you examples that bing have that option .
what about openMaps ??

thanks

Petar Mladenov
Telerik team
 answered on 01 Jun 2018
1 answer
72 views

Hi,

I have the following definition of the control:
< :RadDocking PanesSource="{Binding panes}"...

Panes have  of items which order is different than in the UI. I need to get the first pane in order to mark it in code as selected. How can I do it?

Dilyan Traykov
Telerik team
 answered on 31 May 2018
0 answers
175 views

Hi Telerik,

I’m using RadGridView and RadDataPager. Items bound to RadDataPager Source. RadGridView’s ItemsSource is the PagedSource of RadDataPager. I’m using dynamic page size concept. For this I have styled the DataPagerPresenter. The RadComboBox is used inside the style for selecting the Page Size. A converter is used to set the ItemsSource of the RadComboBox.

The problem I’m facing here is, while initializing the RadDataPager the converter gets fired and the initial Page size (10) is set as ItemsSource. After the items are fetched from the service, The items are set to Source of the RadDataPager. Now, the converter is not getting fired to update the page size itemssource as it is having 1000 records. I want to display 10, 20, 30, 40, 50 as ItemsSource of RadComboBox.

How to update the ItemsSource of RadComboBox when items are set?

 

<ControlTemplate x:Key="DataPagerPresenterTemplate" TargetType="dataPager:DataPagerPresenter">
...
...
...
<tk:RadComboBox x:Name="pageSizeOptionComboBox" Grid.Column="1"
                        ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource pageSizeCountConverter}}"
                        SelectedValue="{Binding PageSize, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}" />
...
...
...
</ControlTemplate>

 

public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            DataPagerPresenter presenter = value as DataPagerPresenter;
            var totalCount = presenter.PageCount * presenter.PageSize;
            int i = 1;
            List<int> result = new List<int>();
            for (int j = 0; j < totalCount && result.Count < 5; j++)
            {
                if (i % 10 == 0)
                {
                    result.Add(i);
                }

                i++;
            }

            return result;
        }

 

Azharshah
Top achievements
Rank 1
 asked on 31 May 2018
3 answers
658 views

Hi..

Any ideas why I'm getting this error?

Help?

 

Severity Code Description Project File Line Suppression State
Error Unknown build error, 'Could not load type 'Telerik.Windows.Controls.TemplateVisualStateAttribute' from assembly 'Telerik.Windows.Controls, Version=2017.2.614.45, Culture=neutral, PublicKeyToken=5803cfa389c90ce7'. Line 1

 

Here's the code.. Where's the error

 

THANKS IN ADVANCE

 

 <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>
         </telerik:RadBusyIndicator>

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 31 May 2018
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
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
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?