Telerik Forums
UI for WPF Forum
0 answers
99 views

Please disregard, of course my problem turns out to be a style issue. A great tool style inhertance - until you loose track or forget to define a key. Well another lesson learned and a few hours wasted - business as usual!
Mike
Top achievements
Rank 1
 asked on 06 Nov 2011
3 answers
106 views

Hi Team,

I am showing charts in Listbox. I have placed RadChart Control in Itemplate. its not binding the ChartData and SeriesDefinition property. These property has value and preperty get is also called . But still its not showing series, saying "No data Series". On the other side, ChartTitle property is bound and showing chart title.

Please see this issue and send any sample.

Thanks in adavance..

Regards,
Nidhi

XAMl code attached

<ListBox  Grid.Column="0" ItemsSource="{Binding DrillDownChart}" >
         <ListBox.ItemsPanel>
             <ItemsPanelTemplate>
                 <toolKit:WrapPanel  Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Stretch"  >
                 </toolKit:WrapPanel>
             </ItemsPanelTemplate>
         </ListBox.ItemsPanel>
         <ListBox.ItemTemplate >
             <DataTemplate>
                 <Grid Width="110" Height="114">
 
                     <Grid.RowDefinitions>
                         <RowDefinition Height="*" />
                         <RowDefinition Height="Auto" />
                     </Grid.RowDefinitions>
                     <Border Grid.Row="0">
 
                         <telerik:RadChart ItemsSource="{Binding ChartData}" SeriesMappings="{Binding ChartSeriesMappings}" >
 
 
 
                             <telerik:RadChart.DefaultView>
                                 <telerik:ChartDefaultView ChartLegendPosition="Right">
                                     <telerik:ChartDefaultView.ChartTitle>
                                         <telerik:ChartTitle Content="{Binding ChartTitle}"/>
 
 
                                     </telerik:ChartDefaultView.ChartTitle>
                                     <telerik:ChartDefaultView.ChartArea>
                                         <telerik:ChartArea LabelFormatBehavior="None"   SmartLabelsEnabled="True"  >
                                              
                                         </telerik:ChartArea>
                                     </telerik:ChartDefaultView.ChartArea>
                                     <telerik:ChartDefaultView.ChartLegend>
                                         <telerik:ChartLegend Name="ChartLegend"
                                              LegendItemMarkerShape="Triangle" />
                                     </telerik:ChartDefaultView.ChartLegend>
                                 </telerik:ChartDefaultView>
                             </telerik:RadChart.DefaultView>
 
                         </telerik:RadChart>
 
 
                     </Border>
 
                     <TextBlock Text="{Binding ChartTitle}" Grid.Row="1" />
 
                 </Grid>
             </DataTemplate>
         </ListBox.ItemTemplate>
     </ListBox>

Ves
Telerik team
 answered on 04 Nov 2011
2 answers
109 views
Hi,
I've recently started using Rad controls for WPF in Powerbuilder .NET 12.5

I'm using powerscript to control most of the basic events within my Radbuttons (such as open / close windows, set text labels, etc.)

The issue I'm having is getting full control of the Radsplitbutton.

For example, I currently have a radsplitbutton1 where isOpen = true when the MouseEnter event occurs.  I can also use AutoOpenDelay to achieve the same result.

However, I cannot find any way to close the popup.  I've tried putting isOpen = false into the MouseLeave and LostFocus events, but it never closes.  And there doesn't seem to be anything similar to AutoOpenDelay which will close the popup instead of open it.

Also, the AutoOpenDelay seems to cover the entire button.  I'm not sure if there is a way to open the popup ONLY when the mouse is on the drop down arrow?
Petar Mladenov
Telerik team
 answered on 04 Nov 2011
1 answer
81 views
I have a grid bound to an Entity Framework-based CollectionViewSource.

For the sake of this example, my columns (left->right) are:
  • Name - in the database this is required, unique, and non-Null
  • Serial # - a string

I'm getting an exception when trying to escape editing a new line
  1. Press <click here to add new item>
  2. Type in a name
  3. press <TAB> to advance to serial # column and type in a serial number
  4. press <BACKTAB> to move focus to Name column
  5. delete everything in the Name field that you just entered
  6. Press <ESCAPE> once
My Entity Framework code throws an exception in the Device.Name property setter because it's been passed a Null.

I was under the impression that pressing <ESCAPE> was supposed to exit editing mode and pressing it twice on a new line was supposed to discard it.  That (the latter) does happen if I've entered no data in the columns or valid data.  If I continue (and ignore the exception), the new row is discarded, but I'm concerned because I don't understand what's happening.

