Telerik Forums
UI for WPF Forum
2 answers
98 views
Hello,

I'm trying to bind a collection of objects that I would like to display in a hierarchical fashion in the radgridview. I have one parent item that has roughly about 600 child items. When I try to expand the parent to display the child items, the process is very slow and takes around 10 seconds to finalize the display. Has anyone here had the same experience when trying to display a large child set? Andi if so, what solution did you find fixed the problem?

Thanks in advance.
Chris Andrade
Top achievements
Rank 1
 answered on 18 Mar 2010
1 answer
81 views
I have
in xaml the following GridViewColumn in

<ctrls:RadGridView >
            <telikControls:RadGridView.Columns>
<telikControls:GridViewComboBoxColumn
                        Name="dboDocCollections"
                        Header="Some Header"
                        IsReadOnly="True"
                        IsGroupable="True"
                        SelectedValueMemberPath="Id"
                        DisplayMemberPath="Name"
                        DataMemberBinding="{Binding Path=Batch.DocCollectionId}"

i have a structure for GridViewComboBoxColumn:
  Class Dummy
    { public long Id {get;set};
      public Name{get;set;}
     }

.............................
Code behind I'm assign a source (List<Dummy>()) for GridViewCombo, but the RadGridView don't display data (DisplayMember) accordingly for Combo source assigned.

I want to mention that in previous version of RadGridView  assembly same code worked ok!
Pavel Pavlov
Telerik team
 answered on 17 Mar 2010
9 answers
228 views
hai

am trying to run the wpf demo. if goes downloadind upto 10 mb after that it shows Application download Error

below is the error log
what the problem is?

PLATFORM VERSION INFO
 Windows    : 5.2.3790.131072 (Win32NT)
 Common Language Runtime  : 2.0.50727.3053
 System.Deployment.dll   : 2.0.50727.3053 (netfxsp.050727-3000)
 mscorwks.dll    : 2.0.50727.3053 (netfxsp.050727-3000)
 dfshim.dll    : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
 Deployment url   : http://demos.telerik.com/wpf/
 Application url   : http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe.manifest

IDENTITIES
 Deployment Identity  : Telerik.Windows.Examples.xbap, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil
 Application Identity  : Telerik.Windows.Examples.exe, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=06e954e71cc7b2f5, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
 * Online only application.
 * Browser-hosted application.

ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * An exception occurred while downloading the application. Following failure messages were detected:
  + Downloading http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe did not succeed.
  + The operation has timed out

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 No phase information is available.

ERROR DETAILS
 Following errors were detected during this operation.
 * [3/10/2010 4:34:48 PM] System.Deployment.Application.DeploymentDownloadException (Unknown subtype)
  - Downloading http://demos.telerik.com/wpf/Telerik.Windows.Examples.exe did not succeed.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
   at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
   at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
   at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
   at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()
  --- Inner Exception ---
  System.Net.WebException
  - The operation has timed out
  - Source: System
  - Stack trace:
   at System.Net.HttpWebRequest.GetResponse()
   at System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 


Hristo
Telerik team
 answered on 17 Mar 2010
1 answer
170 views
Hi, Telerik.
I need your help.

I am working with Telerik RadGridView. RadGridView displays hierarchial manner.

Then I want to get  the data of a selected child gridview row and display the data in a new Page for Editing in the MouseDoubleClick event.

Is there any way for me to accomplish this?

Thank you!
Pavel Pavlov
Telerik team
 answered on 17 Mar 2010
1 answer
139 views
I would like to display the calendar in as small an area as possible and so would prefer to show only the first letter of each day (M,T,W... in English). How could I do this?

Also, I would find it useful to have a calendar that is a single column (or row) or number - a 'one line' calendar. The one square view that the present calendar has can be awkward in some form designs.  A datepicker is not appropriate here as it is required to see all dates in a month.

Thanks

jas
Kaloyan
Telerik team
 answered on 17 Mar 2010
1 answer
276 views
I ran into a bug with the RadSlider that tripped me up for a few hours.  There's an easy workaround, but I figured that this is the sort of thing that you'd want to know about so you could fix it.

Synopsis:
When a RadSlider is databound to an object, if the value that is bound to the Minimum property is set prior to setting the object that is bound to the Maximum value then your application will terminate with a StackOverflowException.

What ends up happening, (as far as I can tell), is that internally the API sees that Minimum has been set to X and so reacts by setting SelectionStart = Minimum.  The API then notices that SelectionStart > SelectionEnd and so sets SelectionStart to 0.  This cycle repeats until the stack is blown:  Selection start goes back to X, then 0, then X, then 0, then.....

Reproduction case:
I created a simple little WPF app to reproduce this problem.

XAML:
<Window x:Class="TelerikStackoverflowRepro.MainWindow" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" Title="MainWindow" Height="350" Width="525"
    <Grid> 
        <telerik:RadSlider Name="NumericSlider" Minimum="{Binding Minimum}" Maximum="{Binding Maximum}"                           
                           SelectionEnd="{Binding SelectionEnd, Mode=TwoWay}" SelectionStart="{Binding SelectionStart, Mode=TwoWay}" IsSelectionRangeEnabled="True"/> 
    </Grid> 
