Telerik Forums
UI for WPF Forum
1 answer
90 views
Hello,

FOr the char I use the ItemToolTipFormat
<telerik:SplineSeriesDefinition ShowItemLabels="False" ShowItemToolTips="True"
                                ItemToolTipFormat="Month: #DATAITEM.Month&#x0a;Intake: #DATAITEM.Intake{C2}&#x0a;Target: #DATAITEM.Target{C2}&#x0a;Turn Over: #DATAITEM.TurnOver{C2}&#x0a;Maintenance: #DATAITEM.Maintenance{C2}" />

For the  #DATAITEM.Target{C2} would it be possible to use a custom convertor on the value?
Petar Marchev
Telerik team
 answered on 26 Nov 2012
3 answers
465 views

Is there an easy way that I can show the row number in the row indicator instead of the small arrow ('>')?

BENN
Top achievements
Rank 1
 answered on 25 Nov 2012
1 answer
101 views
Trying to familiarize myself with the 4.5 WPF chart controls, but I found that adding a reference to Telerik.Windows.Controls.Charting breaks all intellisense in XAML. Same appears to go for Controls.Chart, and Controls.Data.

I'm using a build that seems to have the .DLLs dated Oct 17th.
Kevin Dahl
Top achievements
Rank 1
 answered on 24 Nov 2012
6 answers
397 views
Hello Guys....I am getting an error while using ColumnGroupDescriptor in XAML,  to make a group based on some column....
if i do not use the following code in my xaml then it is working nicely and that code is:-

<telerik:RadGridView.GroupDescriptors>
                <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PresentationName\], ElementName=telrikDataGrid}" SortDirection="Ascending" />
            </telerik:RadGridView.GroupDescriptors>


As i am using the above code the it showing a green underline...and showing a error as:
" NullReferenceException was thrown on "ColumnGroupDescriptor": Object reference not set to an instance of an object. " 

please guide me where i amm going wrong...please help me out ASAP.....Thank you guys...

i am also sending my project. So please find it as attachment.

Thanks!!!!!1
<Window x:Class="DataGridLoadingTest.MainWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        xmlns:local="clr-namespace:DataGridLoadingTest"
        xmlns:s="clr-namespace:System;assembly=mscorlib"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        Title="MainWindow" Height="350" Width="600">
     
    <Window.Resources>
 
        <!--<src:BoolToVisiblityConverter x:Key="bool2vis"/>-->
        
 
    </Window.Resources>
     
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
         
       
          <Button Grid.Row="0"  Content="LoadData" Click="LaodData_Click" HorizontalAlignment="Right"/>
     
        <telerik:RadGridView x:Name="telrikDataGrid" Grid.Row="1" ShowColumnFooters="True" ShowGroupFooters="True"
                                     AlternateRowBackground="Azure" AlternationCount="2" AutoGenerateColumns="False"
                                     IsReadOnly="True">
 
 
            <telerik:RadGridView.Columns>
 
                <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding PresentationID}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="Total Rows"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="PresentationPath" DataMemberBinding="{Binding PresentationPath}" >
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="PresentationName" DataMemberBinding="{Binding PresentationName}" >
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="StratTime" DataMemberBinding="{Binding StartTime}">
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="EndTime" DataMemberBinding="{Binding EndTime}">
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="Duration(Sec)" DataMemberBinding="{Binding Duration}">
                    
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction SourceFieldType="{x:Type s:Int64}" ResultFormatString="{}{0:d}" Caption="Total Duration: " SourceField="Duration"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
         
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="LogLevel" DataMemberBinding="{Binding LogLevel}">
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="Mode" DataMemberBinding="{Binding Mode}">
                </telerik:GridViewDataColumn>  
                 
            </telerik:RadGridView.Columns>
 
            <telerik:RadGridView.GroupDescriptors>
 
                <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PresentationName\], ElementName=telrikDataGrid}" SortDirection="Ascending" />
            </telerik:RadGridView.GroupDescriptors>
             
             
        </telerik:RadGridView>
 
    </Grid>