When pressing <ESCAPE>, neither the row or cell validation methods are called, which makes sense.

Why is the RadGridView attempting to update the underlying data when it's about to be discarded?



Nedyalko Nikolov
Telerik team
 answered on 04 Nov 2011
0 answers
130 views
Hi,

I need to maintain scroll position (both horizontal and vertical) when moving across pages.
I tried the following code , but was unable to achieve the desired functionality.
Even after calling RestoreScrollPosition() the scrollviewer didn't change its position.


 

private void btnNext_Click(object sender, RoutedEventArgs e)

 

{

SetScrollPosition();
BindData();

RestoreScrollPosition();

 

 

 

}

 

 

private void SetScrollPosition()

 

{

 

GridViewScrollViewer svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

 

_dbVerticalOffset = svSummaryInfo.VerticalOffset;
_dbHorizontalOffset = svSummaryInfo.HorizontalOffset;
}

private

 

void RestoreScrollPosition()

 

{

GridViewScrollViewer

 

svSummaryInfo = (GridViewScrollViewer)rtSummaryInfo.FindChildByType<GridViewScrollViewer>();

 

 

if (svSummaryInfo != null)

 

  {

 

   svSummaryInfo.ScrollToHorizontalOffset(_dbHorizontalOffset);

   svSummaryInfo.ScrollToVerticalOffset(_dbVerticalOffset);

   }
}

Please provide a code snippet for the same.

 

Manishkumar
Top achievements
Rank 1
 asked on 04 Nov 2011
4 answers
148 views
I'm trying to use the simple example code here: http://www.telerik.com/help/wpf/raddatafilter-features-data-annotations.html

I can't get any of the data annotations to work. Here is the code I'm using:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
 
namespace namespace
{
    public class dummy
    {
        [Display(AutoGenerateFilter = false)]
        public string Name
        {
            get;
            set;
        }
        [Display(ShortName = "Company's Name")]
        public string CompanyName
        {
            get;
            set;
        }
        public string Title
        {
            get;
            set;
        }
    }
}

The XAML is simply <telerik:RadDataFilter Name="DataFilter" />
Austin
Top achievements
Rank 1
 answered on 03 Nov 2011
0 answers
169 views
Hello,
I would like to implement in my WPF application autoupdate functionality, like WPF online demos. Is it using click once??
My application will be separated in modules, and I want to each module check for newest version, download and install it automatically.
The application is goning to run in our intranet, not internet like demos.
I was seeing demos source but it's a bit complicated, I would like to see a simplest example, some links with more information!

Thanks in advance!
Alejandro
Dominios Molinos
Top achievements
Rank 1
 asked on 03 Nov 2011
0 answers
76 views
to delete (double post)
Software
Top achievements
Rank 1
 asked on 03 Nov 2011
3 answers
149 views
I am styling the RadTimePicker so that it looks and feels the same as the rest of my application.
I am trying to style the DateTimePickerClock that is displayed when you want to select a time.
I cannot figure out how to change the highlight color for the Items (the times) displayed in the clock.
Right now when I hover over an item it is highlighted as Yellow but since the application's colours are black, blue and grey, this doesn't fit in with the colour scheme at all.

Thank you for your help,

-Rebecca
Rebecca
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
128 views

Hello,

the ToolTip text "Start dragging in order to change items' position" is not translated in german culture.

OutlookBar_style.xaml:

...
<ToolTipService.ToolTip>
    <TextBlock Text="Start dragging in order to change items' position"
           telerik:LocalizationManager.ResourceKey="OutlookBarHorizontalSplitter" />
</ToolTipService.ToolTip>
...


As workaround I tried to set the ToolTip-Text by setting the HorizontalSplitterStyle like this:

...
<UserControl.Resources>
    <Style x:Name="OutlookBarHorizontalSplitter" TargetType="Thumb">
        <Setter Property="ToolTip" Value="My localized Text"/>
    </Style>
</UserControl.Resources>
 
<Grid>
    <telerik:RadOutlookBar x:Name="MenuOutlookBar"
                   HorizontalSplitterStyle="{DynamicResource OutlookBarHorizontalSplitter}">
...

Unfortuately after this the whole Style of the HorizontalSplitter is lost and the Tooltip is still default.

Please let me know if there is a solution for this issue.

Regards
Rainer

Rainer
Top achievements
Rank 1
 answered on 03 Nov 2011
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?