Telerik Forums
UI for WPF Forum
6 answers
789 views
new to teleirk controls and tried searching elsewhere.

I have a radchart on a wpf app. the data series are dynamically given to the xaml file to display. it can chart 1 to 4 lines at a time. We want to create some toggles on the screen that will turn on/off viislibty PEr line and on/off data labels per line. 

i did some research on how to programmatically set binding and it only partially works. my converter fires from the toggle, but the dependency property does not. here are the key pieces of code:

codebehind:

Format Code Block
             var seriesMapping = new SeriesMapping();

            var seriesDefinition = new LineSeriesDefinition();

            seriesMapping.SeriesDefinition = seriesDefinition;

  var binding = new Binding(){ Path= new PropertyPath("IsChecked"), Converter = new BooleanToVisibilityConverter(), Source = toggleVisible1, Mode = BindingMode.OneWay};

                    BindingOperations.SetBinding(seriesDefinition, SeriesDefinition.VisibilityProperty, binding);
Format Code Block


XAML
<CheckBox x:Name="toggleVisible1" Content="Show Line"  HorizontalAlignment="Right" Margin="5,2,15,2" FlowDirection="RightToLeft" IsChecked="True"  />

converter code - for the most part boils down to this:
 return (value? Visibility.Visible : Visibility.Collapsed);


Again, the converter fires when the checkbox is toggle, but the series always stays visible. what am i doing wrong?
i am using latest version of wpf controls.

 

Evgenia
Telerik team
 answered on 14 Nov 2011
1 answer
262 views
Hello,

I want to implement a custom copy and paste function for all my GridViews.
Therefore I registered an application wide command binding for all RadGridView types.

var copyBinding = new CommandBinding(RadGridViewCommands.Copy, ExecuteGridViewCopyCommand,
                                                 CanExecuteGridViewCopyCommand);
CommandManager.RegisterClassCommandBinding(typeof(RadGridView), copyBinding);

However, the handlers are not executed.

Even if I do the binding directly on a GridView:

var copyBinding = new CommandBinding(RadGridViewCommands.Copy, ExecuteGridViewCopyCommand,
                                                 CanExecuteGridViewCopyCommand);
gridViewCategories.CommandBindings.Add(copyBinding);

What I am doing wrong?

Best regards,

Franziska
Maya
Telerik team
 answered on 14 Nov 2011
2 answers
217 views
I'm trying to update a polygon-point location using a Map.MouseMove handler but the shape on the map is displayed incorrectly, as if the polygon bounds are not updated.  If I position the updated point within the bounds of the existing polygon, all the points are rendered correctly.  Changing the zoom level also corrects the problem, until the mouse is moved enough again.

I've attached screenshots:

RadMapPolygonA.png shows the initial, correct state, with the red dot showing the MouseMove position which is supposed to update the location of the point beneath it.

RadMapPolygonB.png shows what happens if you update the location property of the polygon point outside the bounds of the existing polygon.  

RadMapPolygonC.png shows the correctly rendered polygon after I changed the zoom level and reset it.

void RadMapMouseMove(object sender, MouseEventArgs e)
{
    if (!vm.DrawingShape || vm.CurrentShape == null) return;
    if (vm.CurrentShape.LocationWrappers.Count < 2) return;
    var locationWrapper = vm.CurrentShape.LocationWrappers[vm.CurrentShape.LocationWrappers.Count - 1];
    var location = Location.GetCoordinates(RadMap, e.GetPosition(RadMap));
    locationWrapper.Location = location;  // updates databound LocationCollection
}

Andrey
Telerik team
 answered on 14 Nov 2011
4 answers
392 views
Hello,

I want to show Plus/Minus (+/-) in Expander button style in my TreeListView node.
I want the TreeListView default  Office Blue style to remain as it is, just need to change the Expander style only. 

I have tried many but unable to accomplish. Please suggest me a solution asap. Please find the screenshot
Manishkumar
Top achievements
Rank 1
 answered on 14 Nov 2011
1 answer
89 views
Here is a Chart I'm working on: 

