Telerik Forums
UI for WPF Forum
7 answers
161 views
I'm testing out the pivot grid control and adapted the sample to use adomd.

The problem is when I run it, I get no fields in the picker. Everything is empty. No errors, no extended errors in VS when debugging.

I can verify my connection string is working because I can create an AdomdConnection using Microsoft's API and successfully connect to the SSAS server and see the connection metadata/properties while it's open when debugging with VS.

SASS is 10.50.1600.1,
Microsoft.AnalysisServices.AdomdClinet is v 10.0
WPF 4.0

Not sure why I'm not getting anything using the telerik control.
Rosen Vladimirov
Telerik team
 answered on 23 Jan 2013
4 answers
337 views
Hi,

I am trying to build a rad grid view dynamically and I have a slight issue with the column groups.

When the table is shown not all of the groups are shown but when I scroll they appear (only the first 10 get drawn when the grid is first loaded).

I have tried tow different approaches to make this work;
  1. Extending RadGridView and building the table based on a dependency property that contains the details of what columns/groups need to be added and,
  2. Moving the dependency property up a level and working with an out of the box RadGridView.

Do you have any suggestions of what I can do to get all of the column groups to be drawn when the grid view is first loaded?

Thanks,

Steven
Steven
Top achievements
Rank 1
 answered on 23 Jan 2013
0 answers
79 views
Hi,

is there any easy way to set DropVisual using DragDropManager?

I mean something similar to

DragInitializeEventArgs.DragVisual

 

 

 

 

Daniel
Top achievements
Rank 1
 asked on 23 Jan 2013
5 answers
83 views
I just updated to the newest version and went through the release note. The change "Column aligned aggregates" in GridView caught my interest, but I seem to be unable to find anything usefull when I search for that term anywhere (also in the documentation).

There were no link in the release note to take me to a detailed description of this change.

How and where do I find the documentation of this?

Thanks
Dimitrina
Telerik team
 answered on 23 Jan 2013
1 answer
256 views
Hey there, I'm creating a project where I want to display attributes of specific objects in a chart. For example, I have 2 different loan objects (Current Loan and Proposed Loan) and I want to display each one of those object's "Tax Savings" in a bar chart. I am trying to do something EXACTLY like this:

http://www.telerik.com/help/wpf/radchartingkit-series-barseries.html 

But I want the properties themselves to be properties on my objects. I've tried basic bindings and I can't seem to get it to work. The objects bind find throughout my app it's just not functioning here. The code I've got is:

                            <telerikChart:RadCartesianChart Width="500" >

                                <telerikChart:RadCartesianChart.HorizontalAxis>
                                    <chartView:CategoricalAxis/>
                                </telerikChart:RadCartesianChart.HorizontalAxis>
                                
                                <telerikChart:RadCartesianChart.VerticalAxis>
                                    <chartView:LinearAxis/>
                                </telerikChart:RadCartesianChart.VerticalAxis>

                                <telerik:BarSeries>
                                    <telerik:BarSeries.DataPoints>
                                        <telerik:CategoricalDataPoint  Value="{Binding Path=CurrentLoan.TaxSavings}"
                                                  Category="Proposed Loan"/>
                                        <telerik:CategoricalDataPoint  Value="{Binding Path=ProposedLoan.TaxSavings}"
                                                  Category="Current Loan"/>
                                    </telerik:BarSeries.DataPoints>
                                </telerik:BarSeries>

                            </telerikChart:RadCartesianChart>

When It loads, it actually blanks out my entire "View" that the charts are supposed to be in. Any suggestions? Thank you
Ves
Telerik team
 answered on 23 Jan 2013
3 answers
162 views
I'm currently evaluating TreeListViews from various vendors and am trying to determine if what I'm looking for is possible. We are using an MVVM model for our code. That being said I have a view model that has a collection of items. Each item has a collection of children and a collection of additional properties. Below is some sample code:

public class PsuedoClass
{
    public IObservableCollection<IBaseClass> Parents { get; set; }     
}
 
public class Parent : IBaseClass
{
    public String Name { get; set; }
    public IObservableCollection<IBaseClass> Children { get; set; }
    public IDictionary<string, string> OtherData { get; set; }
}
 
public class Child : IBaseClass
{
    public String Name { get; set; }
}
 
