Telerik Forums
UI for WPF Forum
2 answers
79 views
Hi All,

Whlist I love the style and functionallity of the WPF Telerik components the 1 thing that I like the most is the zoom in - out and slide animation that occurs between pages... How can I replicate this, is this a Telerik component or just some very clever code?

Thanks!

Xavier.
Xavier Hutchinson
Top achievements
Rank 2
 answered on 16 Feb 2010
5 answers
226 views
Hi,

We're trying to do a simple two-level grouping in a RadGridView:

            // Add grouping according to device, then parameter category 
            MainGrid.GroupDescriptors.Add( 
                new GroupDescriptor() 
                { 
                    Member = "OwnerContainer"
                    SortDirection = ListSortDirection.Ascending 
                }); 
            MainGrid.GroupDescriptors.Add( 
                new GroupDescriptor() 
                { 
                    Member = "ParameterCategory"
                    SortDirection = ListSortDirection.Ascending 
                }); 

This has worked great in Q3 2009. Now that we've moved over to Q3 SP2, we're getting an exception when the grid loads:
"Specified method is not supported"

This appears to be associated with a call to a Reset function on a LINQ wrapper to our CollectionView. The CollectionView itself hasn't changed.

Any idea what causes this and how to overcome it?

Thanks,
yonadav
Hristo
Telerik team
 answered on 15 Feb 2010
1 answer
156 views
    public class DataSource : DependencyObject 
    { 
        public List<DataSource> Children { getset; } 
 
        public string Name { getset; } 
 
        public DataSource() 
        { 
            Children = new List<DataSource>(); 
        } 
    } 
    <Window.Resources> 
        <local:DataSource x:Key="DataSource"
            <local:DataSource.Children> 
                <local:DataSource Name="1"
                    <local:DataSource.Children> 
                        <local:DataSource Name="2"
                            <local:DataSource.Children> 
                                <local:DataSource Name="3"
                                    <local:DataSource.Children> 
                                        <local:DataSource Name="4"/> 
                                    </local:DataSource.Children> 
                                </local:DataSource> 
                            </local:DataSource.Children> 
                        </local:DataSource> 
                    </local:DataSource.Children> 
                </local:DataSource> 
            </local:DataSource.Children> 
        </local:DataSource> 
    </Window.Resources> 
    <telerik:RadTreeView ItemsSource="{Binding Path=Children, Source={StaticResource DataSource}}" IsEditable="True"
        <telerik:RadTreeView.ItemTemplate> 
            <HierarchicalDataTemplate ItemsSource="{Binding Path=Children}"
                <TextBlock Text="{Binding Path=Name}"/> 
            </HierarchicalDataTemplate> 
        </telerik:RadTreeView.ItemTemplate> 
        <telerik:RadTreeView.ItemEditTemplate> 
            <DataTemplate
                <TextBox Text="{Binding Path=Name, Mode=TwoWay}"/> 
            </DataTemplate> 
        </telerik:RadTreeView.ItemEditTemplate> 
    </telerik:RadTreeView> 
The above is the smallest reproduction I can find of this issue.
Editing any node (by pressing F2) brings up the TextBox as it should.  However that TextBox is empty and a BindingExpression error occurs (as visible in the output window):

System.Windows.Data Error: 40 : BindingExpression path error: 'Name' property not found on 'object' ''String' (HashCode=557208335)'. BindingExpression:Path=Name; DataItem='String' (HashCode=557208335); target element is 'TextBox' (Name=''); target property is 'Text' (type 'String')

Making the Name property a proper DependencyProperty has no effect.  The DataItem seems to be getting changed.  Curiously, if you change DataSource to NOT extend DependencyObject (ie make it just a CLR object), it works as expected.  I cannot change my real hierarchy this way.  Am I doing something wrong or should I log in PITS?
Kiril Stanoev
Telerik team
 answered on 15 Feb 2010
1 answer
154 views
I am trying to put a margin around the selected item to keep a separation between it and the items on either side.  I have set up a trigger to change the margins but that doesn't seem to be working.  Is there some way to put a margin in between the selected item and other items? So for instance, I would like a consistent 10px space between every item whether it's selected or not.
Milan
Telerik team
 answered on 15 Feb 2010
1 answer
167 views
Hi,

I have a gridview using the </gridView:RadGridView.RowDetailsTemplate> to display finer details about the item in the grid row. This works fine. inside this template I also have a button which has an attached command:

