Telerik Forums
UI for WPF Forum
7 answers
242 views

Hi,

I work with cartesian charts using a large number of series with a large number of points.
In example, 25 series with 150.000 points each.
All work pretty good but not if Zoom and/or Trackball is enabled.
I understand that this require a lot of processor use.

The two theoretical problems that occurs is:

1) For TrackBall: Find, for each Series, the points closer to one x value.
2) For Zoom: Find, for each series, points between x-min and x-max.

Now, I work with ordered datasets, so I can provide myself the methods that solve 1 and 2 efficently.

So my question.

I can override some methods in CartesiaChart, ChartPanAndZoomBehavior, ChartTrackBallBehavior, Other Classes, that can allow me to use this features also in giant charts? Or I can provide a "DataSourceManager" that solve efficently this problemns?

Thanks,
marcello

Martin Ivanov
Telerik team
 answered on 17 Aug 2016
1 answer
432 views

Hello,

When using an "ultra wide" monitor, with a 21:9 aspect ratio, and 3440x1440 resolution, RadDesktopAlerts do not appear at the edge of the screen, but towards the center.

Is there any way to adjust this behaviour? Thanks

(Screenshot attached)

Kalin
Telerik team
 answered on 17 Aug 2016
1 answer
94 views

Hi,

I want to set a center point (0,0 position) mark in diagram.

Is there a way I can set the mark without customer diagram shapes?

 

Regards,

Haochen.Ye

8/16/2016

Martin Ivanov
Telerik team
 answered on 17 Aug 2016
1 answer
113 views

Can anyone tell me how to get the second level items to behave like the first level items? I would expect any level that has children to show an expander. In my example, the Send Items header should have an expander icon.

 

<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:System="clr-namespace:System;assembly=mscorlib"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:Calendar="clr-namespace:Telerik.Windows.Controls.Calendar;assembly=Telerik.Windows.Controls.Input" xmlns:Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
xmlns:Animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls.Navigation"
x:Class="WpfApplication2.MainWindow"
Title="MainWindow" Height="500" Width="525">
<Window.Resources>
</Window.Resources>
<Grid>
<telerik:RadPanelBar Margin="10" Width="280" Height="300">
<telerik:RadPanelBarItem Header="Mail">
<telerik:RadPanelBarItem Header="Personal Folder" />
<telerik:RadPanelBarItem Header="Delete Items" />
<telerik:RadPanelBarItem Header="Inbox" />
<telerik:RadPanelBarItem Header="Send Items" >
<telerik:RadPanelBarItem Header="Personal Folder" />
<telerik:RadPanelBarItem Header="Delete Items" />
<telerik:RadPanelBarItem Header="Inbox" />
<telerik:RadPanelBarItem Header="Send Items" />
<telerik:RadPanelBarItem Header="OutBox" />
<telerik:RadPanelBarItem Header="Search Folders" />
</telerik:RadPanelBarItem>
<telerik:RadPanelBarItem Header="OutBox" />
<telerik:RadPanelBarItem Header="Search Folders" />
</telerik:RadPanelBarItem>
<telerik:RadPanelBarItem Header="Contacts">
<telerik:RadPanelBarItem Header="My Contacts" />
<telerik:RadPanelBarItem Header="Address Cards" />
<telerik:RadPanelBarItem Header="Phone List" />
<telerik:RadPanelBarItem Header="Shared Contacts" />
</telerik:RadPanelBarItem>
<telerik:RadPanelBarItem Header="Tasks">
<telerik:RadPanelBarItem Header="My Tasks" />
<telerik:RadPanelBarItem Header="Shared Tasks" />
<telerik:RadPanelBarItem Header="Active Tasks" />
<telerik:RadPanelBarItem Header="Completed Tasks" />
</telerik:RadPanelBarItem>
<telerik:RadPanelBarItem Header="Notes">
<telerik:RadPanelBarItem Header="My Notes" />
<telerik:RadPanelBarItem Header="Notes List" />
<telerik:RadPanelBarItem Header="Shared Notes" />
<telerik:RadPanelBarItem Header="Archive" />
</telerik:RadPanelBarItem>
<telerik:RadPanelBarItem Header="Folders List">
<telerik:RadPanelBarItem Header="My Client.Net" />
<telerik:RadPanelBarItem Header="My Profile" />
<telerik:RadPanelBarItem Header="My Support Tickets" />
<telerik:RadPanelBarItem Header="My Licenses" />
</telerik:RadPanelBarItem>
</telerik:RadPanelBar>
</Grid>
</Window>

