Telerik Forums
UI for WPF Forum
6 answers
124 views

Is there a way to determine the actual position of a RadTileViewItem in a RadTileView? Something like
RadTileView.GetPosition(RadTileViewItem item, out int row, out int column)?

Thanks,
Michael

Tihomir Petkov
Telerik team
 answered on 10 Jan 2010
7 answers
155 views
Hi,

I've created a treeview which has the TriStateMode enabled and defined a callback function when an item were checked/unchecked.

My problem is that I get notified multiple times if a subitem was checked. The first notification is for the top element, and the next notification is for the top level's child element and so on... The last notification is the checked item itself.

Is there a way to determine the item which was checked?

Thanks
Dieter
Valentin.Stoychev
Telerik team
 answered on 08 Jan 2010
1 answer
65 views
Hello :)
Exists pt-br resource for WPF controls?
Valentin.Stoychev
Telerik team
 answered on 08 Jan 2010
2 answers
71 views
I have a gridview, using version 2009.3.1208.35 and MVVM. Style and visibility is applied like the following:
        <telerik:RadGridView.Resources> 
            <Style TargetType="{x:Type GridView:GridViewRow}"
                <Setter Property="Background" Value="#FFFFe1" /> 
                <Style.Triggers> 
                    <DataTrigger Binding="{Binding Path=OperationId}" Value="0"
                        <DataTrigger.Setters> 
                            <Setter Property="Background" Value="#FFFFFF" /> 
                        </DataTrigger.Setters> 
                    </DataTrigger> 
                    <DataTrigger Binding="{Binding Path=OperationStatus}" Value="9"
                        <DataTrigger.Setters> 
                            <Setter Property="Visibility" Value="Collapsed" /> 
                        </DataTrigger.Setters> 
                    </DataTrigger> 
                </Style.Triggers> 
            </Style> 
        </telerik:RadGridView.Resources> 
 
Everything looks fine when the grid is loaded, but, if I scroll vertically, it seems like <Setter Property="Visibility" Value="Collapsed" /> doesn't work anymore. No more rows are collapsed. Is this is a bug, or am I missing something?

Roy
Roy Halvorsen
Top achievements
Rank 1
 answered on 08 Jan 2010
1 answer
138 views
Hello,

The column of my grid is set to SizeToContent, which of course causes my column size to increase to the size of the lengthiest data in the column, which is great. When the row is removed, however, the column remains at that extended size. I would like to be able to have my column automatically "snap back" to the next lengthiest bit of data remaining in the grid, but have been unable to find a way to accomplish this with any of the existing properties. Is there a way to accomplish this kind of behaviour I'm missing?

Thanks,

Dave
Pavel Pavlov
Telerik team
 answered on 08 Jan 2010
3 answers
535 views
I have a RadTabControl with a Custom ContentTemplate. It works fine, and displays the content as I'd expect when first viewing the tab. However, when changing from one tab, back to the original tab, I find that the data inside the content presenter is no longer being displayed. It appears as if the DataContext or ItemsSource binding is no longer being applied as I'd expect.

Below is a short expample which should illustrade what I'm seeing. I'm using MVVM, and the ClosedOrderCol in the code snippet below is an ObservableCollection on the ViewModel.

Any help would be appreciated.

<Navigation:RadTabControl> 
            <Navigation:RadTabControl.ItemContainerStyle> 
                    <Setter Property="ContentTemplate"
                        <Setter.Value> 
                            <DataTemplate>
                                <Grid>
                                   <ContentPresenter Content="{TemplateBinding Content}"/>
                                </Grid>
                            </DataTemplate> 
                        </Setter.Value> 
                    </Setter> 
            </Navigation:RadTabControl.ItemContainerStyle> 
            <Navigation:RadTabItem> 
                    <Controls:RadGridView Grid.Row="1" ItemsSource="{Binding ClosedOrderCol}" IsReadOnly="True"
                        <Controls:RadGridView.Columns>                        
                           <Controls:GridViewDataColumn Header="Closed" DataMemberBinding="{Binding DateClosed}" /> 
                        </Controls:RadGridView> 
            </Navigation:RadTabItem> 
            <Navigation:RadTabItem /> 
