Telerik Forums
UI for WPF Forum
4 answers
214 views
Hi,

I would like to add conditional formatting to cells in the summary footer row (I want the display values from GridViewColumn.AggregateFunctions to have different background colors based on if they are negative or positive, plus other conditions).

I see that there is a property for GridViewColumn.GroupFooterCellStyleSelector, but what I think I need is one for a property that does not exist in the API:  GridViewColumn.FooterCellStyleSelector...

How should I proceed?

Kind Regards,
Albert
Yoan
Telerik team
 answered on 03 May 2013
1 answer
237 views
I am struggling with how I go about this?  In my VM I have a nullable bool property that I want to bind to a Yes/No(true/false) RadRadioButton.  Can someone point me in the right direction?  

public bool? IsSDS { get; set; }
<telerik:Label Content="Self Directed Support" />
<StackPanel Orientation="Horizontal">
     <telerik:RadRadioButton x:Name="SelfDirectedSupportYes" Content="Yes" />
     <telerik:RadRadioButton x:Name="SelfDirectedSupportNo" Content="No" />
</StackPanel>
Patrick
Top achievements
Rank 2
 answered on 03 May 2013
5 answers
132 views
Hi,

I had installed the free trial of the demos for RadControls and started getting the "Enjoying your RadContolrs for WPF trial?" message when running the installed version of my app but not so when running the app from VS. I have now installed the purchased version of the WPF IU Controls, after uninstalling the free trial, and I’m still getting the message when running the installed version of my app.
Dimitrina
Telerik team
 answered on 03 May 2013
2 answers
77 views
**** SORRY - the title should have read 'DraggedSplitContainer is obsolete' - TYPO ****

Hi,

I'm getting the following warning in VS2010 when using wpf libraries 2013.1.220.40.

'Telerik.Windows.Controls.Docking.PreviewShowCompassEventArgs.DraggedSplitContainer' is obsolete: 'This should not be used anymore. Use the DraggedElement property instead.

It's relating to the following code I have for conditional pane docking:

private void RadDocking_PreviewShowCompass(object sender, Telerik.Windows.Controls.Docking.PreviewShowCompassEventArgs e)
{
    if (e.TargetGroup != null)
    {
        e.Compass.IsCenterIndicatorVisible = CanDockIn(e.DraggedSplitContainer, e.TargetGroup, DockPosition.Center);
        e.Compass.IsLeftIndicatorVisible = CanDockIn(e.DraggedSplitContainer, e.TargetGroup, DockPosition.Left);
        e.Compass.IsTopIndicatorVisible = CanDockIn(e.DraggedSplitContainer, e.TargetGroup, DockPosition.Top);
        e.Compass.IsRightIndicatorVisible = CanDockIn(e.DraggedSplitContainer, e.TargetGroup, DockPosition.Right);
        e.Compass.IsBottomIndicatorVisible = CanDockIn(e.DraggedSplitContainer, e.TargetGroup, DockPosition.Bottom);
    }
    else
    {
        e.Compass.IsLeftIndicatorVisible = CanDock(e.DraggedSplitContainer, DockPosition.Left);
        e.Compass.IsTopIndicatorVisible = CanDock(e.DraggedSplitContainer, DockPosition.Top);
        e.Compass.IsRightIndicatorVisible = CanDock(e.DraggedSplitContainer, DockPosition.Right);
        e.Compass.IsBottomIndicatorVisible = CanDock(e.DraggedSplitContainer, DockPosition.Bottom);
    }
    e.Canceled = !(CompassNeedsToShow(e.Compass));
}

CanDockIn Method:
private bool CanDockIn(ISplitItem dragged, ISplitItem target, DockPosition position)
{
    // If there is a pane that cannot be dropped in any of the targeted panes.
    return !dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)));
}


Can you offer any suggestions about how I can fix this?

Thank you for your time,

Rob







 
George
Telerik team
 answered on 03 May 2013
2 answers
73 views
Hi there,

I would like to change the row background of the first 5 rows after the data on the grid has been sorted but I am having a couple of issues.

I hook into the Sorted event and get the rows from the grid and I loop through the first five and set the background. This almost works but it only changes the backgrounds of every second row. I think that the AlternateRowBackground set on the grid is overwriting the value I set.