Martin Ivanov
Telerik team
 answered on 17 Aug 2016
1 answer
149 views

Hi dear telerik supporters,

I need to add a custom shape from a ribbon (not diagram toolbox) to the wpf diagram control in the way that the user can drag the ribbon button to the diagram control and drop it in the right position to draw it. how can I do that?

Best regards,

Petar Mladenov
Telerik team
 answered on 17 Aug 2016
2 answers
358 views

I have a RadListBox that I am dragging items to a RadDiagram. This part works, but I can't figure out how to prevent reorder from within the RadListBox. I have tried several things. I just want to prevent the horizontal line from showing when the item is dragged away from the listboxand move to a different position within the list box.

 

This is my current code.

Xaml (Simplified to focus on problem)

01.<UserControl>
02.    <UserControl.Resources>
03.        <Style x:Key="DraggableListBoxItem" TargetType="telerik:RadListBoxItem" BasedOn="{StaticResource RadListBoxItemStyle}">
04.            <Setter Property="telerik:DragDropManager.AllowDrag" Value="True" />
05.        </Style>
06.    </UserControl.Resources>
07. 
08.    <Grid Margin="5">
09.        <Grid.ColumnDefinitions>
10.            <ColumnDefinition Width="Auto" />
11.            <ColumnDefinition Width="*" />
12.        </Grid.ColumnDefinitions>     
13. 
14.        <Grid>
15.            <telerik:RadListBox Margin="0 10 0 0" Width="250" Grid.IsSharedSizeScope="True"
16.                            Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" AllowDrop="False"
17.                            ItemContainerStyle="{StaticResource DraggableListBoxItem}"
18.                            ItemsSource="">
19.                <telerik:RadListBox.DragDropBehavior>
20.                    <behaviors:DatasourceDragDropBehavior AllowReorder="False" />
21.                </telerik:RadListBox.DragDropBehavior>
22. 
23.                <telerik:RadListBox.DragVisualProvider>
24.                    <telerik:ScreenshotDragVisualProvider />
25.                </telerik:RadListBox.DragVisualProvider>
26. 
27.                <telerik:RadListBox.ItemTemplate>
28.                    <DataTemplate>
29.                        <Grid>
30.                        </Grid>
31.                    </DataTemplate>
32.                </telerik:RadListBox.ItemTemplate>
33.            </telerik:RadListBox>
34.        </Grid>
35. 
36.        <Grid>
37.            <telerik:RadDiagram IsSnapToGridEnabled="True" BorderThickness="1" BorderBrush="Black">
38.            </telerik:RadDiagram>
39.        </Grid>
40.    </Grid>
41.</UserControl>

Behavior

01.     class DatasourceDragDropBehavior : ListBoxDragDropBehavior
02.    {
03.        public override void DragDropCompleted(DragDropState state)
04.        {
05.            //implement some custom logic here
06.            //Do not call -> base.DragDropCompleted(state);
07.        }
08. 
09.        public override bool CanDrop(DragDropState state)
10.        {
11.            return state.IsSameControl == false;
12.        }
13.    }

Datafyer
Top achievements
Rank 1
Veteran
 answered on 16 Aug 2016
9 answers
940 views
I use RadGridView , my business is display stock market ,so high performance is a must .
When i use  Regular WPF DataGrid with MVVM Design Pattern it's working very good for my , when i replace  (WPF DataGrid) with (RadGridView ) the performance became very bad  , your fast response is highly appreciated , See  the the Following

