Telerik Forums
UI for WPF Forum
4 answers
524 views

<telerik:GridViewDataColumn DataMemberBinding="{Binding HoursValue}" ColumnGroupName="HoursInfo"

HeaderCellStyle="{DynamicResource GridViewHeaderRowStyle1}" Width="100" HeaderTextAlignment="Center">

<telerik:GridViewColumn.Header>

<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">

<TextBlock Text="Hours "/>

<TextBlock Text="{Binding ElementName=chkCompYear, Path=Content}"/> // here binding is not working
or
<TextBlock Text="{Binding Year}"/> // here binding is not working

</StackPanel>

</telerik:GridViewColumn.Header>

</telerik:GridViewDataColumn>

 

<CheckBox Name="chkYear" Content="{Binding Year}" // Here it is working


Model
-----
public string Year {get; set;}

 I can able to bind the data to checkbox which is outside the RadGridview, But I cant bind the header.
Pls help me out to resolve this

 

 

 

Adam
Top achievements
Rank 1
 answered on 19 Jul 2013
1 answer
121 views
Hi,

Is there a way to publish/subscribe messages so that I can implement a communication mecanism between different ViewModels of a View.

Does Telerik MMVM provide this kind of tool.

Thanks in advance
Yana
Telerik team
 answered on 19 Jul 2013
3 answers
194 views
Hi,

How to pass TreeView DataContext to ViewModel for using search in TreeViewItems.
Please take a example.
http://www.telerik.com/help/wpf/radtreeview-how-to-implement-search-filter-sort.html

Thanks.
Steve
Top achievements
Rank 1
 answered on 19 Jul 2013
4 answers
105 views
My team inherited a rather poorly written application which included the use of Telerik controls.  Any view that has a RadGridView control throws the exception as we are locked into the 3.5 framework for now.

I downloaded the demo but the library isn't there as well.

Where can I download the library?
Michael
Top achievements
Rank 1
 answered on 18 Jul 2013
4 answers
324 views
We have a RadGridView (.NET 3.5 2011 Q2SP1) to display a list of equipment.  If equipment is going to be added, then it is displayed with a white background and black foreground.  If it is equipment that already exists, all fields are marked readonly and the entire line is set to be red with white foreground.

In small unit tests we have not had any noticeable problem with the control.  However we have a setup in Training where there are 25 pieces of equipment and room to add 2 pieces of equipment at the beginning of the list and unlimited amount at the end of the list.

When I populate the grid the formatting goes nuts and is totally lost while scrolling.  Attached are three screenshots of the lost formatting:

First screen is when the list originally loads.  Line 1 and 2 formatted correctly. The 3rd and 5th line are correct.  The 4th line is readonly however it is all gray instead of red!!!

Second screen shot is when I've scrolled down and around line 12 all formatting is completely lost.

Third screen shot is scrolled back to the beginning and again all formatting is lost and the second line is completely unreadable.

I need resolution to this issue.  My users in training will freak out if they see this garbage!
Michael
Top achievements
Rank 1
 answered on 18 Jul 2013
3 answers
154 views
Hi!
I need to make a custom shape, but I need to draw it from the codebehind, because it needs to be drawn according to some properties. Also, the drawing will be composed of different geometries and brushes. Any chance I can use StreamGeometry with DrawingGroup somwhere ??
Do I need to override OnRender method of RadDiagramShape ??

Thanks very much for any help you could provide !!

David
Zarko
Telerik team
 answered on 18 Jul 2013
3 answers
130 views
I saw the GridView Commands Telerik example, it's ok when we don't have any hierarchy.
Anyway, in my solution, I need to create/edit parent and children rows, so in a gridview hierachy.

For example, I wan to create a parent row, then it children rows and save them. And I want to edit each cell of parents row or children row.
Is it possible ? For information I don't use Entity Framework and my ItemSource GridView is binded to and observable collection, and I'm using MVVM pattern.

I put a screenshot of my requirement in attachement of the thread.

In advance, thanks for your help !

Regards,
Guillaume
Guillaume
Top achievements
Rank 1
 answered on 18 Jul 2013
