Telerik Forums
UI for WPF Forum
2 answers
179 views
Hello there,

another feature item I just came across is 'custom styles', as predefined styles (known from Word (font/size/color, indentation, bullet list (if applicable), margins etc), defined & stored/loaded in/from the doc upon saving/loading) which doesn't seem to be supported at the moment.

Is this feature planned?

All the best,
-Jörg B.
Iva Toteva
Telerik team
 answered on 09 Mar 2011
1 answer
156 views
So i have points Data that have two members YValue and Axis Label.
i have multiple series. for each series i set the mapping as such

seriesmapping.SeriesDefinition = GetSeriesType(series.SeriesType);// right now all are line charts
            seriesmapping.CollectionIndex =index;
    ItemMapping itemMapping = new ItemMapping();
            itemMapping.DataPointMember = DataPointMember.YValue;
            itemMapping.FieldName = "YValue";
            return itemMapping;
    seriesmapping.ItemMappings.Add(ItemMapping);

Now for the labels i am taking the following approach. i tried keeping this binding for only the first series. then bind to every series
//ItemMapping itemMapping = new ItemMapping();
                //itemMapping.DataPointMember = DataPointMember.Label;// i tried both this and X category
                //itemMapping.FieldName = "AxisLabel";
                //seriesmapping.ItemMappings.Add(itemMapping);

with one series the labels work (i have other issues but they are mentioned in my last question). but adding multiple series and trying to bind the labels it does not work . what am i doing wrong.

Also. i dont want display certain points. these points i have as NAN. but you guys graph that and makes my graph look awful. is there anyway i can not display NAN.
Missing User
 answered on 09 Mar 2011
3 answers
103 views
I am use the RadChart in a CustomControl which used to work in the 2009 version of the control. Now that I have upgraded the controls to the 2010 Q3 SP1 version the control no longer works.

The problem is that - looking in snoop - the control has no visual tree. I have reduced the generic style to the following;

<Style TargetType="{x:Type asc:CustomControl1}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type asc:CustomControl1}">
                    <Grid>
                        
                        <Grid.Background>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"  >
                                <GradientStop Color="#FFDCE7FD" Offset="1"/>
                                <GradientStop Color="#FF898AAC" Offset="0"/>
                            </LinearGradientBrush>
                        </Grid.Background>
                        
                        <telerik:RadChart x:Name="PART_AscChart" />

                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

    </Style>

The piece which I believe causes the problem is that the assemblies are loaded through a custom assembly loader at runtime, so I suspect that the generic style for RadChart is not being located.

Any ideas would be appreciated.

Thanks
Kendrew
Yavor
Telerik team
 answered on 09 Mar 2011
1 answer
77 views
Hi Geeks :)

I faced with the same issue, but my scenario is little bit different from the author of this post.

Steps to reproduce:

1. Click "add new item" in the grid.
2. Press "Escape" button (Once), to still have the item in the grid.
3. Click on the header of the column, the "add new item" control will appears.
4. Click on it ("add new item")

Result: The crash will appears.

In attachment you will find all the mentioned steps in graphical example.

Thx,
Julian Ust.
Yordanka
Telerik team
 answered on 09 Mar 2011
1 answer
107 views
Hi,

Is it possible to have a grid that allows users to add new items (through programatically calling BeginInsert) whilst preventing the user from editing existing items?

Thanks

Mat
Maya
Telerik team
 answered on 09 Mar 2011
1 answer
102 views
I'm using the Docking example you provided with RadControls_for_WPF40_2010_3_1314.

If I want to dock a panel in the SolutionExplorer pane the corresponding compass is shown outside of the main window and disappears if I move the mouse cursor toward it. See attached screen shot.

I think this is a bug. When will it be fixed?
George
Telerik team
 answered on 08 Mar 2011
3 answers
814 views
I'm trying to get validation working with the RadMaskedTextBox, I have found a few posts and an old example in your online help http://www.telerik.com/help/wpf/radmaskedinput-features-validation.html

The current help for the RadMaskedTextBox doesn't even talk about validation.

What I would like to do is have the outline around the RadMaskedTextBox turn red when something is wrong the data entered into the textbox.

Could you please send me a small example of this ?
Petar Mladenov
Telerik team
 answered on 08 Mar 2011
1 answer
95 views
Is there an easy way to select current date and time using the control or I should make such button myself?
Miroslav Nedyalkov
Telerik team
 answered on 08 Mar 2011
1 answer
93 views

Hi,

 

I want to use the data from the database to a pie chart.

 

is it possible in WPF chart??

I found an example in reporting however I want it in WPF

http://www.telerik.com/help/reporting/buildingdatabinddatabase.html


thanks in advance

Yavor
Telerik team
 answered on 08 Mar 2011
4 answers
180 views
I have two identical  WPF RadGridViews on my form. I want to be able to detect when the GroupHeader has been clicked so that
a) Only one group on each grid is expanded at any one time
b) If the group in radGridDebits is expanded/collapsed, the same group in radGridCredits is expanded/collapsed - i.e. synchronize the group header between both grids.
c) Basically, I'm looking for a GroupHeader.Clicked event but can't find it!!

