Telerik Forums
UI for WPF Forum
12 answers
174 views
Hello,

when I populate the graph with so many connections outgoing from a specific node, it takes so so so much time!

Here is my graph source

class GraphSource : GraphSourceBase<Node, Link>
        {
            List<Cluster> clusters = new List<Cluster>();
            public GraphSource()
            {
                 Cluster c1 = new Cluster("Cluster1");
                Cluster c2 = new Cluster("Cluster2");
                Cluster c3 = new Cluster("Cluster3");
                Cluster c4 = new Cluster("Cluster4");
                Cluster c5 = new Cluster("Cluster5");
                Cluster c6 = new Cluster("Cluster6");
 
             
                ECU eCU1 = new ECU("ECU1");
                ECU eCU2= new ECU("ECU2");
                ECU eCU3 = new ECU("ECU3");
                ECU eCU4 = new ECU("ECU4");
                ECU eCU5 = new ECU("ECU5");
                ECU eCU6 = new ECU("ECU6");
                ECU eCU7 = new ECU("ECU7");
                ECU eCU8 = new ECU("ECU8");
                ECU eCU9 = new ECU("ECU9");
                ECU eCU10 = new ECU("ECU10");
                ECU eCU11 = new ECU("ECU11");
                ECU eCU12 = new ECU("ECU12");
                ECU eCU13 = new ECU("ECU13");
                ECU eCU14 = new ECU("ECU14");
                ECU eCU15 = new ECU("ECU15");
                ECU eCU16 = new ECU("ECU16");
                ECU eCU17 = new ECU("ECU17");
                ECU eCU18 = new ECU("ECU18");
                ECU eCU19 = new ECU("ECU19");
                ECU eCU20 = new ECU("ECU20");
 
                c1.AddECU(eCU1);
                c1.AddECU(eCU2);
                c1.AddECU(eCU3);
                c1.AddECU(eCU4);
                c1.AddECU(eCU5);
 
                c2.AddECU(eCU1);
                c2.AddECU(eCU6);
                c2.AddECU(eCU7);
                c2.AddECU(eCU8);
                c2.AddECU(eCU9);
                c2.AddECU(eCU10);
                c2.AddECU(eCU11);
                c2.AddECU(eCU12);
                c2.AddECU(eCU13);
 
                c3.AddECU(eCU13);
                c3.AddECU(eCU17);
                c3.AddECU(eCU18);
                c3.AddECU(eCU19);
 
                c4.AddECU(eCU11);
                c4.AddECU(eCU12);
                c4.AddECU(eCU13);
                c4.AddECU(eCU14);
 
                c5.AddECU(eCU15);
                c5.AddECU(eCU16);
                c5.AddECU(eCU17);
                c5.AddECU(eCU18);
 
                c6.AddECU(eCU19);
                c6.AddECU(eCU20);
 
                clusters.Add(c1);
                clusters.Add(c2);
                clusters.Add(c3);
                clusters.Add(c4);
                clusters.Add(c5);
                clusters.Add(c6);
            }
 
 
            public void PopulateGraph()
            {
                foreach (Cluster cluster in clusters)
                {
 
                    Node vNode = new Node() { Width=10,Height=10};
 
                    this.AddNode(vNode);
                    foreach (ECU eCU in cluster.GetECUs())
                    {
 
                        IEnumerable<Node> res = from Node nn in this.Items where eCU.Name.Equals(nn.Content) select nn;
 
                        if (res.Count() == 0)
                        {
                            Node eNode = new Node() { Content = eCU.Name };
                            this.AddNode(eNode);
                            this.AddLink(new Link(vNode, eNode));
                        }
                        else
                        {
                            this.AddLink(new Link(vNode, res.First()));
                        }
 
                    }
                }
 
            }
 
        }


Thanks in advance,
Hassan
          
Hassan
Top achievements
Rank 1
 answered on 25 Feb 2015
1 answer
150 views
Is there way  to show the editing dialog for appointments non-modal?
Rosi
Telerik team
 answered on 25 Feb 2015
1 answer
99 views
Hi,

I'm using the Office2013Theme and I would like to know if something exist to facilitate the drag/drop operation when we have a verry small appointment?

Thank's
Alain
Rosi
Telerik team
 answered on 25 Feb 2015
1 answer
130 views
I am trying to create a menu where the top section is databound, with a divider, and then a couple static items on the bottom  Like this:

Link 1
Link 2
Link 3
----------
Add Link

So the user can delete Links by right clicking.

So is there a way to mix data bound and static items in a menu?
Kalin
Telerik team
 answered on 25 Feb 2015
2 answers
175 views
Hi

I'm trying to use the NoXmal binaries with Prism.

I have a region that contains the RadRibbonTab.  When I inject it into the RadRibbonView region nothing appears.

If I use the normal binaries everything works fine.

When using the NoXmal binaries, I can create a RadRibbonTab in the xmal file and it shows up.

