Telerik Forums
UI for WPF Forum
1 answer
146 views
Good time of day.
I need to get the GridView and filter the filter to print.
why in the debug properties I see:
http://i49.tinypic.com/20nozt.jpg
Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;
Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;
Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;

And in the name space they are not.
Why not? 
public Telerik.Windows.Controls.GridView.DistinctValuesFilterDescriptor DistinctFilter;// Does not type in namespace
public Telerik.Windows.Controls.GridView.MemberColumnFilterDescriptor filter;// Does not type in namespace
public Telerik.Windows.Controls.GridView.FieldFilterDescriptor FieldFilter;// Does not type in namespace
public Telerik.Windows.Data.FilterOperator x ;
public Telerik.Windows.Data.FilterCompositionLogicalOperator x ;
And those listings there, but the content is missing. 

How do I read a different filter GridView?  What should I do? 

Rossen Hristov
Telerik team
 answered on 14 May 2012
3 answers
161 views
Hi,

I'm using a RadTreeView control and have got the check list feature to work for me nicely, but am having problems with items in the tree that are disabled.

The tree is dynamically created and uses certain conditions to make some nodes disabled, and set to checked. The tree view is working against a collection of items and if an item from the tree is in that collection, then users should not be able to click on it, or change it's checked status.

the disabled part works perfectly, but when a parent node is clicked, it automatically changes the checked value on all child nodes, including the disabled ones.

is there any way to stop this from happening?

thanks,
nemanja
Petar Mladenov
Telerik team
 answered on 14 May 2012
3 answers
128 views
Hello,

I have an application with several gridviews on separate tabs.  I would like to be able to export the contents of the grids to Excel in a way that each grid goes to a separate tab of the Excel file.  Is there a straightforward way to do this?

Also, I need to add other rows of data to the spreadsheet that are not coming from the gridviews.  Can this be done?
Dimitrina
Telerik team
 answered on 14 May 2012
1 answer
103 views
Hello,

Found a potential bug in the private DataFormDataField.SetLabelStyle() method.  Basically, a user of the DataForm control can cause an exception of their lable content is not the same type as that specified in the LabelStyle's TargetType.  As a fix, we can just check the types and apply if the are compatible.  Here is how to fix the bug:

1) In the 'Telerik.Windows.Controls.DataFormDataField' class, you will see the SetLabelStyle method defined as:
private void SetLabelStyle() {
    FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement;
    if (label != null &&
        this.ParentForm != null &&
        this.ParentForm.LabelStyle != null) {
        label.Style = this.ParentForm.LabelStyle;
    }
}

Replace this method with:
private void SetLabelStyle() {
    FrameworkElement label = this.GetTemplateChild("PART_Label") as FrameworkElement;
    if (label != null &&
        this.ParentForm != null &&
        this.ParentForm.LabelStyle != null &&
        this.ParentForm.LabelStyle.TargetType.IsCompatibleWith(label.GetType())) {
        label.Style = this.ParentForm.LabelStyle;
    }
}

Please use this fix until Telerik gets around to correcting the bug.

- Rashad Rivera, Omegus Prime, LLC
Ivan Ivanov
Telerik team
 answered on 14 May 2012
10 answers
213 views
Below are some class definitions.  My property grid is named pg

pg.Item = new Parent { Child = new ConcreteChild() };

The property grid will show the Child Property, the displayname attribute is ignored and only properties of the ancestor class are shown.  If I trap the AutoGeneratingPropertyDefinition event the PropertyType shows as AbstractChild.  It appears the propertygrid is not looking at the instance type of the property.

If I bind directly to an instance of type ConcreteChild, I get all the properties. 

pg.Item = new ConcreteChild(); //this works 



    public class Parent
    {
        public AbstractChild Child { get; set; }
    }
    public abstract class AbstractChild
    {
        public string Name { get; set; }
    }

    [DisplayName("Concrete Child")]
    public class ConcreteChild : AbstractChild
    {
        [DisplayName("New Property")]
        public String NewProperty { get; set; }
    }
Ivan Ivanov
Telerik team
 answered on 14 May 2012
2 answers
282 views
I have a radCarousel bound to an ObservableCollection. On the carousel item I have label with: 
<Label FontSize="18" Padding="0" Content="{Binding Effective_Date, StringFormat=d}" />

When I set the ItemSource to the ObservableCollection the Date is formatted correctly. However when I add an Item to the collection manually the date on the new Item is not formatted. It displays the full datetime string instead of just the date. How can I fix this?
Dev
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
587 views
Hello,

I have a fairly simple tree, but it may contain thousands of items in 5 or 6 levels of depth.  The data collection is bound in MVVM and exists in the view model.  I created a context menu on right click that allows the user to Expand All for a single node, which could potentially open hundreds of child nodes.  When the expand command is executed, the collection is traversed and elements are changed to IsExpanded = true.

What I notice is that my view model command executes very quickly, but then the actual tree control spends quite a long time initializing the items and displaying the levels (can be 30 seconds or longer).  I guess I can live with the long wait, but how do I present and clear a busy indicator when control is lost to the Telerik threads?  Trying to set the busy indicator around the view model command only lasts for a second.

