Telerik Forums
UI for WPF Forum
1 answer
183 views
Hi 

I am working on the functionality having ChartView inside RadTileView. We are displaying a lot of charts in tiles.
The problem I am facing is when the Tile is restored, I want to remove all the legends and wants to show only chart. And again when the tile is maximized I want to display entire chart with legends.

I am attaching a image for better understaing.

Another problem is that when the chart is restored, the font size of Legends are not decreasing accordingly.

For RadTileViewItem: MinimizedHeight = 125, RestoredHeight=25. But when I restored the Tile, I am expecting the font size on chart to reduced by 80%.

Can you please help me in that.

I have created another but somehow it was not working
http://www.telerik.com/community/forums/wpf/charting-kit/chartview-legend-visibility.aspx
Ves
Telerik team
 answered on 08 May 2013
16 answers
1.2K+ views
Hallo,

I'm using the RadGridView for our business applications.
But our users are complaining that the data will not be loaded quickly.
So I've made ​​some comparative tests with a regular DataGrid and found out that the DataGrid binds data much faster than the RadGridView.

Loadingtime of 50000 Datarows with 8 Columns: 17 miliseconcs.
Binding to a DataGrid: 120 milliseconds. Used Memory: 7 MByte.
Binding to a RadGridView: 4 seconds. Used Memory: 51 MByte.

Are there any settings in RadGridView to get the same performance as a DataGrid?

I used following xaml for the RadGridView:

<telerik:RadGridView x:Name="RadGridView1" ShowGroupPanel="False" CanUserResizeColumns="False"  CanUserFreezeColumns="False" ItemsSource="{Binding Items, Source={StaticResource model}, Mode=OneWay}" IsReadOnly="True" AutoGenerateColumns="false"  DataLoadMode="Asynchronous" IsFilteringAllowed="False" >
           <telerik:RadGridView.Columns>
               <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col2}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col3}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col4}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col5}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col6}" />
               <telerik:GridViewDataColumn DataMemberBinding="{Binding Col7}" />
           </telerik:RadGridView.Columns>
       </telerik:RadGridView>

and following for the DataGrid:
<DataGrid ItemsSource="{Binding Items, Source={StaticResource model}}" RowHeight="25" CellStyle="{StaticResource Test}" />
Jc
Top achievements
Rank 1
 answered on 08 May 2013
1 answer
188 views
Hi,

i use the ContentTemplateSelector property of the RadTabControl. This way i can define different DataTemplates.

I created a property in my TabViewModel class called Content and based on its value I am selecting different DataTemplates. I also defined the different DataTemplates in the App.xaml file.

Now I want to change the Header of the TabItem out of the UserControl. And this is the problem, how do I solve this problem?

thanks
best regrads
rene
Petar Mladenov
Telerik team
 answered on 07 May 2013
8 answers
334 views
Hi,

is it possible to show/hide the GridLines via condition? So if condition is true, then show horizontal Gridline, if not, then hide it?
Want to make it, because Merging is not as possible as in older Application (take a look at attachment).

Or is there any other solution to show grid as attachment with WPF RadGridView?

Best regards,

David
Dimitrina
Telerik team
 answered on 07 May 2013
2 answers
222 views

I have managed to set up a PRISM region within the radRibbonView.RadRibbonTab which then has radRibbonGroup's loaded in from the modules containing the buttons for that module.  All good so far, however the modules donot load in the order which the radribbongroups need to appear in the tab.

I have tried using the radOrderedwrappanel in conjunction with the groupvariant priority as per snippit below to provide a solution with no luck.  Is there a way of doing this or will I have to look into custom loading order of the modules?

I ahve also added a custom regionAdaptor which seems to be working fine to allow the radribbongroups to be loaded into the orderedwrappanel.  However the ordering and sizing didnt work - it started wrapping after 3 ribbonGroups and it didnt order the groups correctly.

<telerik:RadRibbonGroup Header=" Order Search ">
                        <telerik:RadRibbonGroup.Variants>
                            <telerik:GroupVariant Priority="2" Variant="Large"/>
                        </telerik:RadRibbonGroup.Variants>
                        <telerik:RadOrderedWrapPanel>
                            <telerik:RadRibbonButton LargeImage="/Icons/48/Search.png" Size="Large" telerik:ScreenTip.Title="Order Search"/>
                        </telerik:RadOrderedWrapPanel>
                    </telerik:RadRibbonGroup>
Jonathan
Top achievements
Rank 1
 answered on 07 May 2013
1 answer
142 views
Hi,

I would like to know if it's possible to add new words to the existing spellchecker of Telerik?
Also, I would like to know if it possible to use an external spellchecker such a medical spellchecker with Telerik components?

Thank's
Petya
Telerik team
 answered on 07 May 2013
3 answers
314 views
Hi there

