Telerik Forums
UI for WPF Forum
4 answers
386 views
Hello,

I am deriving from your RadNumericUpDown control and would like to override the DefaultStyleKey property and set my own style. Whenever I do this, I do not get any type of display no matter which properties I set in the new style. My guess is that there is no implementation for the BasedOn attribute for this control, so when I override the DefaultStyleKey I would need to create a new control template. Is there a chance that this feature could be implemented in the future? Or is there another way I could override the DefaultStyleKey without losing the base control template? Any suggestions would be appreciated. Thanks!
Martin
Top achievements
Rank 1
 answered on 25 Mar 2009
3 answers
239 views
Good Afternoon,

In order to implement a scatter graph I have been trying to use a bubble chart, with the intent of setting them to the same size. At best I was able to set all the bubbles to a size of 2.5 if one bubble was large, whihc was set to size 100. The smaller I make this large bubble, the bigger the other bubbles appear.

Obviously I don't fully understand how the bubble chart works, why do you think this is occurring? I saw the Bubble class has a Radius property, although I couldn't see how to set it. Are you able to give me a little example showing this if the radius property is my answer to the problem?

Otherwise, is it possible to remove the lines for the LineChart?

Thank you for your time,

David
Giuseppe
Telerik team
 answered on 25 Mar 2009
1 answer
116 views
Hi,

I have a line chart with about 2000 datapoints (X = DateTime and Y = double).
I'm trying to display this chart with Telerik WPF 2009 Q1, but my Axis X is overflown by label. Indeed, each of my datapoint have a label on Axis X.
So, i'd like to have, for example, only a label each year on Axis X. I'm trying to set the Step Properties on Axis but this propertie seems to be available only for AxisY (and not for the AxisX).

Anybody have an idea ?

Thanks.

G. Moelens
Dwight
Telerik team
 answered on 25 Mar 2009
2 answers
125 views
I have a Y axis that is using tick labels like 1.4 then 1.59999999999999999, 1.799999999999999 etc.. Is there any way i can round the tick points to say 2 dp.

Andrew
David Huxtable
Top achievements
Rank 1
 answered on 25 Mar 2009
1 answer
166 views
I am fairly new to WPF and Telerik controls for WPF.  I have been searching google, these forums, and more to try and figure out what I believe should be easy enough to do.  I would like to set up a RadGridView to have a list of columns in a "style" or resource so I can use it on multiple pages.  Here is an example of what I tried to do:
<Style x:Key="myGrid" TargetType="{x:Type telerik:RadGridView}"
 <Setter Property="Template"
  <Setter.Value> 
   <ControlTemplate TargetType="telerik:RadGridView"
    <AdornerDecorator> 
     <Border Name="PART_MasterGridContainer" Grid.Row="1"  BorderThickness="1" Background="White" BorderBrush="#FF9EB6CE"
      <telerik:GridViewItemsControl x:Name="PART_RootItemsControl" 
       IsHierarchyRoot="{TemplateBinding IsHierarchyRoot}" 
       ParentRow="{TemplateBinding ParentRow}" 
       ScrollMode ="{TemplateBinding ScrollMode}" 
       ShowColumnHeaders="{TemplateBinding ShowColumnHeaders}" 
       ShowGroupPanel="{TemplateBinding ShowGroupPanel}" /> 
     </Border> 
    </AdornerDecorator> 
   </ControlTemplate> 
  </Setter.Value> 
 </Setter> 
 <Setter Property="ColumnsWidthMode" Value="Fill" /> 
 <Setter Property="Width" Value="Auto" /> 
 <Setter Property="Height" Value="Auto" /> 
 <Setter Property="VerticalGridlinesVisibility" Value="Hidden" /> 
 <Setter Property="telerik:RadGridView.Columns"
  <Setter.Value> 
   <telerik:GridViewColumnCollection> 
    <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="Image" UniqueName="ImageName" IsGroupable="False" IsSortable="False" Width="50" CellStyle="{StaticResource ImageCell}" />
    <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ColA" UniqueName="ColA" IsGroupable="False" IsSortable="False" Width="50" /> 
    <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ColB" UniqueName="ColB" IsGroupable="False" IsSortable="False" Width="50" /> 
    <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ColC" UniqueName="ColC" IsGroupable="False" IsSortable="False" Width="50" /> 
    <telerik:GridViewDataColumn DataType="{x:Null}" HeaderText="ColD" UniqueName="ColD" IsGroupable="False" IsSortable="False" Width="50" /> 
   </telerik:GridViewColumnCollection> 
  </Setter.Value> 
 </Setter> 
</Style>
but the "Columns" property is read only.  I tried searching for ways to add items to collections within XAML, but I could not find any ways to do this.  In my mind, this seems like it should be fairly easy to acomplish, but it never truly is :P
Vlad
Telerik team
 answered on 24 Mar 2009
