Telerik Forums
UI for WPF Forum
1 answer
60 views
When designing the RibbonView using both Design and XAML views, the visual for the RibbonView switches tabs automatically and does not stay in synch with the XAML that you are working on.    For example, if you have 5 RibbonTabs and are adding RibbonButtons to the second tab using XAML, the design view will switch to the last tab.    So you then have to click the second tab in the Design view so that you can see the new button you just added via XAML.

Is there a fix or workaround for this?
Tina Stancheva
Telerik team
 answered on 20 Feb 2012
1 answer
146 views
I upgraded my system from 2011 Q3 to 2012 Q1 (downloaded WPF MSI and installed, used the upgrade Wizard to upgrade my project).

The chartview control does not show in either the toolbox (forced refresh during upgrade and again using the menu option 'Launch Toolbox configurator') nor within the VS2010 Choose Toolbox Items dialog, list of WPF controls.

The chart control is listed, and it would seem everything else - just not RadChartView.
It was in the toolbox in the 2011 Q3 package.

Can you advise what DLL it is in so I can check for that on my system?
Giuseppe
Telerik team
 answered on 20 Feb 2012
0 answers
257 views
hi,

i'm using RadgridView to display my Databaseitems from a sqlite Database. I bind the Data like that:

DataTable dt = new DataTable();
dt = ITA_CRM.Klassen.sqlite.Verbindungen_GET();
MyradGrid.ItemsSource = dt.DefaultView;

Now i want to insert Items, Delete itmes and change items. I would like to use the "telerikGrid:RadGridViewCommands.CancelRowEdit" or
telerikGrid:RadGridViewCommands.CommitEdit"

<telerik:RadButton Width="Auto" Content="save changes" Margin="0,0,5,0" Command="telerikGrid:RadGridViewCommands.CommitEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}" Padding="5"/>
 
 <telerik:RadButton Width="Auto" Content="undo changes" Command="telerikGrid:RadGridViewCommands.CancelRowEdit" CommandTarget="{Binding ElementName=VerbindungenRADGRID}"  Padding="5"/>

Is it the right why? Is it better to bind the Data on an other way? how? Can't find a good example to do that.

Thanks a lot
regards
ww
ITA
Top achievements
Rank 1
 asked on 20 Feb 2012
1 answer
227 views

Hi,

I need to build a vertical bar chart that needs to be refreshed every second.

See attached file to check what I got until now.


The RadChart is bound to a Queue<int> that is refreshed every second.

 

The problem is that the BarSeries doesn’t get updated.

I manage to force it to be updated by calling RadChar.Rebind() method.

But it redraw the BarSeries instead of updating it.

 

Could you help me on this?
Thanks,
Hugo.

 

Petar Marchev
Telerik team
 answered on 20 Feb 2012
7 answers
2.1K+ views
I'd like to display dates in the grid in a short format, and then have a hover over tooltip that displays the full date.  For example, a cell might have 13/09, and the tooltip will display 13/09/2009.

Is this possible in the RadGridView?

Thanks,
Dan
Maya
Telerik team
 answered on 20 Feb 2012
2 answers
71 views
Hi,

I have an existing system using RadMap which works well. It displays a shapefile with MapPinPoints overlayed on top. One problem we had was that we couldn't zoom beyond zoomlevel 20; however I have downloaded the latest trial version which has a fix for this (setting MaxZoomLevel).

The problem is that when I now zoom beyond zoomlevel 20, all the MapPinPoints disappear but the shapefile is still rendered in the background. The shapefile is loaded using a DynamicLayer and the MapPinPoints are loaded onto an InformationLayer.

Is this a known issue or am I missing something?

Thanks,
Stuart
Stuart
Top achievements
Rank 1
 answered on 20 Feb 2012
0 answers
120 views
Hi,
I have tried the example, ICollectionView Synchronisation whereby u have a grid and a dataform.

Now i want to save a new record, and edit a new record and want my changes to be saved to sql server database and also reflect the changes in the datagrid that is if i add a new record i should see it.
Can anyone please guide me on how to do this ?

Also i wanted to know, if i have a class , say employee, and all the content on my dataform , labels and textboxes have been generated based on the properties of this class, then how do i do if i want to get the valye from a particular textbox at runtime ? since it is generated, will there be an id or name associated with it ?