public interface IBaseClass
{
    String Name { get; set; }
}

Now obviously this code isn't complete, but I wanted to give you an idea of the basic structure. Now I want to display this in a TreeListView where each row has a choice of a couple templates, one template for if its a Parent, the other if its a child. And then I want the columns to be bound to the "OtherData" in the Parents class (Meaning, I want the Header to be the "Key" in the dictionary and the data to be the "Value" of the dictionary, or some similar structure).

What I would like to be able to do is something like this:
<UserControl ... >
    <UserControl.Resources>
        <DataTemplate x:Key="ChildItemTemplate">
            <TextBlock Text="{Binding Name}"/>         
        </DataTemplate>
     
        <HierarchicalDataTemplate x:Key="ParentItemTemplate"
                                  ItemsSource="{Binding Children}"
                                  ItemTemplate="{StaticResource ChildItemTemplate}">
            <TextBlock Text="{Binding Name}"/>
             
            <SomeHowDisplayTheRestOfTheColumns/>
             
        </HierarchicalDataTemplate>
    </UserControl.Resources>
 
    <telerik:RadTreeListView ItemsSource="{Binding Parents}"
                             Columns="{Binding SomePropertyThatExposesOurColumns}"
                             ItemTemplate="{StaticResource ParentItemTemplate}">   
    </telerik:RadTreeListView>
</UserControl>


Any insight into if this is possible with examples would be greatly appreciated. Thanks in advance.
Dimitrina
Telerik team
 answered on 23 Jan 2013
7 answers
177 views

Hi,
Jag have an existing Custom Theme for RadGridView which is not entire correct because in
<ControlTemplate x:Key="GridViewGroupPanelItemTemplate" TargetType="grid:GridViewGroupPanelItem">
Content
="{Binding Path=DisplayContent}" doesn't get any value. I think it something is missing in our GridViewTheme.xaml. Would be very grateful for any tip.
Best regards
Elena


<ControlTemplate x:Key="GridViewGroupPanelItemTemplate" TargetType

="grid:GridViewGroupPanelItem">

 

  <StackPanel x:Name="PART_GroupPanelItemStackPanel" Orientation="Horizontal"
    VerticalAlignment="{TemplateBinding VerticalContentAlignment}" 
        Background="Transparent">
    <Grid HorizontalAlignment="{TemplateBinding HorizontalContentAlignment }"> 

        <Grid.RowDefinitions>
            <RowDefinition MinHeight="4" Height ="Auto" /> <RowDefinition />
        </Grid.RowDefinitions>

        <Path Name="PART_InsertionPoint" Grid.Row="0" Visibility="Collapsed"
        
Fill="{StaticResource GridView_IndicatorPrimaryColor}" Stretch="Fill" 
        
VerticalAlignment="Top" HorizontalAlignment="Center" Width="6.414" 
        Height
="4.677" 
        Data
="M206.66812,170.31108 L212.08199,170.31108 209.36058,173.98834 z" />
        
<Grid x:Name="PART_ConnectingLine" Visibility="Visible" Grid.Row="1" 
        Margin
="{TemplateBinding Padding}">
            <Path Fill="{StaticResource GridView_IndicatorSecondaryColor}" 
            Stretch
="Fill" Stroke="{x:Null}" Width="4" Height="7"  Margin="1,2,0,0"
            Data
="M0,0 L1,0 1,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1,6 1,7 0,7 z"/>

            <Path Fill="{StaticResource GridView_IndicatorPrimaryColor}" Stretch="Fill"
            Stroke="{x:Null}" Width="4" Height="7" 
            Data
="M0,0 L1,0 1,1 2,1 2,2 3,2 3,3 4,3 4,4 3,4 3,5 2,5 2,6 1,6 1,7 0,7 z"/>

        </Grid>
    </Grid>
    <Border BorderBrush="{StaticResource GridView_HeaderInnerBorder}"
       Background
="{TemplateBinding Background}" BorderThickness="1" CornerRadius="3" 
        
Margin="5,0">
        <grid:GridViewGroupPanelCell Background="Transparent" BorderThickness="0" 
       
Content="{Binding Path=DisplayContent}" Foreground="Black" Padding="12,0,12,2" 
       
SortDirection="{Binding Path=SortDirection}"/>
    