Are there other options for a faster or more visual response from the tree control?

The tree:
<HierarchicalDataTemplate x:Key="TreeObjectTemplate" ItemContainerStyle="{StaticResource containerStyle}" ItemsSource="{Binding ChildNodes}">
    <StackPanel Orientation="Horizontal">
        <TextBlock Text="{Binding DisplayName}" />
    </StackPanel>
</HierarchicalDataTemplate>
 
        <telerik:RadTreeView Grid.Row="0" x:Name="tvTree" ItemTemplate="{StaticResource TreeObjectTemplate}"
                        Margin="0,8,0,4" VerticalAlignment="Top" Padding="0,2,0,10"
                        IsSingleExpandPath="False" IsLineEnabled="True" ExpanderStyle="{DynamicResource ExpanderStyle}"
                        SelectionMode="Single" IsEditable="False" IsDragDropEnabled="False" ItemContainerStyle="{StaticResource containerStyle}"
                        ItemsSource="{Binding tvTreeData}"
                        SelectedItem="{Binding tvSelectedItem, Mode=TwoWay}"
                        MouseRightButtonDown="treeView_MouseRightButtonDown">
            <telerik:RadContextMenu.ContextMenu>
                <telerik:RadContextMenu>
                    <telerik:RadMenuItem Header="Expand All Levels" Command="{Binding ExpandCommand}"/>
                    <telerik:RadMenuItem Header="Collapse All Levels" Command="{Binding CollapseCommand}"/>
                </telerik:RadContextMenu>
            </telerik:RadContextMenu.ContextMenu>
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="PreviewUnselected">
                    <Command:EventToCommand Command="{Binding Path=PreviewUnselectedCommand, Mode=OneWay}" PassEventArgsToCommand="True"/>
                </i:EventTrigger>
                <i:EventTrigger EventName="PreviewSelected">
                    <Command:EventToCommand Command="{Binding Path=PreviewSelectedCommand, Mode=OneWay}" PassEventArgsToCommand="True"/>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </telerik:RadTreeView>

Expand Command:
private void ExpandAllChildren(MyTreeNode node, bool bExpandOrCollapse)
{
 
    foreach (MyTreeNode childNode in node.ChildNodes)
    {
        ExpandAllChildren(childNode, bExpandOrCollapse);
    }
 
    if (node.ChildNodes.Count > 0)
        node.IsExpanded = bExpandOrCollapse;
}
 
private RelayCommand _expandCommand;
public ICommand ExpandCommand
{
    get
    {
        if (_expandCommand == null)
        {
            _expandCommand = new RelayCommand(() =>
            {
                try
                {
                    UICursor = Cursors.Wait;
                    ExpandAllChildren(tvSelectedItem, true);
                }
                catch
                {
 
                }
                finally
                {
                    UICursor = Cursors.Arrow;
                }
            });
        }
 
        return _expandCommand;
    }
}

Thanks for any help.  Bob C.
Zarko
Telerik team
 answered on 11 May 2012
5 answers
84 views
i want to create manual spacing and overlapping of characters is this possible?

i have seen inside some application that the user can change the position of the character with sliders
one for x-axis and one for y-axis.

is this possible ?and how

 
Ivailo Karamanolev
Telerik team
 answered on 11 May 2012
1 answer
78 views
I have data bound to the ItemSource on a RadColumnSparkline within a RadTimeBar which displays fine on a usercontrol.  However, the issue comes in with new visual rendering where the property on the viewmodel is set (for the ItemSource on the RadColumnSparkline) before the usercontrol is loaded.  The binding between the viewmodel and view should be working on both scenarios?
Tsvetie
Telerik team
 answered on 11 May 2012
3 answers
150 views

I’ve problems binding an ObservableCollection<ISpatial> SpatialPolyItemCollection as Source in SqlGeospatialDataReader.

Nothing shows up in the map.

ISpatial is an Interface for a class Spatial containing Wkt to represent the polygon.

<telerik:InformationLayer x:Name="spatialPolyLayer">

   <telerik:InformationLayer.Reader>

        <telerik:SqlGeospatialDataReader x:Name="GeoReader" PreviewReadCompleted="PreviewReadCompleted"

Source="{Binding SpatialPolyItemCollection}"  GeospatialPropertyName="Wkt"      ToolTipFormat="Navn">

                    </telerik:SqlGeospatialDataReader>

       </telerik:InformationLayer.Reader>

</telerik:InformationLayer>

I can make it work in code behind by adding GeoReader.Source = SpatialPolyItemCollection.

Any Ideas how I can make this binding work without the code behind line?

I know that my collection is valid because it works fine if I use the same collection inside a GridView

<telerik:RadGridView x:Name="gridGeometriView"   SelectionMode="Extended"

                                      ItemsSource="{Binding SpatialPolyItemCollection}" FrozenColumnCount="2" SelectionChanged="GridViewSelectionChanged"/>

Evgenia
Telerik team
 answered on 11 May 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
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
Bronze
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
Bronze
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?