Telerik Forums
UI for WPF Forum
1 answer
124 views
Very standard & basic chart mixing both line and candlestick series on same axes; is this possible in RadChartView? I've got a working solution in the old RadChart, but performance is dire and I've been trying to replicate similar functionality in RadChartView to benefit from improved performance.

The only "X" value I can find on OhlcDataPoint is category. Am I missing something obvious?

DateTimeCategoricalAxis is not an option as datapoints are non-uniform, and the line charts must have more granularity than the candlesticks on the x-axis.
Nikolay
Telerik team
 answered on 25 Jun 2012
1 answer
235 views
We have the following GridView:
<telerik:RadGridView Grid.Row="2"  RowDetailsTemplate="{StaticResource FundRowDetails}"
                             RowDetailsVisibilityMode="Collapsed" 
                             Name="radGridViewFunds"
                             CanUserFreezeColumns="False"
							 AutoGenerateColumns="False" 
                             RowHeight="28" 
                             EnableColumnVirtualization="False"
						     ScrollMode="RealTime" 
                             RowIndicatorVisibility="Collapsed" 
                             IsSynchronizedWithCurrentItem="True" 
                             IsReadOnly="true"
                             LoadingRowDetails="RadGridViewFundsLoadingRowDetails" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RowActivated="RadGridViewFundsRowActivated" >
                <telerik:RadGridView.Columns>
                    <telerik:GridViewToggleRowDetailsColumn />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Company" Width="150" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ManagerName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Manager" Width="150" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FamilyName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Family" Width="150" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding StrategyName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Strategy" Width="150" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FundDisplayName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Name" Width="250" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FundCd, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Code" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding OnOffShore, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="On/Off Shore" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FundSeries, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Series" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding FundClass, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Class" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Administrator, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Administrator" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnType, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Return Type" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ReturnSource, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Return Source" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Auditor, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Auditor" Width="100" />
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding StrategyGroupName, Mode=TwoWay, UpdateSourceTrigger=Default}" Header="Strategy Group Name" Width="100" />
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
In addition, there is a button that is used to add a new item to the gridview through the datasource.
After a new row is added, I would like to have the row expanded. Here is the code for that:

private void RadButtonNewClick(object sender, RoutedEventArgs e)
        {
            LogProcess("New button was clicked");
 
            ControlTabs.SelectedIndex = 0;
 
            checkShowAllFunds.IsChecked = true;
 
            var newFundPending = _fundList[0] != null && !_fundList[0].UpdateDtm.HasValue;
            if (newFundPending)
                return;
 
            textBoxFundNameCriteria.Text = string.Empty;
 
            LogProcess("Inserting blank fund into fund view data");
 
            var newFund = new vFund();
            _fundList.Insert(0, newFund);
 
            _newFund = newFund;
 
            LogProcess("Rebinding data");
            radGridViewFunds.ItemsSource = _fundList;
            radGridViewFunds.Rebind();
 
            radGridViewFunds.SelectedItem = newFund;
			radGridViewFunds.CurrentItem = newFund;
 
            var newRowGridItem = radGridViewFunds.ChildrenOfType<GridViewRow>().FirstOrDefault();
            if (newRowGridItem == null)
                return;
 
            radGridViewFunds.ScrollIntoView(newFund);
            radGridViewFunds.UpdateLayout();
			
            newRowGridItem.DetailsVisibility = Visibility.Visible;			
        }
However, The newRowGridItem.DetailsVisibility does not work, and the newly added row remains collapsed. How can I Programmatically expand the new row? Thanks.
Maya
Telerik team
 answered on 25 Jun 2012
0 answers
86 views
Hi, 

I am using version q2 2012.
I have memory leak when doing:
<telerik:RadGridView.GroupDescriptors>
                            <telerik:GroupDescriptor Member="Category" />
</telerik:RadGridView.GroupDescriptors>

I show that there was a post for something similar to this but it was from 2009. 
Please help...

Thanks.
Bernoli
Top achievements
Rank 1
 asked on 24 Jun 2012
1 answer
111 views
Here is the code that I have for a bar chart for the hover and item select interactivity. But I am not getting either of these interactivity effects.