<Telerik:RadChart Height="750" x:Name="WeightsChart" Width="1400">
    <Telerik:RadChart.DefaultView>
        <Telerik:ChartDefaultView>
            <Telerik:ChartDefaultView.ChartTitle>
                <Telerik:ChartTitle Content="Catia Part and Assembly Weights" HorizontalAlignment="Center"/>
            </Telerik:ChartDefaultView.ChartTitle>
            <Telerik:ChartDefaultView.ChartLegend>
                <Telerik:ChartLegend Visibility="Collapsed"/>
            </Telerik:ChartDefaultView.ChartLegend>
            <Telerik:ChartDefaultView.ChartArea>
                <Telerik:ChartArea>
                    <Telerik:ChartArea.AxisX>
                        <Telerik:AxisX LabelRotationAngle="90"/>
                    </Telerik:ChartArea.AxisX>
                </Telerik:ChartArea>
            </Telerik:ChartDefaultView.ChartArea>
        </Telerik:ChartDefaultView>
    </Telerik:RadChart.DefaultView>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Telerik:ChartArea x:Name="BarChart" NoDataString="No Bar Series Data"/>
        <Telerik:ChartArea x:Name="LineChart" Grid.Row="1" NoDataString="No Line Series Data"/>
    </Grid>
    <Telerik:RadChart.HierarchicalViewDescriptors>
        <!--Bar Chart Descriptors-->
        <Telerik:ChartHierarchicalViewDescriptor>
            <Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
                <Telerik:SeriesMapping LegendLabel="Weights" ChartAreaName="BarChart">
                    <Telerik:SeriesMapping.SeriesDefinition>
                        <Telerik:BarSeriesDefinition LegendDisplayMode="None"
                                                 ItemStyle="{StaticResource BarStyle}"
                                                 SeriesItemLabelStyle="{StaticResource LabelStyle}">
                        </Telerik:BarSeriesDefinition>
                    </Telerik:SeriesMapping.SeriesDefinition>
                    <Telerik:SeriesMapping.ItemMappings>
                        <Telerik:ItemMapping FieldName="Weight" DataPointMember="YValue"/>
                        <Telerik:ItemMapping FieldName="InstanceNumber" DataPointMember="XCategory"/>
                    </Telerik:SeriesMapping.ItemMappings>
                </Telerik:SeriesMapping>
            </Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
        </Telerik:ChartHierarchicalViewDescriptor>
        <Telerik:ChartHierarchicalViewDescriptor>
            <Telerik:ChartHierarchicalViewDescriptor.Relation>
                <Telerik:PropertyRelation ParentPropertyName="Children"/>
            </Telerik:ChartHierarchicalViewDescriptor.Relation>
            <Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
                <Telerik:SeriesMapping LegendLabel="Weights" ChartAreaName="BarChart">
                    <Telerik:SeriesMapping.SeriesDefinition>
                        <Telerik:BarSeriesDefinition LegendDisplayMode="None"
                                                 ItemStyle="{StaticResource BarStyle}"
                                                 SeriesItemLabelStyle="{StaticResource LabelStyle}"/>
                    </Telerik:SeriesMapping.SeriesDefinition>
                    <Telerik:SeriesMapping.ItemMappings>
                        <Telerik:ItemMapping FieldName="Weight" DataPointMember="YValue"/>
                        <Telerik:ItemMapping FieldName="InstanceNumber" DataPointMember="XCategory"/>
                    </Telerik:SeriesMapping.ItemMappings>
                </Telerik:SeriesMapping>
            </Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
        </Telerik:ChartHierarchicalViewDescriptor>
        <Telerik:ChartHierarchicalViewDescriptor>
            <Telerik:ChartHierarchicalViewDescriptor.Relation>
                <Telerik:PropertyRelation ParentPropertyName="Children"/>
            </Telerik:ChartHierarchicalViewDescriptor.Relation>
            <Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
                <Telerik:SeriesMapping LegendLabel="Weights" ChartArea="BarChart">
                    <Telerik:SeriesMapping.SeriesDefinition>
                        <Telerik:BarSeriesDefinition LegendDisplayMode="None" />
                    </Telerik:SeriesMapping.SeriesDefinition>
                    <Telerik:SeriesMapping.ItemMappings>
                        <Telerik:ItemMapping FieldName="Weight" DataPointMember="YValue"/>
                        <Telerik:ItemMapping FieldName="InstanceNumber" DataPointMember="XCategory"/>
                    </Telerik:SeriesMapping.ItemMappings>
                </Telerik:SeriesMapping>
            </Telerik:ChartHierarchicalViewDescriptor.SeriesMappings>
        </Telerik:ChartHierarchicalViewDescriptor>
    </Telerik:RadChart.HierarchicalViewDescriptors>
</Telerik:RadChart>

As you can see, I'm getting a mystery series in the center of my grid. How do I get rid of it? I'm having a lot of trouble setting up these charts.
Evgenia
Telerik team
 answered on 12 Nov 2011
3 answers
160 views
Hi,

I use "{}{0:M/dd/yyyy}" but it's not working. I'm doing this in the codes because we have to display columns dynamically. What's happening here?

Twistur
Top achievements
Rank 1
 answered on 11 Nov 2011
2 answers
146 views
I am working with a C# application that is connecting to a web service in the code behind on a Click event of a button doing a search...say for customers and their orders. The data comes to the app. as XML but is Deserialize into a List<OfAClass>. The parent grid is utilizing one data source (Customers) and the child utilizes another(Orders). I have been looking at samples but do not get how to tie the two grids together. Is this done in the DataLoading event? In the examples the child grid does not seem to get an ItemSource. How do I tell the child grid where to get its data(Orders)? And How do I tie the two datasources together?

Any codes samples would be greatly appreciated.

Thanks ~ Doug
Doug
Top achievements
Rank 1
 answered on 11 Nov 2011
5 answers
484 views
Hi,
I am using the 2011 SP 1 release and it does not support the 'IsSynchronizedWithCurrentItem' property. The thread entitled  'Collections of Collections and row select ' from January 2010 states that it would be available in the 2010 Q1 release but this does not appear to have happened. It would be nice if you could reinvestigate this issue because if it was ever implemented then it now seems to be broken. Thanks,
Pete
Roland
Top achievements
Rank 1
 answered on 11 Nov 2011
5 answers
169 views
We have a very large data set, which users can group by a few different columns depending on how they want to see the data. When grouped, there are 3 aggregrates: Count, Sum, and Average. Is there a way to allow the users to sort by these aggregates without pre-defining the groups?

I looked at a few samples I found on your forums for sorting by an aggregate, but they all sorted based on a pre-defined Group, and once you changed the Group, the sorting stopped working.
LHR
Top achievements
Rank 1
 answered on 11 Nov 2011
2 answers
179 views
We are using version 2010.2.924.40 of the WPF RadGridView. On a grid, I have ONE editable column, and 6 readonly columns. Rows for this grid are created through code and user cannot enter rows. They can only edit the one column of each row. As a user edits the singe editable column and hits TAB, the focus shifts to the next row, into the editable column...as expected.

However, if the user FILTERS one or more of the readonly columns, then edits the row/editable column and hits TAB, the focus does not shift to the next row. I can't determine where focus shifts to.

Do you have a fix or solution for this?

Michael
Michael
Top achievements
Rank 1
 answered on 11 Nov 2011
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?