Telerik Forums
UI for WPF Forum
7 answers
609 views
Hi,
i have multiple y-axis in my graph which is being plotted dynamically and name associated with it comes on the basis of selection done in dropdown list.my project follows MVVM architecture. x-axis represents time.so i need to generate all y values for particular time and then add the lineseries to the Series dynamically. problem is that graph is being plotted but could not be seen.
       
private void LoadData()
        {
            rnd = new Random();
            GraphDatas = new ObservableCollection<GraphData>();
            GraphData gd = null;
            Linearaxis = new List<LinearAxis>();
            for (int x = 0; x < 35; x++)
            {
                foreach (WeldDataMapping _weldDataMapping in _arrayOfWeldDataMapping.Where(ab => ab.IsSelected))
                {
                    GraphDatas = new ObservableCollection<GraphData>();
                    gd = new GraphData();
                    gd.XValue = x;

                    gd.YValue = rnd.NextDouble() * 100 ;
                    GraphDatas.Add(gd);


                    LineSeries line = new LineSeries();
                    Brush objBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString(_weldDataMapping.WeldDataColor));
                    if (!Linearaxis.Any(ab => ab.Title.ToString() == _weldDataMapping.WeldDataName))
                    {

                        LinearAxis yaxis = new LinearAxis { Title = _weldDataMapping.WeldDataName, Foreground = objBrush, LineStroke = objBrush, FontSize = 15 };
                        line.VerticalAxis = yaxis;
                        Linearaxis.Add(yaxis);
                        line.Name = _weldDataMapping.WeldDataName;
                        line.Stroke = new SolidColorBrush((Color)ColorConverter.ConvertFromString(_weldDataMapping.WeldDataColor));
                        line.DisplayName = _weldDataMapping.WeldDataName;
                        line.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "XValue" };
                        line.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "YValue" };
                        line.ItemsSource = GraphDatas;
                        //adds the lineseries to the graph.
                        _graphView.xCartesianGraph.Series.Add(line);
                    }

                    else
                    {

                        line.VerticalAxis = Linearaxis.FirstOrDefault(ab => ab.Title.ToString() == _weldDataMapping.WeldDataName);
                        line.Name = _weldDataMapping.WeldDataName;
                        line.Stroke = new SolidColorBrush((Color)ColorConverter.ConvertFromString(_weldDataMapping.WeldDataColor));
                        line.DisplayName = _weldDataMapping.WeldDataName;
                        line.CategoryBinding = new PropertyNameDataPointBinding() { PropertyName = "XValue" };
                        line.ValueBinding = new PropertyNameDataPointBinding() { PropertyName = "YValue" };
                        line.ItemsSource = GraphDatas;
                        //adds the lineseries to the graph.
                        _graphView.xCartesianGraph.Series.Add(line);
                    }
                    

                }
            }
        }

please provide me the solution asap.
Senthil kumar
Top achievements
Rank 1
 answered on 09 Oct 2013
2 answers
158 views
Hi,

Is RadWrapper Ok to use?  I added the radwrapper.dll to my project, then my app crashes when I close the app.  I did not even reference it my code.  When I remove the radwrapper.dll the app does not crash.  Can you shed any light on the use, value etc of this dll.  I am trying to replace the MS MessageBox.  If not this dll do you have any code to replace the MessageBox.  To be specific I want a messagebox that contains New, Save and Cancel buttons and returns the button pressed.  See link below about radwrapper.dll.

Thanks
Rich

http://www.codeproject.com/Articles/164934/RadMessageBox-for-the-Telerik-WPF-Controls
Richard Harrigan
Top achievements
Rank 1
 answered on 09 Oct 2013
0 answers
81 views
Hi,
I am using RadGridView with RowDetailsTemplate, the issue is user has to click on the + or - symbol to expand/collapse.
User is expecting that expand/collapse should happen when they are clicking anywhere within the square surrounding the + or + symbol
Could any one help?





										
Member
Top achievements
Rank 1
 asked on 08 Oct 2013
0 answers
188 views
I need to create high performance grid inside grid when i use (RowDetailsTemplate) telerik generate dynamic sub grid instead of the the one i define it 

* when i use (HierarchyChildTemplate
) it works fine but there is big delay when expand row to show it's detail

* what is the different between (HierarchyChildTemplate) and (RowDetailsTemplate)

