Telerik Forums
UI for WPF Forum
5 answers
401 views

Hi,

I want to make a custom theme like the green theme with a dark and a light color variation but with different colors. For example RedTheme or BlueTheme.

What is the best way to achieve this?

 

Thanks

Martin
Telerik team
 answered on 14 Oct 2016
3 answers
180 views

I am using DataFilter and its source is Bind to the Grid, I don't want to use the unbound mode because then I will have to populate everything. I am using rest service to get all the data and I want to do the filtering also on the server side.

- User open the window

- I make a rest request to get the data and populate the grid

- User add a filter

- I am listening for the collection changed and item changed event

- I loop through all the filters and send a request to get the filtered data

The problem is that DataFilter also filters the grid on the client side, so If my rest request takes time the grid items source is updated twice, one from the data filter and another one when rest returns the data

Is there any preview event or any other way to tell datafilter ot not filter the grid

Martin
Telerik team
 answered on 14 Oct 2016
1 answer
638 views
Dear team,
we have a problem with RadGridView performance. He have the following scenario:
- We request data to server and it returns 44 rows into a list.
- We bind this list to a RadGridView with 8 columns. 
Some remarks:
- One column is a template column with a checkbox.
- We have a style for the gridview and gridview rows.
- We have auto with for these columns.

This process takes 1.615s. The 30% was spent by the server and the 70% by gridview. We don't know how to solve this problem. We have done the following tests:
- We have removed all styles and template column.
- Removing one column we gain a 6,8%.
- Removing 2 columns we gain a 16,1%, etc.
- Having only one column we gain 54,64%! It means that rendering speed depends on number of columns?
- Fixing columns width we can gain a 10%, 0,2s.
- Replacing this grid by a WPF grid we gain a 42%, 0,6s. This means that WPF standard grid is faster that RadGridView?

We hope you can help us.
Thank you in advance.
Stefan
Telerik team
 answered on 13 Oct 2016
5 answers
126 views
Hi,
How do I drag drop a group in the GridView to change Group's order?

Thank you.
Stefan Nenchev
Telerik team
 answered on 13 Oct 2016
1 answer
321 views

Looking for a way to dynamically populate multiple doughnut series so that I can make my "ring" chart that I made with the winforms version.

I've looked at the "Dynamic Number of Series (ChartSeriesProvider)" article. There doesn't seem to be a "PieSeriesDescriptor", and using the "ChartSeriesDescriptor" that is for "all series", it complains about "<telerik:ChartSeriesDescriptor " with the errors:

    The type "ChartSeriesDescriptor" is abstract and must include an explicit value

    Type 'ChartSeriesDescriptor' is not usable as an object element because it is not public or does not define a public parameterless constructor or a type converter.



Martin Ivanov
Telerik team
 answered on 13 Oct 2016
3 answers
163 views

Hello, lets say that we are using the radGridView and we have some columns like above:

First Name, Last Name, Sex, Age, Type1, Type2

The column "Type1" has a custom editor that implements the classes:

CreateCellElement and CreateCellEditElement using a combobox for selection of value.

Also i must clarify that column "Type2" depents on column's "Type1" value

So how can we clear in the current row the column's "Type2" value when the value of column "Type1" is changed through the CreateCellEditElement?

 

Thanks

Stefan Nenchev
Telerik team
 answered on 13 Oct 2016
1 answer
186 views

Once I build a RadDiagram I have basically one List of Items and one List of Links.

Now, would it be possible to Bind a TreeView with these two objects only?

 

See the screenshot attached for example. The Diagram consists of four objects linked together. 

Now, Is it possible to have a TreeView representation  of the Diagram like in the screenshot attached?

 

 

From the documentation seems to be that this cannot be done, unless I create dynamically a brand new List (i.e. TreeSource) for the tree from the Items and Links objects.

Where TreeSource would basically be a:

public ObservableCollection<TreeViewNode> TreeSource;

 

       public class TreeViewNode {
              public string DisplayName { get; set; }
              public ObservableCollection<TreeViewNode> Nodes { get; set; } 
                               }

 