Another issue I am facing is that there are two ways in which I sort the grid. The above approach only works when the user sorts by clicking on a column. However the Sorted event doesn't seem to fire when I add a SortDescriptor in the code-behind and I'm not sure why.

Is there something obvious that I am missing? Or is there a better approach to achieve what I am looking for?

Thanks,

Steven
Steven
Top achievements
Rank 1
 answered on 03 May 2013
1 answer
143 views
Hi,

I need to add a ToggleButton to the Hierarchy Expander column header that automatically appears when using a ChildTableDefinition.  Any suggestions would be greatly appreciated.

Thanks,
Keith
Dimitrina
Telerik team
 answered on 03 May 2013
3 answers
422 views
Hello,

i saw online the telerik video over Telerik RadControls and using Prism. I found it great and checked any articles in the web. But now i am not sure what is actually the right choice for me?

I would like to develop a bigger business app with wpf and silverlight ui for win7/8 for a logistic company. Perhaps later an ui for tablets and smartphones.

Is the framework Prism still state of the art or does a framework like Caliburn.Micro or MVVM light better fit the needs of an actual windows app?

What is the experience of telerik and yours here in the forum?
The telerik sample demo app in my trial use prism as base right?
So is it still telerik's favorit?

Could you say that it is not wrong to start in 2012 still with prism to develop a business app for the ms plattform?

Thank you in advance.

Many Greetings Sascha
Sascha
Top achievements
Rank 2
 answered on 03 May 2013
3 answers
452 views
Hi,

how do i style the RadMenuItem? Foreground, Font-Family, FontSize,...?
<telerik:RadMenuItem Header="Einkauf" Background="Transparent" Command="{Binding AddItemCommand}" VerticalAlignment="Center"  HorizontalAlignment="Left" HorizontalContentAlignment="Center" FontFamily="DicotMedium" FontSize="18">
        <telerik:RadMenuItem.Icon>
                 <Image Width="16" Height="16" Margin="0" Source="Style/Images/cockpit.png"  />
        </telerik:RadMenuItem.Icon>
        <telerik:RadMenuItem Command="{Binding AddItemCommand}" CommandParameter="Tab1" Header="Tab 1" />
        <telerik:RadMenuItem Command="{Binding AddItemCommand}" CommandParameter="Tab2" Header="Tab 2" />
</telerik:RadMenuItem>

Thanks
Best Regards Rene
Hristo
Telerik team
 answered on 02 May 2013
1 answer
91 views
Hello,
I want to create a custom theme for ScheduleVIew matching my application. I have tried this tutorial "http://www.telerik.com/help/silverlight/common-styling-apperance-themes-custom-theme-project.html", but it seems like outdated. Telerik.Windows.Controls.Theme class doesn't have a Source property. Do you have any latest links for creating custom theme ?
Konstantina
Telerik team
 answered on 02 May 2013
1 answer
208 views
Hi there

I've a radpane that contains a usercontrol with a gridview and some buttons. 
The radpanegroup is set that it can't be dragged and the dragdropmode is deferred.
<t:RadPaneGroup AllowDrop="False" t:ProportionalStackPanel.RelativeSize="200,300">
<t:RadPane x:Name="Ticket" Header="Ticket" CanFloat="False" CanUserClose="False" CanDockInDocumentHost="False"
CanUserPin="False" t:RadDocking.SerializationTag="Ticket"  ContextMenuTemplate="{StaticResource PaneContextMenuTemplate}">
  <uc:TicketUserControl DataContext="{Binding TicketViewModel}" />
</t:RadPane>
</t:RadPaneGroup>


The problem is when I click in the usercontrol and start dragging, the radpane 'starts dragging'. On the attached picture, you can see that the name of the radpane appears at the bottom, but the radpane itself does not show that it is being dragged. That on itself is not a big problem. the big problem is when I do this on an item (a row) in the gridview. When I do this, sometimes the whole radpane disappears. And only restarting the program will reset the radpane. 
So I guess that it is possible to drag the usercontrol (and with the usercontrol, also the radpane), even when the radpane is not.

Is this a bug or is there a property that I have to set on the usercontrol or radpane to eliminate this behavior?

Thanks in advance
Lowie
Konstantina
Telerik team
 answered on 02 May 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
VirtualKeyboard
HighlightTextBlock
Security
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?