<Button Margin="2,2,2,2" Padding="5,5,5,5" Style="{DynamicResource SimpleButton}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"
                                    x:Name="DeleteTaskButton" FontWeight="Normal" Foreground="#505050" FontSize="14" FontFamily="Corbel"
                                    Content="Delete Task Schedule"
                                    commands:Click.Command="{Binding DeleteTaskCommand}"
                                    commands:Click.CommandParameter="{Binding Id}"/>

Here I can pass the Id of the Item to my backing ViewModel and remove from the collection. However, this currently doesn't work because the DelegateCommand is part of the ViewModel NOT the object being rendered by the DataTemplate. Obviously I could add the command to the object but I don't like it as it gets quite messy, my base object has already had INotifyPropertyChanged added to it. Ideally what I would like is a way have the button command in my ViewModel picking up the command from the DataTemplate, and also if possible I would like to be able to retrieve the SelectedIndex of the GridView.

Thanks, Mark
Rossen Hristov
Telerik team
 answered on 15 Feb 2010
3 answers
332 views
Hi,

maybe i'm blind but i don't find a solution, how to get the value of a certain column after selecting a row.

Documentation of the RadGridView for WPF (SelectionChanged event) :

 

Private Sub radGridViewSelection_SelectionChanged(ByVal sender As ObjectByVal e As Telerik.Windows.Data.SelectionChangeEventArgs)  
        label1.Content = radGridViewSelection.SelectedRecord.Fields("CustomerID").ToString  
End Sub 

I tried to use it as described, but "Fields" isn't a Member of "Telerik.Windows.Data.Record"!?

Thanks for help
Martin

Edit: In another Thread i found, that "CurrentRecord.Fields" doesn't exist anymore in the current release (the documentation is not very helpful). But i still do not understand, how to get the value in a specific column of the selected row.
Vlad
Telerik team
 answered on 15 Feb 2010
2 answers
1.0K+ views
Hi,

I'm getting my data for the GridView from an xml-document, and I'm binding it to the grid just as in the demo-application (in the GetXmlData() method).

However, I cannot seem to figure out how to rebind/refresh the grid programatically.

This is how I've done it so far:
radGridViewDataBinding.FilterDescription = null
radGridViewDataBinding.GroupDescriptions.Clear(); 
radGridViewDataBinding.SortDescriptions.Clear(); 
radGridViewDataBinding.Columns.Clear(); 
radGridViewDataBinding.AutoGenerateColumns = true
radGridViewDataBinding.ItemsSource = null
radGridViewDataBinding.ItemsSource = GetXmlData(); 

Absolutely nothing happens though. I'm sure I'm missing something obvious, but what?
Rikin Patel
Top achievements
Rank 1
 answered on 14 Feb 2010
2 answers
232 views
I am binding my grid to a web service which returns a order status enum. now i have to provide user a combo box in the same row as the order number in which i'll give him an option of --New,Confirmed,Canceled,Rejected-- but the problem is there is no way i can insert static values into combobox. so i need a way to bind my combobox to static values and bind its selectedMemberPath to enum.
Chintan Shah
Top achievements
Rank 2
 answered on 13 Feb 2010
2 answers
971 views
Hi,

I apologize if this is a repost, I did not see a thread already containing it.  

What I'd like to do is to create a window with no borders, and with no header.  Basically when I'm retrieving data, I'd like to show a screen that notifies the user that the application is working.  Once the data has been obtained, I'll simply close the window.

After playing around with the examples and poking around at the control itself, I can set the border thickness = 0, but I can't get rid of the header.  Even if no text is supplied, the blank header section still shows (unlike winforms).

I'm hoping I just missed something minor, any help would be appreciated.

Thanks in advance,

Craig


capsule
Top achievements
Rank 1
 answered on 12 Feb 2010
1 answer
138 views
I have implemented a TileView which has items which contains further TileViews. Currently I'm creating the TileViews and the TileViewItems dynamically from code behind and that looks absolutely great! (Good work!) But now I'm dreaming of manipulating the tree behind. Think of a class like this...

public class MyItem 
  string _shortDescription; 
  string _detailedDescription; 
  ArrayList _childItems; // which contains more items 

And now I have the idea to show it like this:
Header of the TileViewItem: the short description

SmallContent: showing the detailed description
Content: A list of short descriptions from all child items
LargeContent: a TileView showing recursively all it's children as TileViewItems

I have absolutely no idea how to do this using data binding. First question: is this possible? and second: how? :-)

Thanks in advance,
Jan
Tina Stancheva
Telerik team
 answered on 12 Feb 2010
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
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?