Telerik Forums
UI for WPF Forum
12 answers
1.1K+ views

Ok,

Getting closer to having the grid beaten into shape. Just two more things to solve. In this post, let's deal with detecting the change of an underlying data record.

The grid is clearly NOTICING the record data changes, as they are reflected in real time. If I change the data via my detail window, the grid column updates instantly and automatically. However, the grouping is not re-evaluated, so if the change would place the row in a different group it does not move.

I need to detect the data change, and then re-group the grid so that this change happens. However neither SourceUpdated() or DataContextChanged() fire – so I am clearly looking in the wrong places :)

Any hints?

 

Ken

Kenneth Jamieson
Top achievements
Rank 1
 answered on 27 Oct 2009
2 answers
162 views
Hi i have a grid containg a combobox column,i had a few research for databinding in a template,but i can see databounded objects in my column ,whats wrong

Gridview is databound manually in runtime from EntityFramework,i cant see data aboute row groups in gridview column

//Gridview
<telerik:GridViewColumn  CellTemplate="{DynamicResource Cell_RouteGroup}" Header="Group" Width="180" DataContext="{Binding RouteGroupDataSource}"></telerik:GridViewDataColumn>

//Template
    <UserControl.Resources>
        <DataTemplate x:Key="Cell_RouteGroup">
            <telerik:RadComboBox Height="29"  Width="118" Foreground="Black"  DisplayMemberPath="GroupName" SelectedValuePath="RouteGroupID" ItemSource={Binding RouteGroupSource}  SelectedValue="{Binding RouteGroupID}" />
        </DataTemplate>
    </UserControl.Resources>

//C#
 public IOrderedQueryable<Routes_Groups> RouteGroupDataSource
        {
            get { return Loader.TEX.Routes_Groups.OrderBy(p => p.GroupName); }
        }


amirnet
Top achievements
Rank 1
 answered on 27 Oct 2009
4 answers
293 views
All,

   I am not sure how to configure my RadGridView's tab indexes (AKA TabStop), so the focus remains in the row details that I constructed.  Basically, for 508 compliance, if I can make the tab index iterate within the row detail instead of jumping back up to RadGridView cells, then it will pass compliancy.  Anyone have any suggestions? 

- Rashad Rivera
  www.omegusprime.com
Hristo
Telerik team
 answered on 27 Oct 2009
5 answers
193 views
Hi,

I am using this treeview in the way same as the demo sample of Organization, Department, Person. How can I move the vertical scrollbar to fit the area.

Thanks,

Tao
Bobi
Telerik team
 answered on 27 Oct 2009
2 answers
142 views
Hi,

I am applying a filter programmatically to a Telerik GridView so that only those records which match the selection
should be shown. My predicate seems to be filtering the results correctly but my source collection is never filtered. Here is my
sample code:

//Setting Data Context here

 

internal void BuildReportObjectCollection()

 

{

 

List<ReportObjectEntity> reportObjectCollection =

 

Presenter.buildReportObjectCollection();

SingleObjectList.DataContext = reportObjectCollection;

}


//Use the list of Guids to filter my collection using
//the predicate here

 

 

public void Show(List<Guid> reportObjectList)

 

{

selectdReportObjectCollection = reportObjectList;

 

if (selectdReportObjectCollection != null)

 

{

 

if (SingleObjectList.ItemsSource != null)

 

    {

 

     // filter

 

 

 

 

    collectionView =

CollectionViewSource.GetDefaultView(SingleObjectList.DataContext);

 

    collectionView.Filter =

new Predicate<object>(FilterForSelectedReportObjectList);

 

    }

}

}


 

public

 

bool FilterForSelectedReportObjectList(object item)

 

{

 

ReportObjectEntity reportObject = item as ReportObjectEntity;

 

 

if (reportObject != null && this.selectdReportObjectCollection.Contains(reportObject.ReportObjectID))

 

{

 

return true;

 

}

 

else

 

 

 

 

{

 

return false;

 

}

}

//The XAML is pretty standard for the GridView,  ItemsSource = {Binding}

Does anyone know what is the issue here?


Thanks,

Namir Ahmed
Top achievements
Rank 1
 answered on 26 Oct 2009
1 answer
134 views
Hi,
how can I bind data to ChartArea? It doesnt have SeriesMapping property.

I have a chart that have 3 chart areas. I want to bind the same collection (Observable collection of ViewModels) to these areas, but each area will display different property from ViewModel. Or is making 3 Charts instead of 3 ChartAreas a better approach? (but then i would loose the fancy background).

Second question.. can I save ChartArea to picture or this is possilbe only for charts?

Thanks
Giuseppe
Telerik team
 answered on 26 Oct 2009
2 answers
245 views
I am dynamically generating Tab like:
  RadTabItem itemToAdd = new RadTabItem()
                    {
                        Header = pnl,
                       ToolTip="RevKey : " + _revKey,
                        Content = newAudit,
                        Padding = new Thickness(10, 5, 10, 5),
                     };

here newaudit is some usercontrol which have agains tabs inside.
So,problem is that I am assigning tooltip="revKey=......" to Top control(itemToAdd ) tab and it show the tooltip to newAudit control tab's also as well as  for newaudit tab content (textbox,combox).

Bhavin
Top achievements
Rank 1
 answered on 23 Oct 2009
1 answer
44 views
When i have a few columns at the start of my grid, and i horizontally scroll to the last column, after i've scrolled back to the start, the Filtering icons have vanished from the column headers of the columns that were scrolled out of view.

Before and after shots attached. In between these two screenshots, all i have done is scrolled to the right, and then returned back.

I'm using the WPF Q3 Beta 2, not sure if this issue existed before then.
Rossen Hristov
Telerik team
 answered on 23 Oct 2009
1 answer
91 views
Hello all. I try to use RadTreeView but I can't  catch events: PreviewDrop and Drop. But PreviewDragStarted and other Drag events I catch. And UI works successfully.
Miroslav
Telerik team
 answered on 23 Oct 2009
1 answer
45 views

Hi,
I am new to Telerik WPF Controls,
I need to convert some Silverlight stuff to WPF.
I heard that "All the classes or controls in Silverlight has equal classes or controls in WPF".
But when i am trying to do it,i was not able to find some similar controls for WPF.

I will be greatfull if i get a mapping between the Silverlight and WPF controls.

For Eg.
(1) In silverlight,<HierarchicalDataTemplate> is in assembly=Telerik.Windows.Controls
but for WPF it is not there, may be due to <HierarchicalDataTemplate>
is present directly in WPF.

 

 

 

(2) in silverlight the folowing code is used what will be the equivalent code in WPF?.

xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"

<radDock:RadDocking.DocumentHost>
    <radDock:RadSplitContainer>
        <radDock:RadPaneGroup x:Name="DocumentHostRadPaneGroup">
        </radDock:RadPaneGroup>
    </radDock:RadSplitContainer>
</radDock:RadDocking.DocumentHost>

 


 

 

 

 

Miroslav
Telerik team
 answered on 23 Oct 2009
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?