</Window>
<Window x:Class="DataGridLoadingTest.MainWindow"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" 
        xmlns:local="clr-namespace:DataGridLoadingTest"
        xmlns:s="clr-namespace:System;assembly=mscorlib"
        xmlns:telerikData="clr-namespace:Telerik.Windows.Data;assembly=Telerik.Windows.Data"
        Title="MainWindow" Height="350" Width="600">
     
    <Window.Resources>
 
        <!--<src:BoolToVisiblityConverter x:Key="bool2vis"/>-->
        
 
    </Window.Resources>
     
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
         
       
          <Button Grid.Row="0"  Content="LoadData" Click="LaodData_Click" HorizontalAlignment="Right"/>
     
        <telerik:RadGridView x:Name="telrikDataGrid" Grid.Row="1" ShowColumnFooters="True" ShowGroupFooters="True"
                                     AlternateRowBackground="Azure" AlternationCount="2" AutoGenerateColumns="False"
                                     IsReadOnly="True">
 
 
            <telerik:RadGridView.Columns>
 
                <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding PresentationID}">
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:CountFunction Caption="Total Rows"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="PresentationPath" DataMemberBinding="{Binding PresentationPath}" >
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="PresentationName" DataMemberBinding="{Binding PresentationName}" >
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="StratTime" DataMemberBinding="{Binding StartTime}">
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="EndTime" DataMemberBinding="{Binding EndTime}">
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="Duration(Sec)" DataMemberBinding="{Binding Duration}">
                    
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction SourceFieldType="{x:Type s:Int64}" ResultFormatString="{}{0:d}" Caption="Total Duration: " SourceField="Duration"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
         
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="LogLevel" DataMemberBinding="{Binding LogLevel}">
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="Mode" DataMemberBinding="{Binding Mode}">
                </telerik:GridViewDataColumn>  
                 
            </telerik:RadGridView.Columns>
 
            <telerik:RadGridView.GroupDescriptors>
                <!--Here i am getting an error..i mean in the given line as " Object reference not set to an instance of an object.    "-->
                <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PresentationName\], ElementName=telrikDataGrid}" SortDirection="Ascending" />
            </telerik:RadGridView.GroupDescriptors>
             
             
        </telerik:RadGridView>
 
    </Grid>
</Window>
 
 
                <telerik:GridViewDataColumn Header="EndTime" DataMemberBinding="{Binding EndTime}">
                </telerik:GridViewDataColumn>
 
 
                <telerik:GridViewDataColumn Header="Duration(Sec)" DataMemberBinding="{Binding Duration}">
                    
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction SourceFieldType="{x:Type s:Int64}" ResultFormatString="{}{0:d}" Caption="Total Duration: " SourceField="Duration"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>
         
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="LogLevel" DataMemberBinding="{Binding LogLevel}">
                </telerik:GridViewDataColumn>
 
                <telerik:GridViewDataColumn Header="Mode" DataMemberBinding="{Binding Mode}">
                </telerik:GridViewDataColumn>  
                 
            </telerik:RadGridView.Columns>
 
            <telerik:RadGridView.GroupDescriptors>
 
                <telerik:ColumnGroupDescriptor Column="{Binding Columns[\PresentationName\], ElementName=telrikDataGrid}" SortDirection="Ascending" />
            </telerik:RadGridView.GroupDescriptors>
             
             
        </telerik:RadGridView>
 
    </Grid>
</Window>
Fredy
Top achievements
Rank 1
 answered on 24 Nov 2012
0 answers
177 views
Hi,
I am working on a month view in the ScheduleView control, and I've been trying to find a way to change the brushes of the slots (ie the TimeRulerMonthViewItem) when they are hovered over or selected.
Another related issue is srtetching that selection/hover border to fill the entire slot - instead of just under the GoToDayButton I want it to also show behind the button (the button is transparent of course).
Is there a way to apply this style changes?