</Border>
</StackPanel>
</ControlTemplate

>

 

 

 

 

Oliver
Top achievements
Rank 1
 answered on 23 Jan 2013
2 answers
138 views
Telerik Support,

When a user has the DropDown to a ComboBox open, it becomes impossible to focus/click on any other element (seemingly in the entire program) until the DropDown is closed.  I understand that this is the standard behavior even with the regular WPF ComboBox control, so what I'm wondering is if there's any way to change this behavior.

Thanks,

Kyle
intellitechcorporation
Top achievements
Rank 1
 answered on 22 Jan 2013
1 answer
217 views
I am binding my radtreeview to a collectionviewsource that is grouped on the employee's last name initial (A, B, C, etc.).  I also bind the selecteditem to a property on my viewmodel which is of type Employee.  The problem is that when I select the parent node (A, B, C, etc.) it fails validation and gives me a red border.  I want to override that and disable it.

Private _selectedItem As Library.EmployeeInfo
Public Property SelectedItem As Library.EmployeeInfo
    Get
        Return _selectedItem
    End Get
    Set(ByVal value As Library.EmployeeInfo)
        If IsBusy Then Return
        _selectedItem = value
        NotifyOfPropertyChange(Function() SelectedItem)
        Events.Publish(New SelectionChangedEvent(Of EmployeeListViewModel, Library.EmployeeInfo) With {.Source = Me, .Obj = Me.SelectedItem})
    End Set
End Property


    <Grid.Resources>
        <bengenconv:SingleCharacterConverter x:Key="SingleCharacterConverter" />
        <CollectionViewSource x:Key="Emps"
                              Source="{Binding Model}">
            <CollectionViewSource.SortDescriptions>
                <componentModel:SortDescription PropertyName="Lastname" />
                <componentModel:SortDescription PropertyName="Firstname" />
                <componentModel:SortDescription PropertyName="EmployeeIdNumber" />
            </CollectionViewSource.SortDescriptions>
            <CollectionViewSource.GroupDescriptions>
                <PropertyGroupDescription PropertyName="Lastname"
                                          Converter="{StaticResource SingleCharacterConverter}" />
            </CollectionViewSource.GroupDescriptions>
        </CollectionViewSource>
        <DataTemplate x:Key="EmployeeTemplate">
            <TextBlock>
                <TextBlock.Text>
                    <MultiBinding StringFormat="{}{0}, {1}">
                        <Binding Path="Lastname" />
                        <Binding Path="Firstname" />
                    </MultiBinding>
                </TextBlock.Text></TextBlock>
        </DataTemplate>
        <HierarchicalDataTemplate x:Key="GroupsTemplate"
                                  ItemsSource="{Binding Items}"
                                  ItemTemplate="{StaticResource EmployeeTemplate}">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="{Binding Name}"/>
                <TextBlock Text="{Binding ItemCount, StringFormat='  ({0})'}"
                           FontSize="11"
                           FontStyle="Italic"
                           Foreground="DimGray"
                           VerticalAlignment="Center"/>
            </StackPanel>
        </HierarchicalDataTemplate>
    </Grid.Resources>
    <telerik:RadTreeView x:Name="xTreeView"
                         ItemsSource="{Binding Source={StaticResource Emps}, Path=Groups}"
                         Grid.Row="1"
                         Padding="5"
                         BorderThickness="0"
                         IsEditable="False"
                         SelectionMode="Single"
                         SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
                         ItemTemplate="{StaticResource GroupsTemplate}"
                         IsSingleExpandPath="True"
                         IsExpandOnSingleClickEnabled="True">
    </telerik:RadTreeView>
</Grid>
cman
Top achievements
Rank 1
 answered on 22 Jan 2013
1 answer
157 views
hi,

I am using RadDateTimePicker (version: RadControls for WPF Q3 2012) in my WPF app.  The RadDateTimePicker looks fine when I have the TimeInterval property set as "0:30", but when I set it to "0:05", the time selector part of the RadDateTimePicker becomes blank. please see my attachment. Any idea how to resolve that?

thanks in advance
Boyan
Telerik team
 answered on 22 Jan 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)
WatermarkTextBox
DesktopAlert
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
Security
VirtualKeyboard
HighlightTextBlock
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?