Telerik Forums
UI for WPF Forum
1 answer
90 views
I have a list box that drops an item onto a treeView.   The TreeView is bound to a List<> and has a two level template.  The Item is dropped on the top level items and need the item to expand when the new item is dropped on it.

private void OnDropInfo(object sender, DragDropEventArgs e)
       {
             
               if (e.Options.Status == DragStatus.DropComplete)
               {
                     
                   ListBoxItem item = e.Options.Source as ListBoxItem;
                   DeviceApp payload = item.Content as DeviceApp;
                   freeApps.Remove(payload);
                   appList.UnselectAll();
                   appList.ItemsSource = freeApps;
                   stationTree.ItemsSource = stations;
                   appList.Items.Refresh();
                   stationTree.Items.Refresh();
                     
               }
                
             
       }


The listBox is the source and i have added some clunky Refresh() to get both ItemsSources to update and show the changes.  I know i am doing this wrong, but the tree branch still does not expand on drop.

Any help would be great! 
Thanks,
Brian
Tina Stancheva
Telerik team
 answered on 01 Mar 2011
1 answer
119 views
Hi
I am trying to set a transition between user controls. when the user control have only a textbox every thing works fine, but when trying to put a RadGridView instead of the textbox in the user control, i cant see it.

My code: 
 <telerik:RadTransitionControl Name="TransitionControl" Grid.Column="1"></telerik:RadTransitionControl>

c#
MyGridViewControl gv = new MyGridViewControl ();  
TransitionControl.Content = gv; Thanks
George
Telerik team
 answered on 01 Mar 2011
0 answers
63 views
Hi Telerik,

I'd like to allow drag and drop at any selected row and at particular column but not at all column position, how can I achieve this? For example, D&D is only allowed at any selected row and at 1st column only.

Thanks.
Cheau
Cheau-Long
Top achievements
Rank 1
 asked on 28 Feb 2011
1 answer
131 views
Hy,
How to simulate a wrapping text around an image?



With FlowDocument, we can use Figures or Floaters. Do you have any idea to do this kind of feature? It would be a very nice amelioration.
Thx.
Iva Toteva
Telerik team
 answered on 28 Feb 2011
4 answers
141 views
I have downloaded the trial version of RadControls for WPF (the latest presumably as of 2011/2/27) and it fails to compile, showing massive numbers of errors. Why?

What are these .exe files within the solution?

I'm finding errors such as "The command "Copy .." ended with code 1." and
"Metadata file ..ScheduleView.exe' could not be found."
'Telerik.Windows..Examples.ScheduleView.FirstLook.ConflictCheckingDragDropBehavior.ValidateDrag( ..: return type must be .. to match overriden member ..
etc.

Has this demo-app been checked? Or is there something simple and obvious that I neglected to do?  Thus far nothing seems to work as prescribed.

I'm using Visual Studio 2010 Ultimate, under Win7 x64, with 12GB of RAM.  I appreciate your time and advice,

james hurst
(screen-capture attached)
James
Top achievements
Rank 2
 answered on 28 Feb 2011
3 answers
94 views
Hi,

I have an entity whose structure is like this:

List of Universities
-->List of Colleges:
    -->List of Students:
        -->List of Assignments

I have list of universities with me which I want to bind to the tree and my requirement is to skip the node -"Student" in the tree so that it appears like-

University
-->College
---->Assignment

Is it possible using DataTemplate/HierarchicalDataTemplate of treeview?
Arpit
Top achievements
Rank 1
 answered on 28 Feb 2011
3 answers
141 views
How can I enable/disable controls that are placed inside of NewRow? I have sort of methods that return values indicating that some controls must be enabled/disabled. When I click add new row in my gridview new row template appears and what I am expecting is that some controls must be enabled/disabled depend on values returned by methods.

Is this possible?
regards
Vanya Pavlova
Telerik team
 answered on 28 Feb 2011
1 answer
55 views
Hi

I am working on a project which requires a WPF grid control with ability to align summary row aggregates with grid columns and support column resize and reordering. It looks like this feature is not available in Telerik WPF GridView (yet) but I am wondering if there will be a solution for this in your upcoming release? This will be a key feature that might lead my client to pick different control suite at together.

Thanks
Ron Farko
Maya
Telerik team
 answered on 28 Feb 2011
1 answer
77 views
May be a dumb question, but what template do we edit to get the TileView to have horizontal tiles rather than vertical?

All examples show tiles on the right (stacked vertically), we'd like to stack them horizontally on top.

We're interested in the RadFluidContentControl example (FirstLook), but any template I edit (for the RadTileView) in Blend, I don't seem to see how you guys are drawing out the Tiles?

See attachment for a crude example.

Thanks!
Reuben
Reuben
Top achievements
Rank 1
 answered on 28 Feb 2011
2 answers
226 views
I'm currently trying to use the GridView control with the Expression Dark Skin. I'm styling the whole control using the style manager. This works completely fine, however I've had to override the the filtering control to set a default option using the same technique as detailed in this thread:

http://www.telerik.com/community/forums/wpf/gridview/hide-and-filtering-options.aspx

When I do this the style of the filter control reverts back to the default Office Black theme. I thought about trying to set the style from code behind when I'm overriding the filter control, but I've no idea where to begin to do this. I've attached the relevant code below. Does anyone have any idea what the solution would be?

public class CustomFilteringControl : Telerik.Windows.Controls.GridView.FilteringControl
    {
        public override void Prepare(GridViewBoundColumnBase column)
        {        
            base.Prepare(column);
 
            if (column.DataType == typeof(string)) // Set contains as default only for string data type of the gridview column
            {
                FilteringViewModel vm = this.DataContext as FilteringViewModel;
 
                if (vm != null)
                {
                    if (!vm.Filter1.IsActive)
                    {
                        vm.Filter1.Operator = FilterOperator.Contains;
                    }
 
                    if (!vm.Filter2.IsActive)
                    {
                        vm.Filter2.Operator = FilterOperator.Contains;
                    }
                }
            }
        }
 
    }
Mark
Top achievements
Rank 1
 answered on 28 Feb 2011
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?