4 Answers, 1 is accepted
0
Hi,
Maya
the Telerik team
Did you check out this blog post for a reference ? Is there any difference between the settings in the approach demonstrated there and yours ? Do you want to achieve something similar ? What is the implementation of the business object you want to implement ?
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
newbie
Top achievements
Rank 1
answered on 01 Mar 2011, 03:14 PM
Thank you for your reply.
I am unable to view that blog.
It must be the same one that I tried to view yesterday.
I keep getting a time out error with loading the page:
"The connection has timed out
The server at blogs.telerik.com is taking too long to respond."
I don't know if my requirements are different from the ones outlined in the blog because I can't view it.
I am unable to view that blog.
It must be the same one that I tried to view yesterday.
I keep getting a time out error with loading the page:
"The connection has timed out
The server at blogs.telerik.com is taking too long to respond."
I don't know if my requirements are different from the ones outlined in the blog because I can't view it.
0
Hello newbie,
Maya
the Telerik team
I am sending you the sample project related to the blog post I was referring to.
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
newbie
Top achievements
Rank 1
answered on 01 Mar 2011, 08:28 PM
Thank you.
I fixed my problem by using the GridViewComboBoxColumn's ItemsSourceBinding property.
Originally I was looking to do something like the following:
When you select an item in the ComboBox the DataContext of the "MyControlElement" is changed.
I was hoping to do the same thing within the telerik GridView but I think it's probably impossible since you can't refer to the ElementName of the GridViewComboBoxColumn...
Anyways, I was able to find a solution to my problem.
Thank you.
I fixed my problem by using the GridViewComboBoxColumn's ItemsSourceBinding property.
Originally I was looking to do something like the following:
<ComboBox x:Name="MyListingOptions" ItemsSource="{Binding Source={StaticResource MyResource}, Path=Listings}" SelectedItem="{Binding Path=DataContext, ElementName=MyControlElement}" Width="100" FontSize="12"> <ComboBox.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Listing.Name}"></TextBlock> </DataTemplate> </ComboBox.ItemTemplate></ComboBox><StackPanel x:Name="MyControlElement"> <!-- controls for displaying and manipulating my object/class --></StackPanel>When you select an item in the ComboBox the DataContext of the "MyControlElement" is changed.
I was hoping to do the same thing within the telerik GridView but I think it's probably impossible since you can't refer to the ElementName of the GridViewComboBoxColumn...
Anyways, I was able to find a solution to my problem.
Thank you.