I hope to get some help very soon.
Regards,
Shaimaa
Shaimaa
Top achievements
Rank 1
 asked on 19 Feb 2012
3 answers
189 views
Hello,

I have an issue where I need some help. I am creating an WPF MVVM application. I have a view with in it displayed a RadGridView. One of the columns of this gridview is a GridViewComboBoxColumn. See code
<telerik:RadGridView x:Name="GridView"  
    ItemsSource="{Binding DataContext.ObservDistributions, ElementName=DistributionView}"  
    AutoGenerateColumns="False"  
    CanUserFreezeColumns="False" 
    acb:CommandBehavior.Event="MouseDoubleClick"  
    acb:CommandBehavior.Command="{Binding SelectCurrentDistributionCommand}" 
    acb:CommandBehavior.CommandParameter="{Binding ElementName=GridView, Path=SelectedItem}"
        <telerik:RadGridView.Columns> 
        <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" IsReadOnly="True" /> 
        <column:DateTimePickerColumn Header="Date" DataMemberBinding="{Binding DateFrom}" Width="200"></column:DateTimePickerColumn> 
        <telerik:GridViewComboBoxColumn Header="Establishment" ItemsSource="{Binding DataContext.Establishments, ElementName=DistributionView}" SelectedValueMemberPath="EstablishmentId" DisplayMemberPath="Name" DataMemberBinding="{Binding Establishment.EstablishmentId, Mode=TwoWay}"
        </telerik:GridViewComboBoxColumn> 
    </telerik:RadGridView.Columns> 
</telerik:RadGridView> 
              
I have in the ViewModel a ObservableCollection named "ObservDistributions". This all works perfectly. The issue is where I change the value of the GridViewComboBoxColumn. I use MouseDoubleClick to send the changes from the View to the ViewModel.  In the acb:CommandBehavior.CommandParameter I sent the item to the ViewModel with a command. This all works but not for the GridViewComboBoxColumn. The changes made to the GridViewComboBoxColumn are not sent to the ViewModel. I think the issue is with the DataMemberBinding in the GridViewComboBoxColumn. I have used the DateTimePickerColumn from Telerik, changes made with this control works fine.

Does anyone have some hint in what direction to look.

Thanx in advance

Stefan
Kareem Azzouny
Top achievements
Rank 1
 answered on 19 Feb 2012
7 answers
467 views
I can insert a comment but when I try to type in the comment I can only type one letter and then the cursor moves back to the document area.
<telerikHTML:HtmlDataProvider Name="dp1" Html="{Binding TaskText, Mode=TwoWay}" RichTextBox="{Binding ElementName=TaskEditor}" />
<telerik:RadRichTextBox x:Name="TaskEditor" Grid.Row="1" Grid.Column="1" Margin="0,5,0,5"
                    AllowDrop="True"  ShowComments="True"
                    IsSelectionMiniToolBarEnabled="false"
                    LayoutMode="Flow"
                    DocumentInheritsDefaultStyleSettings="True"
                    GotFocus="EditorGotFocus" LostFocus="EditorLostFocus"/>
private void EditorGotFocus(object sender, RoutedEventArgs e)
      {
          _lastDataContext = _contextualTabView.DataContext;
          _contextualTabView.DataContext = TaskEditor.Commands;
          _lastTab = _ribbonView.SelectedTab;
          _contextualGroup.IsActive = true;
      }
 
      private void EditorLostFocus(object sender, RoutedEventArgs e)
      {
          _contextualGroup.IsActive = false;
          _lastTab.IsSelected = true;
          _contextualTabView.DataContext = _lastDataContext;
      }

Iva Toteva
Telerik team
 answered on 17 Feb 2012
7 answers
319 views
I'm trying to get the word I just wrote.
I tried these methods.

private void EditorPreviewEditorKeyDown(object sender, PreviewEditorKeyEventArgs e)
{
  var word = radRichTextBox.Document.CaretPosition.GetCurrentWord();
or... var word = radRichTextBox.Document.CaretPosition.GetCurrentSpanBox().Text;.

But none of them gives me the desired result.
Do they work in Wpf? What do they do? How could I get the word 'at the caret'?
Where can I read (wpf)documentation about this?
Ivailo Karamanolev
Telerik team
 answered on 17 Feb 2012
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?