<Navigation:RadTabControl> 

Kiril Stanoev
Telerik team
 answered on 08 Jan 2010
7 answers
137 views
How do I select a new row, column[0] when I add it to my grid in code?

 

private void Button_Add_Items_Click(object sender, RoutedEventArgs e)

 

{

 

    Item item = new Item();

 

    i.ItemList.Add(item);

    rgvItems.SelectedItem = rgvItems.Items[rgvItems.Items.Count -1];

    rgvItems.ScrollIntoView(rgvItems.SelectedItem);

 


    //rgvItems.BeginEdit();

 

}



The BeginEdit takes me to the first row and column.

Thanks!
Milan
Telerik team
 answered on 08 Jan 2010
3 answers
259 views
Hello!

I use a Chart of many different line series and I want to take advantage of multiple Y Axis in my chart but it's kind of confusing at some point because you could not tell which axes is related to which line series. It would be very helpful if I could somehow bind the color of the line series with the color of the Y axis label or line label, but it seams that I cannot find a way.
Right now I am trying to create a style for  the AxisTitle that uses the same SolidColorBrush that the line series has (guess what - this is null when I'm trying to get it).


Style axisTitleStyleItem = new Style( typeof( AxisTitle ) );
axisTitleStyleItem.Setters.Add( 
new Setter
  { Property = Control.ForegroundProperty,
    Value = (SolidColorBrush)secondaryLineSeries.Appearance.Stroke } ); 

Maybe I'm not taking the right approach. Help would be welcomed at this point.
Thank you!
Roxana
Dwight
Telerik team
 answered on 08 Jan 2010
1 answer
63 views
We are using version 2009.1.526.35 of the GridView control. In some situations, we are encountering NullReferenceExceptions when the GridView attempts to layout with no items in it. We have found this problem happening under at least 2 scenarios:

1) Calling ApplyTemplate() on the GridView and all of its template children recursively.

2) Clearing/Removing all items from the GridView (in this case it seems to happen randomly - definitely not always).

In both cases, the problem is in the Measure pass and appears to be a problem with the GridView's panel. Looks like it is trying to access an item or the first item in the Grid when it is empty.

1) Is this a known issue?
2) Is it fixed in a newer version of the control?

Stack Trace:

   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgumentargument, ExceptionResource resource)

   at System.ThrowHelper.ThrowArgumentOutOfRangeException()

   at System.Collections.Generic.List`1.get_Item(Int32 index)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.GetChildIndexByPhysicalOffset(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.UpdateFirstVisibleChildIndex(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.SetVerticalOffset(Doubleoffset)

   atTelerik.Windows.Controls.GridView.GridViewVirtualizingPanel.ResetVerticalOffset()

   atTelerik.Windows.Controls.GridView.BaseVirtualizingPanel.MeasureOverride(SizeavailableSize)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Objectarg)

   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()

   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(ObjectresizedCompositionTarget)

   at System.Windows.Media.MediaContext.RenderMessageHandler(ObjectresizedCompositionTarget)

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegatecallback, Object args, Boolean isSingleParameter)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source,Delegate callback, Object args, Boolean isSingleParameter, DelegatecatchHandler)

Vlad
Telerik team
 answered on 08 Jan 2010
2 answers
182 views
Hi Telerik Team,

I'm facing few issues in the Hierarchy  Grid View.

1. When I expand a particular node and scroll down to the end and collapse it back, I see custom formatting applied in the row loaded event of the cells (Text Alignment in particular) gets reset to the default alignment (i.e left), as seen in image1.png.
This doesnt happen when its with in the screen view and it happens only when i scroll, the values in the cells gets scattered and the screen looks awkward.

2. Another connected issue i found during scroll and collapse was the alternate row style applied in design time got applied for all consecutive rows. (image2,png)

3.When I expand a node close to the middle/bottom of the screen and view the data and collapse it back, there is an empty space (apprx 2 rows size)  appearing above that particular node..((Image3.png)
The same thing doenst happen when i scroll up with or with out collapsing the node.
Seems the row content is not redrawn properly.

Expecting a quicker reply.

thanks and regards...
NK

yenkay
Top achievements
Rank 2
 answered on 08 Jan 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?