4 answers
113 views
Hi Again,
I am using the grouping feature of the GridView and have just discovered some odd behavior when editing.  I am using version 2013.2.611.40.
Refer to the attached image for an illustration of the behavior.  My GridView has two columns, the first of which is read only.  When I tab to the second column and hit F2 it enters edit mode as expected.  When I tab out of the cell, the next row is repositioned as the top row in the group and the previous first row is now at the bottom of the group.  This behavior persists with each tab.  In addition if I escape (twice) out of the edit all keyboard navigation ceases to work; tab (shift tab) and all arrow keys.  If I use the mouse to move to another cell, the navigation begins to work again; however the repositioning of the rows continues.  I have been unable to reproduce this behavior in the Telerik Demos, so I am at a total loss as to what could be causing this.  Obviously, I must find a solution to this.  Below is the xaml for the GridView. 

<telerik:RadGridView x:Name="AccountGroupsGridView"
                     HorizontalAlignment="Stretch"
                     VerticalAlignment="Stretch"
                     Width="{Binding ElementName=LayoutRoot, Path=ActualWidth}"
                     Height="{Binding ElementName=LayoutRoot, Path=ActualHeight}"
                     ScrollViewer.VerticalScrollBarVisibility="Auto"
                     ScrollViewer.HorizontalScrollBarVisibility="Auto"
                     IsSynchronizedWithCurrentItem="True"
                     AutoGenerateColumns="False"
                     VerticalGridLinesBrush="Transparent"
                     AlternationCount="2"
                     AlternateRowBackground="AliceBlue"
                     CanUserDeleteRows="True"
                     CanUserInsertRows="True"
                     ColumnWidth="*"
                     ShowGroupPanel="False"
                     RowIndicatorVisibility="Collapsed"
                     Focusable="False"
                     ItemsSource="{Binding Path=AccountGroups}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn x:Name="AccountGroupCodeColumn"
                                    UniqueName="AccountGroupCodeColumn"
                                    Header="{x:Static localProperties:Resources.Account_Group_Code}"
                                    DataMemberBinding="{Binding Path=AccountGroupCode,
                                        Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    Width="200"
                                    IsReadOnly="False"
                                    IsFilterable="False"
                                    IsGroupable="False"
                                    IsSortable="False"
                                    IsResizable="False"
                                    ShowFieldFilters="False"
                                    ShowFilterButton="False"
                                    ShowDistinctFilters="False">
        </telerik:GridViewDataColumn>
        <telerik:GridViewDataColumn x:Name="DescriptionColumn"
                                    UniqueName="DescriptionColumn"
                                    Header="{x:Static localProperties:Resources.Description}"
                                    Width="*"
                                    DataMemberBinding="{Binding Path=Description,
                                        Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    IsFilterable="False"
                                    IsGroupable="False"
                                    IsSortable="False"
                                    ShowFieldFilters="False"
                                    ShowFilterButton="False"
                                    ShowDistinctFilters="False">
        </telerik:GridViewDataColumn>
    </telerik:RadGridView.Columns>
    <telerik:RadGridView.GroupDescriptors>
        <telerik:GroupDescriptor Member="AccountCategory.CategoryName" />
    </telerik:RadGridView.GroupDescriptors>
 
</telerik:RadGridView>



Note: In the image you'll notice that I have restyled to look of the GridView; however all I did was change brushes and did not introduce any new behavior. 

Thanks in advance,
Steve
Steve
Top achievements
Rank 1
 answered on 18 Jul 2013
1 answer
330 views
Hi,
We have a requirement of binding the RadGridView with dynamic data.  Whenever a new data comes in, I am assigning that data like this
public ICollectionView SampleView{get;set;}

// ViewModel where dynamic data gets updated.
this.SampleView =new CollectionViewSource { Source = dummyCollection}.View;

In XAML
<telerik:RadGridView Grid.Row="0"
 
 ItemsSource ="{Binding SampleView}" 
/>
This is the way I am binding the itemssource, but the UI is not getting bound. Kindly help.
Dimitrina
Telerik team
 answered on 18 Jul 2013
1 answer
84 views
Hi,

I'm using Prism and MEF to inject my views into RadPanes.  Everything works great, with one exception... if a pane is unpinned (i.e. it is just a tab) when the application starts up, when I mouse over the tab or click to pin, the pane has no content.  I can pin/unpin a pane that already has content without issue.

It's a reasonable guess that because the pane is not active on startup, no content is injected, and then it doesn't know to inject the content on mouse-over or when pinning that pane.

What event at the pane level can I track to know when a pane is now being displayed from a hidden state (both on mouse over, and on click)?  In this way I think I could detect that a pane has no content and request a navigation to that region.

Alternatively, is there a way to have even hidden or unpinned panes be 'Active' so they load content?

George
Telerik team
 answered on 18 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?