Telerik Forums
UI for WPF Forum
2 answers
493 views

Hi -

 I am using telerik within my outlook plugin via hosted wpf control. One of the features of my app is to show a dialog window and it all works well except that I noticed that the Windows Header (title bar) does not mimic the office 2013 window title bar color (or any other dialog for that matter). It is instead showing the Accentbrush (if I am correct) which is blue and not the grayish office 2013's one. See attached pics for better explanation (one is what is outlook native windows and the other is comparing it to my window with the blue accent on the title bar). Would I need to modify the syle (if so, how)? or I am just missing something obvious.

 Thanks in advance.

Hugo
Top achievements
Rank 1
 answered on 24 Apr 2015
1 answer
193 views

Is it possible to check if there are any settings to load for gridView before actual loading this settings? For example:

 

PersistenceManager.SetStorageId(gridView, storageId);
 
// how to check if there is some settings to load before actual loading settings happen?
 
_isoProvider.LoadFromStorage(storageId);

Milena
Telerik team
 answered on 24 Apr 2015
4 answers
548 views

I need to select an item in the tree and I am using ItemSource to generate the elements on the tree so I do not have a reference to the node.

I tried to use this example but IsSelected in my view model is not set or retreived:

http://www.telerik.com/forums/radtreeview-selecteditem-binding

My code:

                            <telerik:RadTreeListView x:Name="treeFileSystem" IsBusy="{Binding IsBusy}" RowIndicatorVisibility="Collapsed"    
                                   IsReadOnly="True" AutoGenerateColumns="False" ItemsSource="{Binding FoldersOnDemand, IsAsync=True}" IsExpandedBinding="{Binding IsExpanded, Mode=TwoWay}"
                                   AutoExpandItems="False"  Grid.Row="0" SelectionChanged="treeFileSystem_SelectionChanged">
                                <telerik:RadTreeListView.ItemContainerStyle>
                                    <Style TargetType="telerik:RadTreeViewItem">
                                        <Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
                                    </Style >
                                </telerik:RadTreeListView.ItemContainerStyle>

What it the correct approach to select the item in the tree?  I know the full path and I know which item it is in the view model.

 

Thanks

Stefan
Telerik team
 answered on 24 Apr 2015
3 answers
527 views

WPF DataGrid has empty row at the end which is used to create new rows.

1. How can similar row be added to GridView instead of row with label "Click to insert new row ..."?

2. How to handle keyboard that hitting enter and tabbing out of last cell in the new row keeps adding new rows?

Thanks, Michael

Dimitrina
Telerik team
 answered on 24 Apr 2015
1 answer
335 views

Hello,

 

The filter os GridViewComboBox column not working propertly.

 This filtering by SelectedValuePath (It should filter by DisplayMemberPath).

I put the value of SelectedValuePath and it filtered correctly.

 Logically users filtered by DisplayMemberPath.

 

Solution?

 

Thanks

Dimitrina
Telerik team
 answered on 24 Apr 2015
10 answers
1.4K+ views

Hi,

I’m trying to use a data grid view to bind to a data table where each cell holds an object of a known type.  I would like to bind the grid cells’ values to a particular property of these objects and bind colours and other attributes to other properties.

For example, each cell might have the following as its value:

interface ICellObject

{

                object Value {get;set;}

                bool IsDirty {get;set;}

}

When someone edits a cell, I would like it to store the value in the Value property.  The cell colour would be bound to an expression using the IsDirty property.  The actual ICellObject reference would never be changed. Would this be possible, and how would I do it?

Thanks,

Kyle

Dimitrina
Telerik team
 answered on 24 Apr 2015
1 answer
201 views

Hi

I found many examples of custom aggregates and I'm able to do aggregate function with those helps for specific class with specific property which is used in my grid. But now I have few situations that I want to get count of checked (in class type boolean with value true) from that column. I would like to get it done in one function so I don't need to do several almost same kind code (only class and property changed).

So how I have to change this function to get it work universally (without class 'DeliveriesForAccountsCls' and property name 'isChecked')?

 

public class CheckedDeliveriesCount : AggregateFunction<DeliveriesForAccountsCls, double>
{
    public CheckedDeliveriesCount ()
    {
        this.AggregationExpression = items => Summary(items);
    }
 
    private double Summary(IEnumerable<DeliveriesForAccountsCls> source)
    {
        var itemCount = source.Count();
        if (itemCount > 1)
        {
            var values = source.Where(x => x.isChecked);
            var sum = values.Count();
            return sum;
        }
 
        return 0;
    }
}

 

 

Regards

Harri

 

Dimitrina
Telerik team
 answered on 24 Apr 2015
7 answers
1.4K+ views
Hi,

Can someone tell me why I keep getting the following error when I try to set a CellStyle on a GridViewDataColumn in a RadGridView control?

Error: A value of type 'GridViewDataColumn' cannot be added to a collection or dictionary of type 'GridViewColumnCollection'.

Here is the xaml:

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name">
     <telerik:GridViewDataColumn.CellStyle>
           <Style BasedOn="{StaticResource ReadOnlyStyle}" TargetType="{x:Type telerik:GridViewCell}" />
     </telerik:GridViewDataColumn.CellStyle>
    </telerik:GridViewDataColumn>

All I am trying to do is create a style - ReadOnlyStyle - that would set the foreground color of a grid column to a gray color when the style is set. Here is the style:

    <!--  GridView: Read Only Style  -->
    <Style x:Key="ReadOnlyStyle" TargetType="telerik:GridViewCell">
        <Setter Property="Foreground" Value="{DynamicResource ForegroundReadOnlyColor}" />
        <Setter Property="IsHitTestVisible" Value="False" />
    </Style>

Thanks!
Vanya Pavlova
Telerik team
 answered on 24 Apr 2015
1 answer
682 views

Hi,

 I'm trying to use very small decimal numbers for the Minimum and Maximum Values for the Range Slider however it doesn't show the labels for the ticks.

Am I doing something wrong or is it a limitation for the Minimum and Maximum values?

Example:

Minimum = -1.5080401719063519

Maximum = 1.2150488669618964

Tick = ((Maximum - Minimum) / 5) = 0.54461780777364965

Kiril Vandov
Telerik team
 answered on 24 Apr 2015
4 answers
159 views
Hello! I have a problem in a real-time display consistently huge stream of data (transactions on the Stock Exchange), which is formed in a different thread. Help me with the example so as not to suffer performance visualization. The data comes continuously and in very large quantities.
Maya
Telerik team
 answered on 23 Apr 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?