Telerik Forums
UI for WPF Forum
3 answers
272 views
Hi

I have a custom style for the BarItemControlTemplate,  I'm trying to find the Grid element via code, but the FindName always return null. My goal is to be able to find the ScrollViewer element with in this template so that i can add a event handler for the ScrollChanged event. 

private void OnBreadCrumbControlCurrentItemChanged(object sender, RadRoutedEventArgs e)
{
    var breadcrumb = sender as RadBreadcrumb;
 
    if (breadcrumb != null)
    {
        var grid = breadcrumb.BarItemControlTemplate.FindName("Grid", breadcrumb.CurrentContainer) as Grid;
        grid = breadcrumb.BarItemControlTemplate.FindName("Grid", breadcrumb) as Grid;
    }
}

<Style x:Key="RadBreadcrumbStyle" TargetType="{x:Type telerik:RadBreadcrumb}">
    <Setter Property="BarItemControlTemplate">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type telerikNavigation:RadBreadcrumbBarItem}">
                <Grid x:Name="Grid">
                    <Border x:Name="headerContainer" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
                        <telerik:RadSplitButton x:Name="SplitButton" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Command="telerikNavigation:RadBreadcrumbCommands.ClearSelectedItem" Foreground="{TemplateBinding Foreground}"
                                                IsOpen="{Binding IsPopupOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" InnerCornerRadius="0" Margin="0"
                                                Style="{TemplateBinding SplitButtonStyle}">
                            <telerik:RadSplitButton.DropDownContent>
                                <ScrollViewer x:Name="ScrollViewer" BorderThickness="0" HorizontalScrollBarVisibility="Auto" MaxWidth="270" MinWidth="200" Padding="0" MaxHeight="200" VerticalScrollBarVisibility="Auto">
                                    <Grid>
                                        <Grid HorizontalAlignment="Left" Width="32">
                                            <Border BorderBrush="Transparent" BorderThickness="0,0,1,0" Background="#FF848484" HorizontalAlignment="Right" Width="2"/>
                                            <Rectangle Fill="#FFF0F0F0" Margin="0,0,2,0"/>
                                        </Grid>
                                        <ItemsPresenter Margin="3"/>
                                    </Grid>
                                </ScrollViewer>
                            </telerik:RadSplitButton.DropDownContent>
                        </telerik:RadSplitButton>
                    </Border>
                </Grid>
                <ControlTemplate.Triggers>
                    <Trigger Property="HasItems" Value="False">
                        <Setter Property="DropDownIndicatorVisibility" TargetName="SplitButton" Value="Collapsed"/>
                    </Trigger>
                    <Trigger Property="IsLinearMode" Value="True">
                        <Setter Property="DropDownIndicatorVisibility" TargetName="SplitButton" Value="Collapsed"/>
                    </Trigger>
                    <Trigger Property="IsButtonPartHidden" Value="True">
                        <Setter Property="IsButtonPartVisible" TargetName="SplitButton" Value="False"/>
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

Zarko
Telerik team
 answered on 30 Mar 2012
1 answer
468 views
Hi,

I want to format the currency columns with dollar sign ($) in rad gridview control .

example:
Salary:
$12000
$12321
$22000
$13000
$12000
$12321
$22000
$13000

Please post me some application or guide me to do that in xaml or in resource ditionary file.

Regards,
Arafath
Rossen Hristov
Telerik team
 answered on 30 Mar 2012
0 answers
108 views
Hi Maya,

I want to include the dollar sign($) in currency value column in radgridview control.

Example:
Salary.
$10,000.00
$5,000.00
$10,000.00
$5,000.00
$10,000.00
$5,000.00
$10,000.00
$5,000.00




Can you please help me to handle this ...ASAP

Regards,
Arafath
Mohamed
Top achievements
Rank 1
 asked on 30 Mar 2012
1 answer
52 views
Could someone tell me why I might be getting the attached error?  I downloaded to source code (2012.1.326) to catch the exact point when the exception is triggered in the Telerik source.  The code is not checking for SeriesMappings to be null.  Should I modify the source to return from the method if the SeriesMappings property is null?
Vladimir Milev
Telerik team
 answered on 30 Mar 2012
2 answers
67 views
Hi telerik,

We are using the docking feature - and have had the RadPaneGroup of docked panes in the bottom.

Now users are requesting that the RadPaneGruop is at the top in each of the split container instead as it is with DocumentHost.

Is it possible to move the RadPaneGroup to the top?

Thanks,

Anders, Denmark.
Konstantina
Telerik team
 answered on 30 Mar 2012
3 answers
343 views
Dear sir,

I have created a RadDropdownButton.
While the control is open, if I click on a control that I put within the dropdown content area then it launches another control dialog.
For example, I click on a button which launches a search dialog. But, for some reasons, this search dialog is overlapped/hidden by the RadDropdownButton control.

I have to keep the RadDropdownButton open when the search dialog is open and it seems to me the RadDropdownButton has a high Z-Index and always on top of the search dialog.

How can I resolve this issue?


Richard
Tina Stancheva
Telerik team
 answered on 30 Mar 2012
1 answer
156 views
Hi,
how can I change the icon related to Importance (=High) property of the appointment (in the AppointmentTemnplate)?

thanks, michele
Konstantina
Telerik team
 answered on 30 Mar 2012
3 answers
107 views
Hello, 
is it possible to view the details for the two rows at the same time?
Rossen Hristov
Telerik team
 answered on 30 Mar 2012
3 answers
147 views
1.  I don't see this control in your list of wpf controls below; is it still available? 
(oddly I was recently told by someone at support that you had nothing like it--maybe it's new or in beta?)
http://www.telerik.com/products/wpf/controls.aspx
2.  Does it or will it support Entity Framework 5.0?
3.  Does it or will it support dbcontext (4.x and higher)?

Thanks.
Rossen Hristov
Telerik team
 answered on 30 Mar 2012
1 answer
111 views
Nowdays, .NET 3.5 assemblies is rarely used,But the installer/setup auto install them and cannot deselect by user.This is very annoying.I hope the next release will resolve this problem.
Chavdar Dimitrov
Telerik team
 answered on 30 Mar 2012
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?