<chart:RadChart Name="BarChart"
                                Content=""
                                Margin="5"
                                ItemsSource="{Binding CommunicationChartData}"
                                telerik:StyleManager.Theme="{Binding SelectedTheme}">
                    <chart:RadChart.SeriesMappings>
                        <charting:SeriesMapping ChartAreaName="ChartArea1" >
                            <charting:SeriesMapping.SeriesDefinition>
                                <charting:BarSeriesDefinition>
                                    <charting:BarSeriesDefinition.InteractivitySettings>
                                        <charting:InteractivitySettings SelectionMode="Single"
                                                                        HoverScope="Item"
                                                                        SelectionScope="Item" />
                                    </charting:BarSeriesDefinition.InteractivitySettings>
                                </charting:BarSeriesDefinition>
                            </charting:SeriesMapping.SeriesDefinition>
                            <charting:SeriesMapping.ItemMappings>
                                <charting:ItemMapping FieldName="Type"
                                                      DataPointMember="XCategory" />
                                <charting:ItemMapping FieldName="Count"
                                                      DataPointMember="YValue" />
                            </charting:SeriesMapping.ItemMappings>
                        </charting:SeriesMapping>
                    </chart:RadChart.SeriesMappings>
                    <chart:RadChart.DefaultView>
                        <charting:ChartDefaultView>
                            <charting:ChartDefaultView.ChartTitle>
                                <charting:ChartTitle Content=""
                                                     FontSize="14"
                                                     HorizontalAlignment="Stretch"></charting:ChartTitle>
                            </charting:ChartDefaultView.ChartTitle>
                            <charting:ChartDefaultView.ChartLegend>
                                <charting:ChartLegend Name="legend1"
                                                      Visibility="Visible" />
                            </charting:ChartDefaultView.ChartLegend>
                            <charting:ChartDefaultView.ChartArea>
                                <charting:ChartArea ItemClick="BarChartArea_ItemClick"
                                                    x:Name="ChartArea1"
                                                ItemWidthPercent="30"
                                                LegendName="legent1"
                                                SmartLabelsEnabled="True" />
                            </charting:ChartDefaultView.ChartArea>
                        </charting:ChartDefaultView>
                    </chart:RadChart.DefaultView>
                </chart:RadChart>    
Pabitra
Top achievements
Rank 1
 answered on 22 Jun 2012
3 answers
228 views
Hi,

I need to get the current row's Index in rowLoaded event of Rad Grid.

Here is my code:
   private void ultraGridCaseList_RowLoaded(object sender, Telerik.Windows.Controls.GridView.RowLoadedEventArgs e)
        {
//  how to get the index of current row?
}

and please let me know Isn't there equivalent of RowDatabound Event in WPF-RadGrid as in  Asp.net ?

Thanks
Dimitrina
Telerik team
 answered on 22 Jun 2012
9 answers
268 views
Hi

Is it possible to show tooltip for particular dates in a month. I can set tooltip at control level but i need to set tooltip at an individual date level.

Thanks
Kiran
Michel
Top achievements
Rank 1
 answered on 22 Jun 2012
2 answers
86 views
How do you get the collection of rows that have been added to the TreeListView? Currently our usage of the TreeListView is to display data elements that we have converted from an older version to a newer version. Many of the elements in the TreeListView may have errors or warnings associated with the translation. Sometimes we want to see these elements displayed in the TreeListView, and sometimes we only want to see the successful ones, and sometimes we want to extract these errors and warnings and put them in a list control, so extraction is needed. Thank you for any recommendations that you have.
Bill
Top achievements
Rank 2
 answered on 22 Jun 2012
1 answer
226 views
Hi,

I would like to rise an event when a user click on a TextBlock located in the group header of my ScheduleView. Here is my XAML :

            <telerik:RadScheduleView.GroupHeaderContentTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding FormattedName}" Grid.Column="1" FontWeight="Bold" Width="100" HorizontalAlignment="Left" VerticalAlignment="Center">
                            <i:Interaction.Triggers>
                                <i:EventTrigger EventName="MouseUp">
                                    <commands:EventToCommand Command="{Binding TestCommand}" />
                                </i:EventTrigger>
                            </i:Interaction.Triggers>
                    </TextBlock>
                </DataTemplate>
            </telerik:RadScheduleView.GroupHeaderContentTemplate>

Nothing happen, and the TestCommand is never called in my ViewModel, could you tell me if this is possible, and if yes how to fire this event ? I tried other events than MouseUp and the result is the same.

Thanks for your help,
Doots
Yana
Telerik team
 answered on 22 Jun 2012
7 answers
295 views
Hi

I want to extend the default rich text box
context menu.
I'd like to add a new entry with a submenu entries,
when seelcting such an entry I want to fire some
command thatz inserts fragments into the rrtb doc.
How am I gonna do it?
From what I've read in the forums I need to
implement a custom "IContextMenuContentBuilder"
Is that correct?
And how can I do that without replacing the original ctx menu?

Chris
Robert
Top achievements
Rank 1
 answered on 22 Jun 2012
1 answer
132 views
Hello Telerik Team,

how can i hide the marked border (background of the RadDocument). If it is not possible to hide it, how can i change the color to white or transparant?



best regards

Martin Ivanov
Telerik team
 answered on 22 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?