Telerik Forums
UI for WPF Forum
3 answers
131 views
Hello,

I am wondering if the following scenario is possible and how I would implement it.  Basically what I want to do is bind the list of items in a GridViewComboBoxEditor to a property of the data record for that row.

I have an object model that looks similar to this:

public class SomeObject
    public Field SelectedField { getset; }
    public string SelectedString { getset; }
 
public class Field
    public string[] ListOfAllowedItems; 

I have a grid that displays a list of SomeObject items, each of which contains a Field.  Depending on the Field the user selected, the list of items in another column needs to change according to a list defined on the Field object.

Any help would be greatly appreciated.

Thanks,
Joel
Hristo Deshev
Telerik team
 answered on 23 Dec 2008
4 answers
94 views
Hi..
Does the Carousel support displaying and data binding of multiple tables , lIke a Customer and Products relationship?

I can bind a DataTable to the Carousel but how do I Bind at DataSet and the individual tables ?
My radCarousel doesn't have a DataMember property..?  What am I missing?  Thanks again for your help!

 

Jon
Top achievements
Rank 1
 answered on 22 Dec 2008
5 answers
102 views
My understanding is that what is available in RadControls for Silverlight should be also available in RadControls for WPF. Is it correct?
Valentin.Stoychev
Telerik team
 answered on 20 Dec 2008
3 answers
177 views
How do you modify the path at design-time in visual studio?
thanks
Rosi
Telerik team
 answered on 19 Dec 2008
2 answers
104 views
Hi..
How do I return my row values from the DataRecord object ?    Thanks Again!!

I'm using a converter class - as you suggested to conditionally format data...

public

 

object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

 

{

 

 

// If the Lastname field in my datarow  begins with "A" - then display an A ICON......      


 

 

 

if (((Telerik.Windows.Data.DataRecord)value).Data.ToString()=="A")

 

{

 

return "A.jpg";

 

}

 

return String.Format("{0}.jpg", ((Telerik.Windows.Data.DataRecord)value).Data);

 

}

Rosi
Telerik team
 answered on 19 Dec 2008
8 answers
318 views
How i can select row in RadGridView in SelectionChanged event (i want to cancel selection)? I set SelectedItem and CurrentItem, but grid not display that this item is selected.

May be i can make necessary inspections before call SelectionChanged (but i can find method, which call before)?

Could you help me?!


Rosi
Telerik team
 answered on 18 Dec 2008
2 answers
92 views
Hi..
How can I add conditional formatting to the stackpanel in the Carousel Panel?

For Example if the Person's Lastname starts with 'A'  - I'd like to show an a graphic.... 'A.jpg'
If Lastname starts with 'B" - 'B.jpg'... thanks in advance


 

 

<StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" >

 

 

 

<Label Content="{Binding Path=Data.FirstName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

<Label Content="{Binding Path=Data.LastName}" Foreground="#ff8FB3FF" FontSize="12" />

 

 

 

</StackPanel>

 

 

Jon
Top achievements
Rank 1
 answered on 18 Dec 2008
1 answer
146 views
Hi,

using GridView I noticed a strange behavior.
As a coder I work most of the time in XAML Source.
By the way - also if I make these changes through the Property Pane it get the same result.

No I define a GridViewColumn like this:

<

 

telerik:GridViewDataColumn Width="40" HeaderText="Level" UniqueName="Level" DataType="{x:Null}" />

 

When I change the HeaderText nothing happens in Designer View.
After a rebuild I see what I have changed.

Using the builtin Controls (WPF controls) every change is reflected at the very moment.
This is very handy when it comes to "does it still fit" things.
For an example I think "Level of the Member" would be a good idea for the HeaderText.
I type it in - and there is still the old text "Level".
So before I can switch to the next column I have to run a build to see the changes in designer.
I find out -- that "Level ot the Member" is to much - I try "Memberlevel" - and again run a build...

Is this behaviour by desing, or is it some kind of a bug?

Manfred
Rosi
Telerik team
 answered on 18 Dec 2008
2 answers
85 views
I don't want the reordering of columns in my grid, how can I achieve this?
akjoshi
Top achievements
Rank 1
 answered on 18 Dec 2008
1 answer
224 views
I am binding RadTreeView with an observable collection and following is the HeirarchicalDataTemplate:

<HierarchicalDataTemplate DataType="{x:Type amms:Node}" ItemsSource="{Binding Children}" >
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path=NodeText, Mode=TwoWay}"
                                   Visibility="{Binding Path=IsEditCompleted, Converter={StaticResource boolToVisibleConverter}, Mode=TwoWay,
                                   NotifyOnTargetUpdated=True}"  TargetUpdated="uxTextBlock_TargetUpdated">
                        </TextBlock>
                    </StackPanel>
</HierarchicalDataTemplate>

When I initially set the RadTreeView's  datacontext, binding defined in HierarchicalDataTemplate works well for all the rendered items
textblock visibility changes as IsEditCompleted changes and uxTextBlock_TargetUpdated also hits.

But when i add an item to observable collection "Children",  it is being rendered in the RadTreeView at proper position but IsEditCompleted changes and uxTextBlock_TargetUpdated does not get hit. It looks like binding is not set up properly for newly added item via observable collection.

Please check the issue and let me know if it is a known issue and if there is any workaround.

Thanks
Sonal




Miroslav
Telerik team
 answered on 18 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?