View Model :
using INtra_Day_EXplorer.Business_Logic;<br>using ServiceClient.HistoricalINDEXServiceClient;<br>using System;<br>using System.Collections.Generic;<br>using System.Collections.ObjectModel;<br>using System.ComponentModel;<br>using System.Dynamic;<br>using System.Linq;<br>using System.Text;<br>using System.Windows.Documents;<br>using System.Timers;<br>using System.Diagnostics;<br>using System.Threading;<br>using System.Windows.Threading;<br><br>namespace INtra_Day_EXplorer.View<br>{<br>    class Market<br>    {<br>        #region FBD - MSeif - 29-10-2013 Properties<br>        private MarketWatch[] data = null;<br>        private Stopwatch stopWatch = new Stopwatch();<br>        private ServiceWrapper serviceWrapper = ServiceWrapper.GetSingleton();<br>        IEnumerable<short> IntCompanyCode { get; set; }<br>        IEnumerable<short> IntSectorCode { get; set; }<br>        List<short> CompaniesSectorsCodes { get; set; }<br>        private dynamic ExpandoTemplate { get; set; }<br>        public Boolean IsRun { get; set; }<br>        private int index { get; set; }<br>        #endregion<br><br>        #region FBD - MSeif - 28-10-2013 - Binding Lists for (Sector/Comapny/Comapies inside Sctors)<br>        private ObservableCollection<ExpandoObject> bindingList_CurrentCompanyWatch = new AsyncObservableCollection<ExpandoObject>();<br>        public ObservableCollection<ExpandoObject> BindingList_CurrentCompanyWatch<br>        {<br>            get { return bindingList_CurrentCompanyWatch; }<br>            set<br>            {<br>                bindingList_CurrentCompanyWatch = value;<br>            }<br>        }<br><br>        private ObservableCollection<ExpandoObject> bindingList_CurrentSectorWatch = new AsyncObservableCollection<ExpandoObject>();<br>        public ObservableCollection<ExpandoObject> BindingList_CurrentSectorWatch<br>        {<br>            get { return bindingList_CurrentSectorWatch; }<br>            set<br>            {<br>                bindingList_CurrentSectorWatch = value;<br>            }<br>        }<br><br>        private ObservableCollection<ExpandoObject> bindingList_CurrentSectorDetailsWatch = new AsyncObservableCollection<ExpandoObject>();<br>        public ObservableCollection<ExpandoObject> BindingList_CurrentSectorDetailsWatch<br>        {<br>            get { return bindingList_CurrentSectorDetailsWatch; }<br>            set { bindingList_CurrentSectorDetailsWatch = value; }<br>        }<br>        #endregion<br><br>        /// <summary><br>        /// FBD - MSeif - 28-10-2013 <br>        /// Get List Of Codes(Sctor/Company) and start Load data to Binding Lists (Using Backgroud thread)<br>        /// </summary><br>        public Market()<br>        {<br>            //get companies Codes<br>            IntCompanyCode = CompanyManager.WorkingCompanies.FindAll((CompanyInfo cinfo) => cinfo.Code <= MainData.LAST_COMPANY_CODE && cinfo.Code >= MainData.FIRST_COMPANY_CODE).Select(c => c.Code);<br>            //get sectors Codes<br>            IntSectorCode = CompanyManager.WorkingCompanies.FindAll((CompanyInfo cinfo) => cinfo.Code <= MainData.LAST_PDS_CODE).Select(c => c.Code);<br>            //set all codes(sectors/comapnies) in one list<br>            CompaniesSectorsCodes = IntCompanyCode.ToList();<br>            for (int i = 0; i < IntSectorCode.ToList().Count; i++)<br>            {<br>                CompaniesSectorsCodes.Add(IntSectorCode.ToList()[i]);<br>            }<br>            IsRun = true;//allow load data from WCF service<br><br>            // Create new instance of the thread.<br>            Thread marketWatchThrd = new Thread(new ThreadStart(RunMarketWatch));<br>            // Set the thread to be a background one<br>            marketWatchThrd.IsBackground = true;<br>            // Start the order book requests<br>            marketWatchThrd.Start();<br><br>        }<br><br>        /// <summary><br>        /// FBD - MSeif - 28-10-2013<br>        /// Get Data from WCF service and bind this data to it's List(Sectors/Companies)<br>        /// </summary><br>        protected void RunMarketWatch()<br>        {<br>            while (IsRun)<br>            {<br>                try<br>                {<br>                    //Load Data For (Sctors/Companies)<br>                    data = serviceWrapper.ServiceReference.GetCurrentMarketWatch(CompaniesSectorsCodes.ToArray());<br>                    if (data != null)<br>                    {<br>                        for (int i = 0; i < data.Length; i++)<br>                        {<br>                            // sector check<br>                            if (data[i].SymbolID <= MainData.LAST_PDS_CODE)<br>                            {<br>                                ExpandoTemplate = ToDynamic(data[i]);//Cast each object(Sector) from BackEnd to be Dynamic object(ExpandoObject)<br>                                index = BindingList_CurrentSectorWatch.Cast<dynamic>().Where(c => c.SymbolID == ExpandoTemplate.SymbolID).Select<dynamic, int>(x => BindingList_CurrentSectorWatch.IndexOf(x)).SingleOrDefault<int>();//Get the Index For Current Sector in the binding list<br><br>                                if (IntSectorCode.ToList().Count > BindingList_CurrentSectorWatch.Count)<br>                                    BindingList_CurrentSectorWatch.Add(ExpandoTemplate);//add new sector to the binding list<br>                                else<br>                                {<br>                                    BindingList_CurrentSectorWatch[index] = ExpandoTemplate;//Edit sector to the binding list<br>                                }<br>                            }<br>                            else//Companies check<br>                            {<br>                                ExpandoTemplate = ToDynamic(data[i]);//Cast each object(company) from BackEnd to be Dynamic object(ExpandoObject)<br>                                index = BindingList_CurrentCompanyWatch.Cast<dynamic>().Where(c => c.SymbolID == ExpandoTemplate.SymbolID).Select<dynamic, int>(x => BindingList_CurrentCompanyWatch.IndexOf(x)).SingleOrDefault<int>();//Get the Index For Current company in the binding list<br><br>                                if (IntCompanyCode.ToList().Count > BindingList_CurrentCompanyWatch.Count)<br>                                    BindingList_CurrentCompanyWatch.Add(ExpandoTemplate);//add new company to the binding list<br>                                else<br>                                {<br>                                    BindingList_CurrentCompanyWatch[index] = ExpandoTemplate;//edit new sector to the binding list<br>                                }<br>                            }<br>                        }<br>                    }<br><br>                }<br>                catch (Exception ex)<br>                {<br>                    String str = ex.Message;<br>                    // throw;<br>                }<br>                Thread.Sleep(200);<br>            }<br><br>        }<br><br>        /// <summary><br>        /// FBD - MSeif - 28-10-2013<br>        /// Cast any object to Dynamic object(ExpandoObject)<br>        /// </summary><br>        /// <param name="value">Object to be Cast</param><br>        /// <returns>Dynamic Object(Exbando Object)</returns><br>        public static dynamic ToDynamic(object value)<br>        {<br>            IDictionary<string, object> expando = new ExpandoObject();<br><br>            foreach (PropertyDescriptor property in TypeDescriptor.GetProperties(value.GetType()))<br>                expando.Add(property.Name, property.GetValue(value));<br><br>            return expando as ExpandoObject;<br>        }<br><br>        /// <summary><br>        /// FBD - MSeif -29-10-2013<br>        /// Load Childs Companies to Specific sector<br>        /// </summary><br>        /// <param name="SectorSymbolID"Sector Symbol ID></param><br>        public void LoadChilds(short[] codes)<br>        {<br>            data = (dynamic)serviceWrapper.ServiceReference.GetCurrentMarketWatch(codes);<br>            if (data != null)<br>            {<br>                bindingList_CurrentSectorDetailsWatch = (dynamic)(data);//new ObservableCollection<MarketWatch><br>            }<br>        }<br><br><br><br><br>    }<br>}<br><div></div>
XAML :
<div><UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" <br>             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" <br>             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" <br>             xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=QuickStart.Common" <br>             xmlns:local="clr-namespace:INtra_Day_EXplorer.View.UserControls" <br>             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" <br>             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" <br>             mc:Ignorable="d" <br>             x:Class ="INtra_Day_EXplorer.View.UserControls.ucMarketWatch"<br>             xmlns:MarketWatch="clr-namespace:INtra_Day_EXplorer.View" <br>             d:DesignWidth="535" d:DesignHeight="205"><br>    <UserControl.Resources><br>        <DataTemplate x:Key="StockChangeTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding Change}" OldStockPrice="{Binding ChangePrev}" /><br>        </DataTemplate><br>        <DataTemplate x:Key="StockChangePercTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding ChangePerc}" OldStockPrice="{Binding ChangePercPrev}" /><br>        </DataTemplate><br>        <DataTemplate x:Key="StockMoneyValueTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding MoneyValue}" OldStockPrice="{Binding MoneyValuePrev}" /><br>        </DataTemplate><br><br>        <DataTemplate x:Key="StockTradesTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding _trades}" OldStockPrice="{Binding TradesPrev}" /><br>        </DataTemplate><br>        <DataTemplate x:Key="StockTransactionPriceTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding _transactionPrice}" OldStockPrice="{Binding TransactionPricePrev}" /><br>        </DataTemplate><br>        <DataTemplate x:Key="StockVolumeTemplate"><br>            <local:ucStockPricePresenter StockPrice="{Binding Volume}" OldStockPrice="{Binding VolumePrev}" /><br>        </DataTemplate><br><br>        <Style x:Key="DataGridContentCellCentering" TargetType="{x:Type DataGridCell}"><br>            <Setter Property="Template"><br>                <Setter.Value><br>                    <ControlTemplate TargetType="{x:Type DataGridCell}"><br>                        <Grid Background="{TemplateBinding Background}"><br>                            <ContentPresenter VerticalAlignment="Center" /><br>                        </Grid><br>                    </ControlTemplate><br>                </Setter.Value><br>            </Setter><br>        </Style><br>        <br>        <MarketWatch:Market x:Key="Market"></MarketWatch:Market><br>    </UserControl.Resources><br>    <Grid DataContext="{StaticResource Market}"><br>        <Grid.RowDefinitions><br>            <RowDefinition Height="20"></RowDefinition><br>            <RowDefinition Height="21*"></RowDefinition><br>        </Grid.RowDefinitions><br>        <br>        <Grid Grid.Row="0"><br>            <Grid.ColumnDefinitions><br>                <ColumnDefinition Width="5*"/><br>                <ColumnDefinition Width="6*"/><br>            </Grid.ColumnDefinitions><br>            <Canvas Grid.Column="1" ><br>               <br>                <telerik:RadComboBox  x:Name="cb_View" SelectionChanged="cb_View_SelectionChanged"  Width="80" Canvas.Right="10"  Canvas.Top="5" Grid.Column="1" SelectedIndex="0" ><br>                    <telerik:RadComboBoxItem Content="Company"/><br>                    <telerik:RadComboBoxItem Content="Sector"/><br>                </telerik:RadComboBox><br>                <telerik:RadComboBox  x:Name="cb_Currency"  Canvas.Right="95" Canvas.Top="5" Width="60"  /><br>                <TextBox Name="txt_Rate" Text="{Binding ChangePrev}" Canvas.Top="5" Canvas.Right="160" Width="60" TextChanged="txt_Rate_TextChanged" KeyDown="txt_Rate_KeyDown"></TextBox><br>            </Canvas><br>        </Grid><br><br>        <telerik:RadGridView x:Name="grd_Result_Sector"   <br>                             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>                             IsReadOnly ="True"<br>                             Grid.Row="1"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> RowIndicatorVisibility="Collapsed"<br>                             BorderThickness="1"<br>                             BorderBrush="#3090C7"<br>                             Visibility="Hidden"<br>                             ItemsSource="{Binding BindingList_CurrentSectorWatch}"<br><span class="Apple-tab-span" style="white-space:pre">                            </span> IsFilteringAllowed="True" Margin="1,10,1,1" ShowGroupPanel="False"<br>                             AlternationCount="2"><br>            <telerik:RadGridView.Columns><br>                <telerik:GridViewDataColumn Header="Name"   DataMemberBinding="{Binding CompanyName}"  Width="*" /><br>                <telerik:GridViewDataColumn Header="Code"  DataMemberBinding="{Binding SymbolID,StringFormat={}{0:0.####}}"  Width="*" /><br>                <telerik:GridViewDataColumn Header="Change" CellTemplate="{StaticResource StockChangeTemplate}"  DataMemberBinding="{Binding Change}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Change Percentage" CellTemplate="{StaticResource StockChangePercTemplate}" DataMemberBinding="{Binding ChangePerc}" DataFormatString="{}{0:C}" Width="*" /><br><br>                <telerik:GridViewDataColumn Header="Money Value" CellTemplate="{StaticResource StockMoneyValueTemplate}" DataMemberBinding="{Binding MoneyValue}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Trades" CellTemplate="{StaticResource StockTradesTemplate}" DataMemberBinding="{Binding _trades}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Transaction Price" CellTemplate="{StaticResource StockTransactionPriceTemplate}" DataMemberBinding="{Binding _transactionPrice}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Volume" CellTemplate="{StaticResource StockVolumeTemplate}" DataMemberBinding="{Binding Volume}" DataFormatString="{}{0:C}" Width="*" /><br>            </telerik:RadGridView.Columns><br><br>        </telerik:RadGridView><br>        <telerik:RadGridView x:Name="grd_Result_Company"   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>                             IsReadOnly ="True"<br>                             Grid.Row="1"<br><span class="Apple-tab-span" style="white-space:pre">                         </span> RowIndicatorVisibility="Collapsed"<br>                             BorderThickness="1"<br>                             BorderBrush="#3090C7"<br>                             Visibility="Visible"<br>                             ItemsSource="{Binding BindingList_CurrentCompanyWatch}"<br><span class="Apple-tab-span" style="white-space:pre">                          </span> IsFilteringAllowed="True" Margin="1,10,1,1" ShowGroupPanel="False"<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}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Change Percentage" CellTemplate="{StaticResource StockChangePercTemplate}" DataMemberBinding="{Binding ChangePerc}" DataFormatString="{}{0:C}" Width="*" /><br><br>                <telerik:GridViewDataColumn Header="Money Value" CellTemplate="{StaticResource StockMoneyValueTemplate}" DataMemberBinding="{Binding MoneyValue}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Trades" CellTemplate="{StaticResource StockTradesTemplate}" DataMemberBinding="{Binding _trades}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Transaction Price" CellTemplate="{StaticResource StockTransactionPriceTemplate}" DataMemberBinding="{Binding _transactionPrice}" DataFormatString="{}{0:C}" Width="*" /><br>                <telerik:GridViewDataColumn Header="Volume" CellTemplate="{StaticResource StockVolumeTemplate}" DataMemberBinding="{Binding Volume}" DataFormatString="{}{0:C}" Width="*" /><br>            </telerik:RadGridView.Columns><br>        </telerik:RadGridView><br><br><br><br>    </Grid><br></UserControl><br><div><br></div><br></div>
In Code Behind :
I Only Declare Market Object :
 Market objMarket = new Market(); 
Stefan Nenchev
Telerik team
 answered on 16 Aug 2016
14 answers
189 views
I have nested sub grid views in my main grid view.

I use this technique for the sub grid:

<tk:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <tk:RadGridView

I use DataFormatString binding like this in the sub grid:

<tk:GridViewDataColumn DataMemberBinding="{Binding Path=CustomerObject.Birthday}"
                                       DataFormatString="{Binding Path=CustomerObject.BirthdayFormatString}"

The "Birthday" value binds just fine but for some reason, the "BirthdayFormatString" binding gets completely ignored. I don't even get a binding error in the console debug output. If I set "DataFormatString" to some constant value like "d" it formats correctly.

It seems that a binding does not get resolved correctly in nested sub grids.

Note that the same technique works fine in the main grid view.
Phillip
Top achievements
Rank 1
 answered on 16 Aug 2016
2 answers
214 views

Hi,

I have a RadRibbonDropDownButton which has RadContextMenu set to its DropDownContent. My issue is after selection of any RadMenuItem we perform some action & dropdown gets closed but the focus is still set to the RadRibbondropDownButton due to which upon any other RadButton selection within the same RadRibbon doesn't not allow me select for the first click & upon next click the focus is lost for the RadRibbondropDownButton & things are normal.

Why does the RadRibbondropDownButton has this Focus issue?? I have read somewhere that: "Setting the RadContextMenu as direct content in DropDownButton could lead to various focus issues which need additional code to bypass. For direct content in Popups/DropDownContents its better to use RadMenu instead of RadContextMenu". I have replaced RadContextMenu with RadMenu but still issue persists.

Did someone faced the same issue??

Regards,

Deepthi

 

deepthi
Top achievements
Rank 1
 answered on 16 Aug 2016
1 answer
214 views

Hello!

Our application is hosted on a Citrix/XenApp server and we are using the PersistenceFramework from Telerik.

On Citrix/XenApp we have the problem, that the IsolatedStorage will be lost each time, a user is signing off from his computer - so the files in the "Local"-folder are deleted.

Is there a way to save the files in the Roaming-folder?

 

thx

Ludwig

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Aug 2016
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
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
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?