This is the code for the RabRibbonTab view I'm adding to the region

<telerik:RadRibbonTab xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"<br>        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" <br>        x:Class="TelerikWpfApp1.Views.HomeRibbonView"<br>        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView"<br>        Header="Home"><br>    <telerik:RadRibbonGroup Header="Jobs"><br>        <telerik:RadRibbonButton Content="Job List" Command="{Binding OpenJobListCommand}" /><br>    </telerik:RadRibbonGroup><br>    <telerik:RadRibbonGroup Header="Data"><br>        <telerik:RadRibbonButton Content="Sync Data" Command="{Binding OpenSyncViewCommand}" /><br>    </telerik:RadRibbonGroup><br></telerik:RadRibbonTab>


Any ideas?

Thanks

Nick
Nicholas
Top achievements
Rank 1
 answered on 24 Feb 2015
11 answers
269 views
Our users need to be able to enter data in the grids using the number pad which means that I need the Enter key to work like the Tab key for adding data.  I got this close to working using a CustomKeyboardCommandProvider where I assign the Enter key to the Tab key commands.  However, I would actually prefer to only have it work this way if I am inserting a record and let it work as normal if the user is just trying to go back and update a field.  I use the AddingNewDataItem to add a new object when inserting a record.  Is there any way in the CustomKeyboardCommandProvider to know when I am inserting vs updating a record? Or is there a better way to get this to work?

Also, if they are in insert mode, I would like to be able to take them to a new record after the current record is committed. Can I add a BeginInsert command to the list of commands after the Commit to get this to work?  I noticed that the tab key list does not include a CommitEdit command when it wraps from one record to another so I am not sure where to add this BeginInsert?

thanks!! 

Maya
Telerik team
 answered on 24 Feb 2015
6 answers
366 views
I have been going through the Forum and Google tring to find how I get the current Item of the Carousel control.  I need to get one value so that I can proceed to getting my data.  When I pause the program I can see all the item in CurrentItems, but when I try to code CurrentItem.fname that is not an option.  It appear as though this control has changed, but there is still information for the old way along with work arounds that no longer work.  Could you please Help make this Work?

My XAML for just the Carousel is
<telerik:RadCarousel x:Name="RadCarousel"
                                     Background="Transparent"
                                     Margin="10,10,0,0"
                                     Height="72"
                                     VerticalAlignment="Top"
                                     HorizontalScrollBarVisibility="Hidden"
                                     ItemTemplate="{StaticResource CarouselItemTemplate}"
                                     ItemsSource="{Binding}" SelectionChanged="RadCarousel_SelectionChanged"
                                     SelectedItem="{Binding SelectedItem, Mode=TwoWay}">
                    <telerik:RadCarousel.ItemsPanel>
                        <ItemsPanelTemplate>
                            <telerik:RadCarouselPanel Path="{StaticResource horizontalPath}"/>
                        </ItemsPanelTemplate>
                    </telerik:RadCarousel.ItemsPanel>
                </telerik:RadCarousel>

 

 

 




my Code behind is this

public void LoadSalesPerson(object sender, RoutedEventArgs e)
        {
            DataClasses1DataContext conn = new DataClasses1DataContext();
            List<GetSalesPeopleResult> getSalesPeopleResults = (from s in conn.GetSalesPeople()
                                                                select s).ToList();
 
            RadCarousel.ItemsSource = getSalesPeopleResults;
        }
 
        private void RadCarousel_SelectionChanged(object sender, Telerik.Windows.Controls.SelectionChangeEventArgs e)
        {
 
            int index = RadCarousel.Items.IndexOf(RadCarousel.SelectedItem);
            int smm = RadCarousel.ElementAt(index);
             
        }

 

Stefan
Telerik team
 answered on 24 Feb 2015
1 answer
299 views
Hi,

I set SelectionMode = Extended;

If I select a new item of the grid and try to select multiple rows holding the left mouse button everything working as expected (grid select multiple rows). 

But If I select selected row of the grid and try to select multiple rows holding the left mouse button the new selected rows won't be selected. 
How can I implement this behavior?
Yoan
Telerik team
 answered on 24 Feb 2015
5 answers
333 views
Is it possible to attach a search control to the gridview to find values that the user types in? Something like what Find does in MS Word.
Yoan
Telerik team
 answered on 24 Feb 2015
2 answers
129 views
I have written an eventhandler which is getting called on FieldFilterEditorCreated.     Depending on which column the type of the e.Editor changes.   But regardless, when I set a value in the width property of this editor it has no effect.    It comes is as "NaN".    I try to set the value.   It doesn't have any effect.   Even if I set it to a huge number, the size of the filter editor box remains unchanged.

Incidentally I see the FieldFilterEditorCreated event getting called TWICE when I click the funnel.    Both times on entry the value in e.Editor.Width is "Nan" and when I set it both times...still no change.
Yoan
Telerik team
 answered on 24 Feb 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?