Telerik Forums
UI for WPF Forum
3 answers
263 views
In WPF, WindowsFormsHost control will always draws ontop of everything in the same WPF window.
In docking, this problem happens when the floating panes move over the Pane that contain WindowsFormsHost Control.
But, if the floating panes are the separate WPF window, this problem will be solved.

Would you consider to change the design so that the floating panes can draw ontop of the WindowsFormsHost Control?
I think many of us need this a lot when doing migration.

Thanks.

Ching-Yen
Top achievements
Rank 1
 answered on 03 Nov 2009
6 answers
333 views
Hi

I'm looking for an example of binding an observable collection to a radChart in xaml.

This is an app i'm playing around with and it supplies its data to the view using the MVVM pattern.  For the life of me i cannot find an example of how to do this.  Any example i come across has data hard coded into the xaml which i find really annoying - why not use northwind/adventureworks to show these examples?

I have a observable collection with products and quantities all i want to do is show the quantities for each product on a chart.  This will work if i just bind the itemsource of the chart to the observable collection.  but i want to show the product name along the x-axis and also in the legend.

Can anyone give me an example?

Nice controls by the way - just finding it hard to find info in how to use them in MVVM app.

It would be nice if you could have examples that pulled data from a database i.e. Nortwind/adventureworks this would surely help a lot of beginners like myself.

Thanks
Paul 




Dwight
Telerik team
 answered on 03 Nov 2009
3 answers
84 views
When I look at all of the WPF examples I see the XAML pages, but when i click to see C# pages nothing happens... Both in
IE 8.0.6001.18828
and
Firefox
3.0.8

Thanks !
Milan
Telerik team
 answered on 03 Nov 2009
9 answers
214 views
Hi,

Is there any way to bind to the CheckState of an Item in the TreeView?

Cheers

Justin Taylor
Tihomir Petkov
Telerik team
 answered on 02 Nov 2009
1 answer
271 views
is there a way to remove the scroll bars on a combox dropdown.  I just want the dropdown to be large enough for all the items.  I only have 1 or 2 too many items, and would rather have a larger dropdown then have scroll bars
Valeri Hristov
Telerik team
 answered on 02 Nov 2009
3 answers
261 views
Hi,

I would like to do some basic customizations to the Telerik GridView. I am using the Office_Silver theme  

1. Remove all gridlines from the Telerik GridView - including the column headers

2. Set the highlight color for the row

3. Customize the alternating background color
          Already done using the AlternateRowStyle property on RadGridView

Can someone please advise me how I can make these customizations

Thanks
Namir


            
Kalin Milanov
Telerik team
 answered on 02 Nov 2009
5 answers
232 views
Hi.
I have TreeView like:
A
  AA
  AA
B
  BB
  BB
C
  CC
  ...
Drag/drop is only allowed inside of its group. Ex: AA can be moved anywhere inside A group, BB can be moved anywhere inside B group. Initialy i was stopping drop using previewDragEnded. It worked only in situations when drop position was "inside". If drop position was "after" or "before" RadTreeViewDragEndedEventArgs e.TargetDropItem was always null even though if I check TreeView.TargetDropItem was set correctly (I guess it is a bug? ). I couldnt check it cause TreeView.TargetDropItem is not accesible from code.
My current approach is traverse the tree and set IsDropAllowed property on every item. The problem here are elements whose drop position is "after" or "before" which I try to drop after or before root elements (A, B, C). These root elements doesn't have parent elemnent so I don't see any way to set there IsDropAllowed . So behaviour I have now is: after I drag AA after B I got:
B
   BB
   BB
   AA
I thought about adding additional root element and add current root elements to him but in this case I would have to hide (don't display) the new root element otherwise I would have the same problem as before.

Any help or suggestions would be appreciated.

Best Regards,
Jarek (Xiasma)


Bobi
Telerik team
 answered on 30 Oct 2009
2 answers
442 views
I am trying to wire-up a click event to a checkbox column inside the RadGridview.  My problem is that when I handle the click event of the check box the grid has not registered the selected item yet, so I can't access the record to obtain the value from another column for the record which was checked.  Here is the click event code:

        private void CheckBox_Click(object sender, RoutedEventArgs e)  
        {  
            CheckBox chkbox = (CheckBox)sender;  
            ApplyPaymentEntity payment = new ApplyPaymentEntity();  
            payment = (ApplyPaymentEntity)this.grdPmtDetail.SelectedItem;  
 
            if (chkbox.IsChecked == true)  
            {  
                AppliedAmount = AppliedAmount + (decimal)payment.BillBalance;  
            }  
            else  
            {  
                AppliedAmount = AppliedAmount - (decimal)payment.BillBalance;  
            }  
  
        }  

The SelectedItem property is null.  So I need to handle the click event after the grid has processed the click.  Just not quite sure yet how to do this.

Thanks,
-SId.
Sid
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
95 views
I have discovered a GridViewComboBoxColumn, NullReferenceException that is reproducible with the Examples_WPF application. Using the GridView Editors example, if you drop down the country combo box, then select another row and try to drop down the country list, a NullReferenceException is thrown. The exception is thrown even if you try to drop down the list in the same row that you started with. I am trying to use the GridViewComboBoxColumn in my app in a similar way that the example shows and am having the same problem. I am using the latest internal build (2009.2.1023.35). The Telerik.com online demo does the same thing.

Thanks,
Kevin
Pavel Pavlov
Telerik team
 answered on 30 Oct 2009
1 answer
114 views
I have RadTabcontrol and whenever user click on New button I want to add new tab containing usercontrol everytime.I have successfully achieved this at run time but due to some Performance issue I want to achieve this in xaml
I tried:
 <Setter Property="telerikNavigation:RadTabControl.ItemContainerStyle">
                                        <Setter.Value>
                                            <Style TargetType="telerikNavigation:RadTabItem">
                                                <Setter Property="Foreground" Value="Black"/>
                                                <Setter Property="FontFamily" Value="Tahoma"/>
                                                <Setter Property="BorderThickness" Value="0"/>
                                                <Setter Property="BorderBrush" Value="Transparent"/>
                                                <!--<Setter Property="Content" >
                                                    <Setter.Value>
                                                        <ctrl:ctrlReview  x:Name="Uctrl" REVKEY="{Binding Source={StaticResource RevKeyProvider}}">
                                                        </ctrl:ctrlReview>
                                                    </Setter.Value>
                                                 </Setter>-->


while setting value for property content,It giving me error:Cannot add content of type 'SafetyAuditUserControl.ctrlReview' to an object of type 'System.Object'.

Please help

Bobi
Telerik team
 answered on 30 Oct 2009
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?