<Controls1:RadGridView Grid.Row="1"
                            x:Name="radGridDebits"
                            AutoGenerateColumns="False"
                            ShowColumnHeaders="False"
                            IsReadOnly="True"
                            ItemsSource="{Binding Data}"
                            ShowGroupPanel="False"
                            RowIndicatorVisibility="Collapsed"
                            AutoExpandGroups="False">
         <Controls1:RadGridView.SortDescriptors>
             <Data:SortDescriptor Member="HlpAccountGroup.CategoryID" />
             <Data:SortDescriptor Member="Description" />
         </Controls1:RadGridView.SortDescriptors>
         <Controls1:RadGridView.GroupDescriptors>
             <Data:GroupDescriptor Member="HlpGroupCompany.Description"
                                   DisplayContent="Group company"
                                   SortDirection="Ascending" />
         </Controls1:RadGridView.GroupDescriptors>
         <Controls1:RadGridView.FilterDescriptors>
             <Data:CompositeFilterDescriptorCollection>
                 <Data:CompositeFilterDescriptor LogicalOperator="Or">
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Debit" />
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Common" />
                 </Data:CompositeFilterDescriptor>
             </Data:CompositeFilterDescriptorCollection>
         </Controls1:RadGridView.FilterDescriptors>
         <Controls1:RadGridView.GroupHeaderTemplate>
             <DataTemplate>
                 <Border Background="{Binding Group.Items[0].HlpGroupCompany.Brush}"
                         Padding="3"
                         Width="250"
                         CornerRadius="3"
                         BorderThickness="1">
                     <StackPanel Orientation="Horizontal">
                         <TextBlock Text="Group company:"
                                    Margin="0,0,3,0" />
                         <TextBlock Text="{Binding Group.Key}"
                                    Foreground="{StaticResource DarkBackground}"
                                    FontWeight="Bold" />
                     </StackPanel>
                 </Border>
             </DataTemplate>
         </Controls1:RadGridView.GroupHeaderTemplate>
         <Controls1:RadGridView.Columns>
             <Controls1:GridViewDataColumn Header="Account"
                                           DataMemberBinding="{Binding Description}" />
             <Controls1:GridViewDataColumn Header=""
                                           DataMemberBinding="{Binding HlpCurrency.CurrencyId}" />
         </Controls1:RadGridView.Columns>
     </Controls1:RadGridView>
 
 
 
 
 
<Controls1:RadGridView Grid.Row="1"
                            x:Name="radGridCredits"
                            AutoGenerateColumns="False"
                            ShowColumnHeaders="False"
                            IsReadOnly="True"
                            ItemsSource="{Binding Data}"
                            ShowGroupPanel="False"
                            RowIndicatorVisibility="Collapsed"
                            AutoExpandGroups="False">
         <Controls1:RadGridView.SortDescriptors>
             <Data:SortDescriptor Member="HlpAccountGroup.CategoryID" />
             <Data:SortDescriptor Member="Description" />
         </Controls1:RadGridView.SortDescriptors>
         <Controls1:RadGridView.GroupDescriptors>
             <Data:GroupDescriptor Member="HlpGroupCompany.Description"
                                   DisplayContent="Group company"
                                   SortDirection="Ascending" />
         </Controls1:RadGridView.GroupDescriptors>
         <Controls1:RadGridView.FilterDescriptors>
             <Data:CompositeFilterDescriptorCollection>
                 <Data:CompositeFilterDescriptor LogicalOperator="Or">
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Credit" />
                     <Data:FilterDescriptor Member="HlpAccountGroup.AccountType"
                                            Value="Common" />
                 </Data:CompositeFilterDescriptor>
             </Data:CompositeFilterDescriptorCollection>
         </Controls1:RadGridView.FilterDescriptors>
         <Controls1:RadGridView.GroupHeaderTemplate>
             <DataTemplate>
                 <Border Background="{Binding Group.Items[0].HlpGroupCompany.Brush}"
                         Padding="3"
                         Width="250"
                         CornerRadius="3"
                         BorderThickness="1">
                     <StackPanel Orientation="Horizontal">
                         <TextBlock Text="Group company:"
                                    Margin="0,0,3,0" />
                         <TextBlock Text="{Binding Group.Key}"
                                    Foreground="{StaticResource DarkBackground}"
                                    FontWeight="Bold" />
                     </StackPanel>
                 </Border>
             </DataTemplate>
         </Controls1:RadGridView.GroupHeaderTemplate>
         <Controls1:RadGridView.Columns>
             <Controls1:GridViewDataColumn Header="Account"
                                           DataMemberBinding="{Binding Description}" />
             <Controls1:GridViewDataColumn Header=""
                                           DataMemberBinding="{Binding HlpCurrency.CurrencyId}" />
         </Controls1:RadGridView.Columns>
     </Controls1:RadGridView>

Many thanks
Jeremy Holt
Maya
Telerik team
 answered on 08 Mar 2011
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
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?