For the past day I'm trying to implement drag and drop behavior in the same gridview. I used the demo example to implement this. 
The events are fired when I click a row and drag, but the row isn't dropped.
When I debug the code, the DragDropPayloadManager.GetDataFromObject() method returns null in OnRowDragOver and  OnDrop  for the following lines:

--- OnRowDragOver
var details = DragDropPayloadManager.GetDataFromObject(e.Data, "DropDetails") as DropIndicationDetails;
 
--- OnDrop
var draggedItem = DragDropPayloadManager.GetDataFromObject(e.Data, "DraggedItem");
var details = DragDropPayloadManager.GetDataFromObject(e.Data, "DropDetails") as DropIndicationDetails;

Because of that, both events return nothing. 

Am I missing something?

Thanks in advance
Lowie

Lowie
Top achievements
Rank 1
 answered on 07 May 2013
1 answer
792 views
Hi,

I've a RadTabControl with some RadTabItem and one of them contains a RadGridView with a lot of content (I bind an ObservableCollection).
When I switch from any tab to this one it always takes some time (a few seconds) so it seems that in some how the gridview is loaded again.

Since this list is static, are there a way to improve the performance?
Pavel R. Pavlov
Telerik team
 answered on 07 May 2013
1 answer
230 views
Hi,

i use a RadTabControl with a AutoCompleteBox on it. Here i select a customer and fill the TabItem with data.
After changing the Tab the TabItem is empty? the AutoCompelteBox is empty, too!

The Main Problem is that i create each tab by code and in each tab a usercontrol is loaded. Now i select a customer
and display the data in the tabitem. When i change the tab the first one is empty again when i come back.

What is to do to hold the information in the TabItem?

THanks
Best Regards
Rene
Pavel R. Pavlov
Telerik team
 answered on 07 May 2013
3 answers
252 views
Hi,
I want to "protect" mergefield inside my document, to prevent user to change the display of the field directly in the richtextbox(i use a specific editor to edit the value of my mergefield).

I tried to write a procedure to put or remove readonly on my mergefield, but I have some trouble to make it work :

private void SetMergeFieldReadOnly(MergeField field, RadRichTextBox richTextBox, bool isReadonly)
        {
            var fieldEnd = richTextBox.Document.EnumerateChildrenOfType<FieldRangeEnd>()
                .FirstOrDefault(fs => (fs.FieldRangeStart.Field is MergeField)
                                   && (((MergeField)fs.FieldRangeStart.Field).PropertyPath == field.PropertyPath));
            if (fieldEnd != null)
            {
                var fieldStart = fieldEnd.FieldRangeStart;
                var posFieldStart = new DocumentPosition(richTextBox.Document);
                var posFieldEnd = new DocumentPosition(richTextBox.Document);
                posFieldStart.MoveToInline(fieldStart);
                posFieldEnd.MoveToInline(fieldEnd);
                if (isReadonly) // add readonlyrange
                {
                    richTextBox.Document.Selection.Clear();
                    richTextBox.Document.Selection.SetSelectionStart(posFieldStart);
                    richTextBox.Document.Selection.AddSelectionEnd(posFieldEnd);
                    richTextBox.InsertReadOnlyRange();
                }
                else // remove readonlyrange
                {
                    // 1st method - doesn't work.
                    //richTextBox.Document.Selection.Clear();
                    //richTextBox.Document.Selection.SetSelectionStart(posDebField);
                    //richTextBox.Document.Selection.AddSelectionEnd(posFinField);
                    //richTextBox.DeleteReadOnlyRange();  // <-- no error but the field is still readonly after that.
 
                    // 2nd method - works but not properly
                    var readOnlyRangeStarts = richTextBox.Document.EnumerateChildrenOfType<ReadOnlyRangeStart>();
                    var posDebReadOnly = new DocumentPosition(richTextBox.Document);
                    var posFinReadOnly = new DocumentPosition(richTextBox.Document);
                    foreach (var readOnlyRangeStart in readOnlyRangeStarts)
                    {
                        if (readOnlyRangeStart.End != null)
                        {
                            posDebReadOnly.MoveToInline(readOnlyRangeStart);
                            posFinReadOnly.MoveToInline(readOnlyRangeStart.End);
                            if ((posFinReadOnly >= posFieldStart) && (posDebReadOnly <= posFieldEnd))
                            {
                                richTextBox.DeleteReadOnlyRange(readOnlyRangeStart);   // remove the protection on ALL the readonly range !!!
                            }
                        }
                    }
                }
            }
        }


I wonder if there are not some easier way to do this ? (Or I might be doing something wrong ?)

At the moment, I can only set/unset readonly ALL the mergefield of the document. It works, but sadly it's really slow ...

Are they're some way to "lock" the fields without using some ReadOnlyRange ?

Thanks.
Petya
Telerik team
 answered on 07 May 2013
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?