Telerik Forums
UI for WPF Forum
1 answer
102 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
136 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
275 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
999 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
190 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
817 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
101 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
3 answers
582 views
I am using
ResourceDictionary Source="/PresentationFramework.Classic;V3.0.0.0;31bf3856ad364e35;component/themes/classic.xaml" 
for my application -- how can I can I get radComboBox to use this same style.  I only see the Office ones, Vista, Summer, Window7 themes available from the telerik:StyleManager.Theme

Thanks
Mark
Konstantina
Telerik team
 answered on 12 Feb 2010
5 answers
94 views
Hi,

I have followed the link posted in the forum question here: Previous Telerik Forum Question about installing Telerik objects into VS2008 toolbox to install the WPF components into the VS2008 toolbox however it seems something unusual has happened with a few components.

When I place (for example) a RadRibbonBar onto my form it only shows a bounding box, once deselected from its initial placement you cannot click it to focus it again, furthermore if you run the application it only seems to show 'parts', the same occurs with RadTreeView and RadMenu.

With objects like RadMenu and RadTreeView if i choose to edit the items in the properties tool window of VS it opens the maintain items dialog but the ability to add new items is greyed out.

I have uninstalled, reinstalled and restarted inbetween both VS and Telerik WPF components so many times trying to rectify this problem, I am using Telerik components I downloaded from the members area today, so they are definately the latest version. VS is updated to the latest version.

Please help, I can't program WPF apps with Telerik at the moment!

Thanks

Xavier.
Ivan
Telerik team
 answered on 12 Feb 2010
1 answer
95 views
Hi, I'm trying to figure out how to do this. Is there a method or a property that returns the X and Y coordinates of an item?

Thanks!

EDIT:

I need the coordinates relative to the parent of the RadTreeView and relative to the RadTreeView itself.

Thanks.
Tihomir Petkov
Telerik team
 answered on 12 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?