Code :

 <telerik:RadGridView x:Name="grd_Result_Sector"   GroupRenderMode="Flat"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> AutoGenerateColumns="False"<br><span class="Apple-tab-span" style="white-space:pre">                            </span> CanUserFreezeColumns="True"<br>                             CanUserDeleteRows="True"<br>                             CanUserInsertRows="False"<br>                             ItemsSource="ChildEntities"<br>                             IsReadOnly ="True"<br>                             Grid.Row="1"<br><span class="Apple-tab-span" style="white-space:pre">                          </span> RowIndicatorVisibility="Collapsed"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> IsFilteringAllowed="False" Margin="10,10,10,5" ShowGroupPanel="False"<br>                             telerik:StyleManager.Theme="Windows8Touch"<br>                             AlternationCount="2"><br>            <telerik:RadGridView.Columns><br>                <telerik:GridViewDataColumn Header="Name"  DataMemberBinding="{Binding CompanyName}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Code"  DataMemberBinding="{Binding SymbolID}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Change" CellTemplate="{StaticResource StockChangeTemplate}" DataMemberBinding="{Binding Change}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Change Percentage" CellTemplate="{StaticResource StockChangePercTemplate}" DataMemberBinding="{Binding ChangePerc}" Width="*" /><br><br>                <telerik:GridViewDataColumn Header="Money Value" CellTemplate="{StaticResource StockMoneyValueTemplate}" DataMemberBinding="{Binding MoneyValue}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Trades" CellTemplate="{StaticResource StockTradesTemplate}" DataMemberBinding="{Binding _trades}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Transaction Price" CellTemplate="{StaticResource StockTransactionPriceTemplate}" DataMemberBinding="{Binding _transactionPrice}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Volume" CellTemplate="{StaticResource StockVolumeTemplate}" DataMemberBinding="{Binding Volume}" Width="*" /><br>            </telerik:RadGridView.Columns><br><br>            <telerik:RadGridView.RowDetailsTemplate><br>                <DataTemplate><br>                    <StackPanel Orientation="Horizontal"<br>                        Margin="10,10,10,10"><br>                        <telerik:RadGridView x:Name="CompanyGrid"<br>                        AutoGenerateColumns="False"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> CanUserFreezeColumns="True"<br>                             CanUserDeleteRows="True"<br>                             CanUserInsertRows="False"<br>                             IsReadOnly ="True"<br>                             RowIndicatorVisibility="Collapsed"<br>                             ShowGroupPanel="False"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> IsFilteringAllowed="False"><br>                            <telerik:RadGridView.Columns><br>                                <telerik:GridViewDataColumn Header="Name"  DataMemberBinding="{Binding CompanyName}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Code"  CellTemplate="{StaticResource StockChangeTemplate}"  DataMemberBinding="{Binding SymbolID}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Change"  CellTemplate="{StaticResource StockChangeTemplate}" DataMemberBinding="{Binding Change}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Change Percentage" CellTemplate="{StaticResource StockChangePercTemplate}"  DataMemberBinding="{Binding ChangePerc}" Width="Auto" /><br><br>                                <telerik:GridViewDataColumn Header="Money Value" CellTemplate="{StaticResource StockMoneyValueTemplate}"  DataMemberBinding="{Binding MoneyValue}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Trades" CellTemplate="{StaticResource StockTradesTemplate}" DataMemberBinding="{Binding _trades}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Transaction Price" CellTemplate="{StaticResource StockTransactionPriceTemplate}"  DataMemberBinding="{Binding _transactionPrice}" Width="Auto" /><br>                                <telerik:GridViewDataColumn Header="Volume" CellTemplate="{StaticResource StockVolumeTemplate}"  DataMemberBinding="{Binding Volume}" Width="Auto" /><br>                            </telerik:RadGridView.Columns><br>                        </telerik:RadGridView><br>                    </StackPanel><br>                </DataTemplate><br>            </telerik:RadGridView.RowDetailsTemplate><br>        </telerik:RadGridView>
Mohamed
Top achievements
Rank 1
 asked on 08 Oct 2013
1 answer
51 views
Hi,
I want to change the default options behind filtering. I need to change the background colour of the Filter with my Template Colour.
Need a solution for this kind of customization.

With Thanks,
M.Vinnarasi
Dimitrina
Telerik team
 answered on 08 Oct 2013
1 answer
161 views
Hi,

Is the WPF Control example navigation (in touch mode) TileList? 