Please see attached photo (hope it's comprehensible).

Thanks,
Nadav.
Nadav
Top achievements
Rank 1
 asked on 23 Nov 2012
3 answers
324 views
Hi Telerik Team,
        Almost in all of your examples of Filtering concepts I found, you directly given the Member, Operator and Value for FilterDescriptor. But, I wish to give that values dynamically. How to achieve it? I'll be very thankful to you if suggests any good idea for this..

Private

 

 

Sub Me_Filtering(ByVal source As Object, ByVal e As GridViewFilteringEventArgs) Handles Me.Filtering

 

I tried to get this from e, but couldn't get.

Private

 

 

Sub Me_Sorting(ByVal source As Object, ByVal e As GridViewSortingEventArgs) Handles Me.Sorting

 

But, I can get Member, SortingState from e in Sorting events.

Please Help..

Thanks & Regards,
Azharshah H
Bill Anderson
Top achievements
Rank 1
 answered on 23 Nov 2012
1 answer
157 views
Hello Telerik team.
I am using your example in GridView " PrintAndExportWithRadDocument".
When tyring to export gridview with many columns the width of each column very narrow.
I saw your post (http://www.telerik.com/community/forums/wpf/general-discussions/table---adjust-column-width-to-content.aspx) and tried to
use your soultion : 
                        document.DefaultPageLayoutSettings = new PageLayoutSettings(PaperTypes.A2);
           document.SectionDefaultPageOrientation = PageOrientation.Landscape;
With no help.
Can you advise please?
Regard
 Tomer
Dimitrina
Telerik team
 answered on 23 Nov 2012
1 answer
95 views
Hi guys,

I posted this question in an other board and nobody answered so I am reposting this here since Telerik admins are more active in this place.

In this picture, you can see that the "Country" column has been highlighted and is active (i.e. has Distinct Filter). But in this case, that little wine-glass-like icon on the left is grey instead of orange. Do you know how I can make that icon change colour when the column is active?

The classes that are involved are RadGridView, a class that overrides IFilteringControl, and a set of GridViewColumns.

Thanks.
New
Top achievements
Rank 1
 answered on 23 Nov 2012
1 answer
189 views
Hello 

I'm trying to export shapes to a png file using exportToImage() method in RadDiagram.
However, the generated png image is all black, that is every pixel is black.
The RadDiagram I generated is not in the visual tree.

I did something like this:
var diagram = new RadDiagram();
diagram.Load(shapeData);
 
using (FileStream stream = new FileStream("C:\\test\\test-1.png", FileMode.OpenOrCreate, FileAccess.Write))
{
    diagram.ExportToImage(stream);
}

Is it because RadDiagram is not in the visual tree? Is there a work around?

Thanks
Zarko
Telerik team
 answered on 23 Nov 2012
1 answer
160 views
Hi,

I just installed RadControls for WPF v2012.3.1017.40.  I have VS2012 v11.0.50727.1 RTMREL and I'm targeting .NET 4.0.

I'm getting the following error when referencing RadDataServiceDataSource:

Error    1    The tag 'RadDataServiceDataSource.DataSourceContext' does not exist in XML namespace 'http://schemas.telerik.com/2008/xaml/presentation'. Line 55 Position 22.    D:\SVN\branches\DataExtractor-2.0.x\Workbench\MainWindow.xaml    55    22    Workbench

Here is the XAML in question:

<Window
        xmlns:myvm="clr-namespace:SmartProcure.Workbench.ViewModels"
        xmlns:mycv="clr-namespace:SmartProcure.Workbench.Converters"
        xmlns:mdmhub="clr-namespace:SmartProcure.Workbench.MdmHub"
        x:Class="SmartProcure.Workbench.MainWindow"
        Title="SmartProcure DataExtractor Workbench" Height="800" Width="1024" MinHeight="800" MinWidth="1024" Closed="Window_Closed">
...
                <telerik:RadDataServiceDataSource x:Name="dataServiceMdmHub" Height="100" Width="100" AutoLoad="True" PageSize="25" QueryName="ImportQueue">
                    <telerik:RadDataServiceDataSource.DataSourceContext>
                        <mdmhub:MdmHubEntitiesContext/>
                    </telerik:RadDataServiceDataSource.DataSourceContext>
                </telerik:RadDataServiceDataSource>

I tried many recommendations from other posts, but none have fixed the problem.  I can see in Object Browser that RadDataServiceDataSource has a DataSourceContext property, but VS is not able to find it to compile the project.

Thanks in advance
Rossen Hristov
Telerik team
 answered on 23 Nov 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
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?