3 answers
162 views
Hello Telerik team,

I have a need in my application to provide basic keyboard navigation while editing cells in a grid and I can't seem to get it to work with the latest version (Q1 2009) of your WPF grid.  I have seen many posts on this forum regarding this topic but none of them provide a complete solution and most of them are for previous versions of the grid.  If it's possible would you be able to provide a complete example that provides the functionality outlined below.  I think an example like this would benefit a lot of people as I believe that this type of functionality should be provided out of the box.

1. If in edit mode, pressing Tab or Shift+Tab should move to the next/previous cell and stay in edit mode
2. If in the last cell of a row, pressing Tab should move to the first cell of the next row and stay in edit mode
3. If in the first cell of a row, pressing Shift+Tab should move to the last cell of the previous row and stay in edit mode
4. Pressing Enter should commit the changes and take you out of edit mode
5. When tabbing between cells, the GridViewDataControl.BeginningEditEvent should still be raised to allow for adding custom editing logic (e.g. populating a cell's combo box editor with a list of values)
6. The solution should work with custom grid editing controls too.  (An example being that I have a combo box control that is editable so that users aren't forced to choose a value from the list)

Thanks,

Joel
Vlad
Telerik team
 answered on 24 Mar 2009
3 answers
60 views
Hi Guys,

There is a bug, but I don't know if it is your or Microsofts.

The Expression Blend 2 IDE loses the reference to the Telerik DLLs after you add an item in the VS2008 IDE.

Here are the steps...

1.  Create a WPF Application project in VS2008 (I used C#)
2.  Add a RadGridControl to the VS2008 Window1.xaml (I used drag and drop)
3.  Save all files in VS2008
4.  Open the project solution in Blend 2 - At this time you will notice the grid displays as expected.
5.  Switch back over to VS2008 and add a UserControl to the project
6.  Save all files in VS2008
7.  Switch back over to Blend 2, and click yes to refresh the project

Once you refresh the project references to the Telerik DLLs are gone (not really gone, but Blend 2 thinks they are).  You can only get the references back by closing the solution and re-opening it.  At that point everything is okay.

Now...  I am using Blend 2 and VS2008 how Microsoft expects me to use them - designing my UI in Blend's rich enviroment and coding in VS2008.  It is going to be a major pain in the backside to constantly have to reload the solution in Blend after adding a file in VS2008.

Again, I don't know who's problem this is but I thought I should report it.

~Mike
Mike
Top achievements
Rank 2
 answered on 24 Mar 2009
2 answers
70 views
Hi Guys,

just to let you know. When I run your WPF demo online, I get the following error message:-

PLATFORM VERSION INFO
 Windows    : 6.0.6001.65536 (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=2009.1.313.35, Culture=neutral, PublicKeyToken=9b24c158fed08860, processorArchitecture=msil
 Application Identity  : Telerik.Windows.Examples.exe, Version=2009.1.313.35, Culture=neutral, PublicKeyToken=9b24c158fed08860, 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:
  + Value does not fall within the expected range.

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.
 * [19/03/2009 08:00:23] System.ArgumentException
  - Value does not fall within the expected range.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Internal.Isolation.IEnumSTORE_ASSEMBLY.Next(UInt32 celt, STORE_ASSEMBLY[] rgelt)
   at System.Deployment.Internal.Isolation.StoreAssemblyEnumeration.MoveNext()
   at System.Deployment.Application.ComponentStore.CollectCrossGroupApplications(Uri codebaseUri, DefinitionIdentity deploymentIdentity, Boolean& identityGroupFound, Boolean& locationGroupFound, String& identityGroupProductName)
   at System.Deployment.Application.SubscriptionStore.CommitApplication(SubscriptionState& subState, CommitApplicationParams commitParams)
   at System.Deployment.Application.DeploymentManager.SynchronizeCore(Boolean blocking)
   at System.Deployment.Application.DeploymentManager.SynchronizeAsyncWorker()

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 

Paul Gallen
Top achievements
Rank 1
 answered on 24 Mar 2009
6 answers
220 views
I have this property:

 public int SelectedRecordID 
        { 
            get 
            { 
               if (gvSearchResults.ItemsSource != null) 
                   return Convert.ToInt32(gvSearchResults.CurrentRecord.Fields[0].Value); 
                else 
                    return 0; 
            } 
        } 

it no longer works after upgrading to your Nov 5 release.  .Fields is not recognized.  How can I fix?

Thanks,
Scott

Vlad
Telerik team
 answered on 24 Mar 2009
1 answer
94 views
Do you have any plans to introduce charts using the WPF 3D capabilities? I am asking because we have a requirement for this in an upcoming application and I'd like to find an off-the-shelf product with these caps already in it.

Thanks.
Giuseppe
Telerik team
 answered on 23 Mar 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?