</Window> 
 


C#:
using System; 
using System.Windows; 
 
namespace TelerikStackoverflowRepro 
    public partial class MainWindow : Window 
    { 
        public MainWindow() 
        { 
            InitializeComponent(); 
 
            var data = new SelectionData(); 
            data.Initialize(); 
 
            this.DataContext = data; 
 
        } 
    } 
 
    public class SelectionData 
    { 
        private int min; 
        private int max; 
        private int selectionStart; 
        private int selectionEnd; 
         
        public int Minimum 
        { 
            get 
            { 
                return min; 
            } 
            set 
            { 
                min = value; 
                Console.WriteLine("Minimum set to " + min); 
            } 
        } 
 
        public int Maximum 
        { 
            get 
            { 
                return max; 
            } 
            set 
            { 
                max = value; 
                Console.WriteLine("Maximum set to " + max); 
            } 
        } 
 
        public int SelectionStart 
        { 
            get 
            { 
                return selectionStart; 
            } 
            set 
            { 
                selectionStart = value; 
                Console.WriteLine("SelectionStart set to " + selectionStart); 
            } 
        } 
 
        public int SelectionEnd 
        { 
            get 
            { 
                return selectionEnd; 
            } 
            set 
            { 
                selectionEnd = value; 
                Console.WriteLine("SelectionEnd set to " + selectionEnd); 
            } 
        } 
 
        public void Initialize() 
        { 
            Minimum = 6; 
            Maximum = 12; 
        } 
 
    } 
 

You can look at your console output to see the problem as it happens.

Workaround:
Setting Maximum prior to Minimum completely avoids this glitch, which is fine for now.  Hopefully you folks can patch this up so that others don't need to spend the time scratching their heads and trying to figure out what went horribly wrong with their code. =)
Kiril Stanoev
Telerik team
 answered on 17 Mar 2010
1 answer
41 views
hi!!

i have 2 texbox and i need to use them in all of the tab items

like a general controls for the tab

what can i do?

thanks for your help

oscar zapata
Miro Miroslavov
Telerik team
 answered on 17 Mar 2010
1 answer
62 views
I have the following GridViewDataColumns -

PRICE PER UNIT           QUANTITY          TOTAL COST (price/unit x quantity)

I want to update the total cost when either the unit price or the quantity changes. I'm not able to find the perfect event. I am not using CurrentCellChanged because that event will fire when cells in other columns change too (I have more columns than i've mentioned here).

Do help me out team !!!

Thanx. 
Jimit
Stefan Dobrev
Telerik team
 answered on 17 Mar 2010
2 answers
312 views

I'm using the RadMap control for an address location project. From a list, the user selects an address (lat, lon) and a Bing map is centered in the RadMap control. This works just fine. The map is drawn with the selected address centered in the RadMap control.

Now, I want to add a pushpin at the address location. Using the code below, my image is inserted but not at the correct location. The center of the 16x16 pushpin is actually the upper left corner of the RadMap control. The pushpin needs to be in the center (at least initially) of the RadMap. If the user zooms and/or pans, the pushpin also needs to pan/zoom in order to show the selected address.

This does not appear to an issue with screen coordinates vs. geographic coordinates. The upper left corner of the RadMap is 300,400 and the geographic coords are +45 (N), -90 (W). If I move the RadMap around in design and run the app again, the pushpin is always in the upper left corner.

What am I doing wrong?

Thanks,
Scott

 

 

            radMap1.Provider = new BingMapProvider(MapMode.Road, true, BingMapsKey);  
            radMap1.Center = new Location(selectedResult.Latitude, selectedResult.Longitude);  
            radMap1.ZoomLevel = 15;  
 
 
            MapPinPoint pinPoint = new MapPinPoint()  
            {  
                Background = new SolidColorBrush(Colors.White),  
                Foreground = new SolidColorBrush(Colors.Red),  
                FontSize = 14,  
                ImageSource = new BitmapImage(new Uri(@"C:\Users\XXX\Desktop\location_16x16.png", UriKind.Absolute))  
            };  
 
              
 
            MapLayer.SetLocation(pinPoint, new Location(selectedResult.Latitude, selectedResult.Longitude));  
              
            InformationLayer layer = new InformationLayer();  
            layer.Items.Add(pinPoint);  
            radMap1.Items.Add(layer); 

 

Scott
Top achievements
Rank 1
 answered on 16 Mar 2010
5 answers
203 views
Hi,

i'm using this build - RadControls_for_WPF_2009_3_1314_TRIAL.msi
coding with C# 3.5 on vs2008 and windows xp.

i got a little problem with binding of the control.

i have the following XAML:
<radInput:RadDatePicker Name="myDatePicker" /> 
<Label Content="{Binding ElementName=myDatePicker, Path=SelectedDate}" /> 

the label doesn't show the Selected Date, am i doing something wrong?

i've tried to make the same binding with TextBlock or TextBox and the same problem exists.
i've tried to bind RadTimePicker to these controls with the same Binding syntax and it doesn't work either.

thanks in advance,
Lior.
Konstantina
Telerik team
 answered on 16 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?