Telerik Forums
UI for WPF Forum
2 answers
131 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
176 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
166 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
61 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
225 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
99 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
1 answer
88 views
Cannot find resource named '{DefaultCheckBoxStyle}'. Resource names are case sensitive.  Error at object 'System.Windows.Controls.CheckBox' in markup file 'ExampleControl;component/example.xaml' Line 141 Position 23.


in chart flexible Api program.


tell me the solution
Dwight
Telerik team
 answered on 23 Mar 2009
4 answers
187 views
Hi,

with my first tries on RadGrid I had to learn that there is a problem with the filter.
Reproducing it is easy.
Buil a SQLServer table (let's call it SimpleTable) with two fields - an ID (identity column as PK) and a ntext column.
Enter one record to this table.
Now add a EntityModel (maybe it crashe with other kind of access also - I only tried with EM) and place that table in it.
Add a RadGrid to a WPF Form and in Window_Loaded do
MyEntities mE=new MyEntities();  
var X=from vX in mE.SimpleTable select vX;  
radGridView1.ItemsSource=X
Now run the app - click on the ntext column's filter symbol -- CRASH.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 20 Mar 2009
1 answer
85 views
Hi,

Before I begin there are some great things about Telerik, one is there support, second to none. Their web controls, fantastic. However one of my main worry is that Telerik never completes their documentation and some of there controls are very buggy. Not that this is so bad in its self, (as devs, we are all up against time). If you take a look at telerik they offer above and beyond UI controls:-Reporting, ORM, Test Studio. Is Telerik becoming a 'Jack of all Trades'. Is Telerik becoming diluted! To the point:- I wish Telerik would concentrate in finishing what they have started instead of bringing out new products.

I am a supporter of Telerik, please do not take offence, its just an observation


All the best

P
Vassil
Telerik team
 answered on 20 Mar 2009
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?