And the XAML

 <HierarchicalDataTemplate x:Key="TreeViewTemplate" ItemsSource="{Binding Nodes}"    >
                <TextBlock Text="{Binding DisplayName}"/>
            </HierarchicalDataTemplate>
 
 <telerik:RadTreeView x:Name="tree"  ItemsSource="{Binding TreeSource}"> ItemTemplate="{StaticResource TreeViewTemplate}"

 

 

 

Martin Ivanov
Telerik team
 answered on 13 Oct 2016
6 answers
221 views

I am working on a Prism WPF project and I have a RadExpander in the shell of my project. 

 
    <Grid>
        <Grid>
            <ContentControl prism:RegionManager.RegionName="ContentRegion" />
            <tel:RadExpander x:Name="MenuFlyOut"
                             IsExpanded="True"
                             tel:AnimationManager.IsAnimationEnabled="True"
                             ExpandDirection="Right"
                             Width="210"
                             Background="CornflowerBlue"
                             Margin="0,0,159,0">
                <tel:RadExpander.Header>
                    <TextBlock x:Name="ExpanderCaption" Text="Menu" Foreground="White"/>
                </tel:RadExpander.Header>
                <tel:RadExpander.Content>
                    <StackPanel Margin="10,20,0,0" 
                                Width="200"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Opacity="1">
                        //Button that opens UserControl in ContentRegion
                        //stuff in the stackpanel
                    </StackPanel>
                </tel:RadExpander.Content>
            </tel:RadExpander>
        </Grid>
    </Grid>

Currently since the RadExpander IsExpanded is set to "true" when the UserControl loads, the RadExpander is, obviously, still expanded. What I am trying to do is change the state of IsExpanded when the UserControl finishes loading. 

 

my latest attempt was to set it in the codebehind of the UserControl: 

public partial class UserControlContent : UserControl
{
    public UserControlContent()
    {
        InitializeComponent();
 
        var setExpander = new Shell();
        setExpander.MenuFlyOut.IsExpanded = false;
 
    }
}

But that didn't work.. I've tried a few other ways to do this.  Event Triggers, Binding to a property which calls a method that sets IsExpanded.

 

Obviously, I'm missing something, and help would be appreciated.

Martin Ivanov
Telerik team
 answered on 13 Oct 2016
2 answers
159 views

I'm trying to get a shapefile into the radmap (intending to be similar to the hotel floor plan example), however my shapefile does not get displayed properly. It's using WGS84, and is displayed correctly with every shapefile viewer i can find

Attached expected and resulting outputs

<Grid>
            <telerik:RadMap x:Name="radMap"
                        UseDefaultLayout="False"
                        UseSpringAnimations="False"
                        Background="Transparent"
                        MouseDragMode="None"
                        MouseDoubleClickMode="None">
                <telerik:RadMap.Provider>
                    <telerik:EmptyProvider/>
                </telerik:RadMap.Provider>


                <telerik:VisualizationLayer x:Name="VisualizationLayer">

                    <telerik:VisualizationLayer.Reader>
                        <telerik:AsyncShapeFileReader PreviewReadShapeDataCompleted="OnPreviewReadShapeDataCompleted">
                            <telerik:AsyncReaderSource  DataSource="C:\temp\TestImageBlend\Test.dbf" Source="C:\temp\TestImageBlend\Test.shp"  />
                        </telerik:AsyncShapeFileReader>
                    </telerik:VisualizationLayer.Reader>
                </telerik:VisualizationLayer>
            </telerik:RadMap>
        </Grid>

Jeremy
Top achievements
Rank 1
 answered on 12 Oct 2016
2 answers
282 views
If i setup a GanttView with some columns with a width of 100, then I'm unable to get the actual width of a column after the user resizes it; seems to always return the original '100' value. Is there some way of retrieving the updated width of these columns?
Paulo
Top achievements
Rank 1
 answered on 12 Oct 2016
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?