Telerik Forums
UI for WPF Forum
9 answers
334 views
I'm having some really bad performance when adding rows to the grid. I've got the grid items bound to an ObservableCollection. I'm then adding 7000 rows one-by-one to this collection. It basically freezes up for a couple of minutes.

I've done some profiling to try and find out what's holding things up and it seems to be spending about a 1/3 of the time in QueryableCollectionView:ProcessSynchronousCollectionChangedWithAdjustedArgs. Is there a way to set up the grid to avoid this call?

The main problem in that method is that it calls PropertyChangeInfo:GetChangedPropertyNames which compiles a linq expression foreach each propertyAccess. Any suggestions for improving the performance there?

Thanks!
TSRG - IT
Top achievements
Rank 1
 answered on 06 Aug 2010
8 answers
167 views
Hi,

I'm new to Telerik Controls. I'm trying to use the carousel controls in Expression Blend 4; having the few questions below

- Unlike the RadCaruosel for WinForm, I couldn't specify the eliptical path for the carousel items in Expression Blend (and VS2010), on WPF. Is that a limitation on this control for WPF currently? If not, how can I set the eliptical path (at design time)
- I've 8 items on the Carousel control (I tried it on Carousel and CarouselPanel), but only 5 are visible at a time. Other three would scroll in when I click the item near to them. Is there a way I can show all the 8 controls on my real estate?

Lastely, How can I compare and identify whether the user clicked on the top most item on the Carousel Panel? For example, out of my 8 items, if the user clicks on the item 6 it would be made as the top item. When the user clicks on it again, I want to identify it and perform some action.

Thanks in advance.
Ela
Vlad
Telerik team
 answered on 06 Aug 2010
1 answer
116 views
Hello,
   I am trying to create an unbounded link on the grid using the

GridViewHyperlinkColumn

and the link is not showing up. Can you please help me with this issue?

Thanks
Vlad
Telerik team
 answered on 06 Aug 2010
1 answer
110 views
I have and application with a user control that is a font chooser. It is nothing more than a single row of comboboxes. This user control (FontChooser) raises a selectionChangedEvent when any of the comboboxes are changed.
In my parent program I use a foreach loop to create a new FontChooser with a unique name for each item it is associated with (see code). So, for example I have eleven items, each with a FontChooser control  fc_A - K.
I have an event hander that handles the SelectionChangedEvent for all of the FontChoosers. When an event is fired I use the e.OrginalSource to capture which FontChooser fc_A -K  is being changed ex: FontChooser fc = (e.OriginalSource as FontChooser);. However, no matter which FontChooser is changed the last one added shows up as the OriginalSource. So, If where to write the fc name to the Console with Console.Out.WriteLine( fc.Name); I will get something like fc_K and fc_B, or fc_K and fc_K. The event seems to fire twice and always with the last FontChooser added to the parent app. BTW,I have tried to use e.Source and Sender as FontChooser, all produce the same result. If anyone has any ideas I am all ears.
 
fontChooser = new FontChooser();                        
                        fontChooser.selectedFont = row.ItemArray[3]; //From dataTable
                        fontChooser.selectedStyle = row.ItemArray[5].ToString().Trim();
                        fontChooser.selectedSize = row.ItemArray[4];
                        fontChooser.selectedWeight = FontWeight.FromOpenTypeWeight( Int32.Parse(row.ItemArray[7].ToString()));
                        fontChooser.Name = "fc_" + row.ItemArray[0].ToString().Trim();
                        fontChooser.SelectionChanged += new SelectionChangedEventHandler(fontChooser_SelectionChanged);
                        grid.RegisterName(fontChooser.Name, fontChooser);
                        grid.Children.Add(fontChooser);
                        Grid.SetRow(fontChooser, i);
                        Grid.SetColumn(fontChooser, 3);
                        Grid.SetColumnSpan(fontChooser, 4);
  
//Event Handler
 void fontChooser_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            FontChooser fc = (e.OriginalSource as FontChooser);
            selectedFont = fc.selectedFont;
            selectedFontStyle = fc.selectedStyle;
            FontWeight weight = (FontWeight)fc.selectedWeight;
            selectedFontWeight = weight;
            Console.Out.WriteLine(fc.Name); //Added to see what is going wrong
            string name = fc.Name.Substring(3);
            activeControl = name;
            string filterExpr = "LABEL_NAME = '" + name + "'";
            DataRow[] rowToUpdate = tempTable.Select(filterExpr);
            int ptr = tempTable.Rows.IndexOf(rowToUpdate[0]);
            DataRow dr = rowToUpdate[0];
            dr[3] = selectedFont;
            if (fc.selectedSize != null
            {
                selectedFontSize = fc.selectedSize;
                dr[4] = selectedFontSize;
            }
            dr[5] = selectedFontStyle;            
            dr[7] = weight.ToOpenTypeWeight();            
            dr.AcceptChanges();
            tempTable.Rows[ptr].BeginEdit();
            tempTable.Rows[ptr].ItemArray = dr.ItemArray;
            tempTable.Rows[ptr].AcceptChanges();
            tempTable.Rows[ptr].EndEdit();
        }

OverCoded
Top achievements
Rank 2
 answered on 05 Aug 2010
2 answers
111 views
Hi,

The SelectionChanged event of RadCarousel works only when the Non-Top item is selected. Is there a event/way to know when the user clicks on the Top item? Currently I'm using the DoubleClicked event to check for the Top item's property, to identify it. But, I want to know whether I can handle it with a single click.

Thanks in advance.
Ela
Ela
Top achievements
Rank 1
 answered on 05 Aug 2010
4 answers
110 views
I have the 2010.2.714.40 demo package and the RadGridView does not have the AutoGenerateHierarchy property.
I am trying to follow this post: http://blogs.telerik.com/RobertShoemate/Posts/09-12-30/techniques_for_creating_a_hierarchical_radgridview_for_winforms.aspx
to reproduce this functionality in a WPF Application.
Thank you.
Charlie
Top achievements
Rank 2
 answered on 05 Aug 2010
3 answers
644 views
Hi,

May I know how to set the data format for a numeric field like ID with leading zeroes in the gridview? I tried using DataFormatString="{}{0:00000000}" but did not worked.

How can I also format decimal numbers to display with comma and two decimal numbers? For example 2350.2 would be displayed as 2,350.20

Thanks..
Veselin Vasilev
Telerik team
 answered on 05 Aug 2010
1 answer
120 views
Hi,

How can I insert controls (like textbox, combobox...e.t.c) in the gridview. As  I need to embbed controls in the different cells of a grid.

Thanks,
-Narendra

Vanya Pavlova
Telerik team
 answered on 05 Aug 2010
5 answers
148 views
Hello all,
I want to use a WCF Service as Tile Source.
As far as I have seen I can only use the GetTile() method to influence the tile request.
This way I can only change URIs.
Is or will there be any way to have an overidable method which returns image data so that I can fetch the images from my WCF Service?

This is a major point in our decision whether to buy the Telerik components.
Andrey
Telerik team
 answered on 05 Aug 2010
1 answer
227 views
Hi, I use a ListBox inside a RadExpander.

When I use the button a the center of my mouse to mode the scrollbar of the scrollviewer, it doesn't work
when I am into the Listbox. It works well, only when I am outside the ListBox.

Do you have this problem also and do you have a solution ?

Thank you in advance, 
Kiril Stanoev
Telerik team
 answered on 05 Aug 2010
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?