If it is, how do I lock the tiles from being moved and set headers (like A-B, C-D)

If not, what control is used for the navigation?

Yoan
Telerik team
 answered on 08 Oct 2013
0 answers
112 views
Hi,

I didn't find Some Controls like Checkbox, TextBlock available in RadControls. And TextBox in RadControls is in the name like RadMaskedTextInput, RadMaskedNumericInput, RadMaskedTextBox. Am I right?

With Thanks,
M.Vinnarasi


Vinnarasi
Top achievements
Rank 1
 asked on 08 Oct 2013
1 answer
129 views
Hallo, 
I need label time intervals. For example:

06:00-13:00 is "SHIFT 1"
14:00-18:00 is "SHIFT 2"
and so on.

Attached you can see an example.
How can I develop something like that?

Thanks
Kalin
Telerik team
 answered on 08 Oct 2013
0 answers
241 views
I'm trying to add a generic footer row to all my GridView via my style by I keep getting the following error.

'{DependencyProperty.UnsetValue}' is not a valid value for property 'FooterRowStyle'.


        <Style TargetType="telerik:RadGridView"
               x:Key="ManagementWithSummaryStyleLocal">
            <Setter Property="RowIndicatorVisibility"
                    Value="Visible" />
            <Setter Property="IsSynchronizedWithCurrentItem"
                    Value="True" />
            <Setter Property="EditTriggers"
                    Value="CellClick" />
            <Setter Property="GroupRenderMode"
                    Value="Flat" />
            <Setter Property="GridLinesVisibility"
                    Value="Both" />
            <Setter Property="CanUserFreezeColumns"
                    Value="False" />
            <Setter Property="AutoGenerateColumns"
                    Value="False" />
            <Setter Property="ShowGroupPanel"
                    Value="False" />
            <Setter Property="CanUserReorderColumns"
                    Value="False" />
            <Setter Property="ValidatesOnDataErrors"
                    Value="Default" />
            <Setter Property="ActionOnLostFocus"
                    Value="CommitEdit" />
            <Setter Property="ShowColumnFooters"
                    Value="True" />
            <Setter Property="FooterRowStyle"
                    Value="{StaticResource ManagementGridViewFooterRowStyleLocal}" />
        </Style>
 
 
        <Style x:Key="ManagementGridViewFooterRowStyleLocal"
               TargetType="{x:Type telerik:GridViewFooterRow}">
            <Setter Property="Template"
                    Value="{StaticResource GridViewFooterRowTemplateLocal}" />
            <Setter Property="MinHeight"
                    Value="24" />
            <Setter Property="BorderThickness"
                    Value="0,0,0,1" />
        </Style>
 
 
 
        <ControlTemplate x:Key="GridViewFooterRowTemplateLocal"
                         TargetType="telerik:GridViewFooterRow">
            <Border MinHeight="{TemplateBinding MinHeight}"
                    Margin="{TemplateBinding Margin}"
                    Background="{TemplateBinding Background}"
                    Padding="{TemplateBinding Padding}">
                <telerik:SelectiveScrollingGrid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <StackPanel Orientation="Horizontal"
                                Margin="5,5,2,2">
                        <TextBlock Text="ITEMS: " />
                        <TextBlock Text="{Binding Items.ItemCount,                             
                                           RelativeSource={RelativeSource AncestorType=telerik:RadGridView}, Mode=OneWay}" />
                    </StackPanel>
                </telerik:SelectiveScrollingGrid>
            </Border>
        </ControlTemplate>



        <telerik:RadGridView Style="{StaticResource ManagementWithSummaryStyleLocal}" />
                   
      


Alex Martin
Top achievements
Rank 1
 asked on 08 Oct 2013
0 answers
163 views
Hi guys,

We use Telerik WPF components in our projects. We have more than one projects in our solution. 

We add "Telerik.Windows.Controls.Navigation.dll" file to the references of one of these projects. And we add the dll file of this project to the references of the main project.

When we rebuild the solution, "Telerik.Windows.Controls.Navigation.dll"  file isn't copied to the output(bin) folder of the main  project.

I googled in Telerik's forum, but there is no total answer for this issue.

My environment has:

Win 7
VS 2010 SP1
SQL Server Express Edition
Telerik WPF Components v Q3 2012 

Could anyone help us? 

Thanks in advance.

Kerem
Kerem
Top achievements
Rank 1
 asked on 08 Oct 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
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?