Telerik Forums
UI for WPF Forum
3 answers
101 views
I haven't come across any code example showing how to use custom sampling for data points in the chart control - at least what to say to the
 radchart.SamplingSettings.SamplingFunction to signify custom sampling or how the sampling delegate would look like ... Please help out.
Evgenia
Telerik team
 answered on 11 Feb 2011
1 answer
135 views
If I click the close button on the radPane is the Pane disposed off? 
How can I make sure that the pane is not disposed off when closed but disappear form the screen.
Also how to re-show this pane?
Konstantina
Telerik team
 answered on 11 Feb 2011
3 answers
132 views
What is wrong with thsi code? why the busy indicator does not show up?


<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="WpfApplication1.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid HorizontalAlignment="Stretch">
 
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
 
        <telerik:RadButton Click="Button_Click" Grid.Row="0" HorizontalAlignment="Center" Content="Load Appointments" FontWeight="Bold" Margin="12" Padding="18 4" />
        <telerik:RadBusyIndicator x:Name="busyIndicator" Grid.Row="1" BusyContent="Loading data....">
            <Button Height="34" Width="90" Content="xxx"/>
        </telerik:RadBusyIndicator>
 
    </Grid>
</Window>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 
namespace WpfApplication1
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
 
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            busyIndicator.IsBusy = true;
 
            System.Threading.Thread.Sleep(100000);
 
            busyIndicator.IsBusy = false;
 
        }
    }
}
Teodor
Telerik team
 answered on 11 Feb 2011
9 answers
394 views
I need to load radbook from database , without save images into tmp , and i want navigate on that dinammicly .
So is it possible , we have .something like

this ,radbook.load(_my image as byte[]) or as Image - so i i can convert before to use.



Tina Stancheva
Telerik team
 answered on 11 Feb 2011
3 answers
119 views

Hi

I need to add columns in the header column as shown in the attached design.

 

NOVEMBER

DECEMBER

27

28

29

30

1

2

3

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The columns should be added to the header column. If anyone knows how to do it, please reply.

Thanks

 

Manishkumar
Top achievements
Rank 1
 answered on 11 Feb 2011
11 answers
128 views
Hello!

I want to display a lot of rows in my RadGridView so therefor I want to make it as compact as possible with little space between the rows. Is there a way to remove the area of the HorizontalGridLines? Setting the HorizontalGridLine height to zero that is.

Best regards,
Anna
Krish
Top achievements
Rank 1
 answered on 10 Feb 2011
1 answer
107 views
Are there plans to allow a user to pick a custom color, not just one from the palette?  Without this, the color picker is useful, but much less useful for general purpose use.

Petar Mladenov
Telerik team
 answered on 10 Feb 2011
1 answer
115 views
I try to use the function ExportToImage(Stream) from a RadChart object and it always throw an null reference exception whatever the chart I try. 

Here is a sample code I try to test the function :

List<int> data = new List<int>();
Random rand = new Random(123456);
for (int i = 0; i < 50; i++)
{
    data.Add(rand.Next(10, 100));
}
 
chartTest.DefaultSeriesDefinition = new LineSeriesDefinition() { ShowItemLabels = false, ShowPointMarks = false };
chartTest.DefaultView.ChartArea.AxisX.LabelStep = 25;
chartTest.DefaultView.ChartArea.EnableAnimations = false;
chartTest.ItemsSource = data;
 
Stream ms = new MemoryStream();
chartTest.ExportToImage(ms);
/*BitmapImage src = new BitmapImage();
src.BeginInit();
src.StreamSource = ms;
src.EndInit();
 
img1.Source = src;*/


Exception throw at this line :

chartTest.ExportToImage(ms);

Exception message :

{"Object reference not set to an instance of an object."}

Exception call stack :

   at Telerik.Windows.Media.Imaging.ExportHelper.get_TransformToDevice() in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ExportHelper.cs:line 50
   at Telerik.Windows.Media.Imaging.ExportHelper.get_TransformToDeviceMatrix() in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ExportHelper.cs:line 43
   at Telerik.Windows.Media.Imaging.ExportHelper.get_SystemDpiX() in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ExportHelper.cs:line 16
   at Telerik.Windows.Media.Imaging.ExportHelper.GetElementImage(FrameworkElement element) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ExportHelper.cs:line 62
   at Telerik.Windows.Media.Imaging.ImageExporter.Export(FrameworkElement element, Stream stream, BitmapEncoder encoder) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ImageExporter.cs:line 12
   at Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(FrameworkElement element, Stream stream, BitmapEncoder encoder) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Core\Controls\ExportExtensions\ExportExtensions.cs:line 100
   at Telerik.Windows.Controls.RadChart.ExportToImage(Stream stream) in c:\Builds\WPF_Scrum\Release_WPF_2010_Q2_SP1\Sources\Development\Controls\Chart\Chart\RadChart.Exporting.cs:line 168
   at TestChart.MainWindow..ctor() in C:\Dev\TestChart\TestChart\MainWindow.xaml.cs:line 41
Missing User
 answered on 10 Feb 2011
8 answers
85 views
Hello,

I am trying to reorder the rows at a grid by drag and drop. I have looked at the examples and solutions you have given about this case. But i can not convert it to q3 2009 sp1. the objects use at the solutions are no more at q3 2009 sp1. Can you kindly suggest a solution.
Regards.
Hristo
Telerik team
 answered on 10 Feb 2011
4 answers
200 views
Hello,

I am looking for general advice/guidance on using the RadDataFilter when the filtered result is displayed in a Grid that uses Value Converters.  Let me paint the scenario...

In the general use case, the RadDataFilter accepts a Source and emits a FilteredItemSource.  The Source is the collection of items to be filtered, and the Filtered ItemSource is the result of the filter, that can be bound to some other control like the RadGridView.  However, if a column in the GridView used to display the results uses a Value Converter to modify the displayed value in any way, you can get into a problem that will cause a lot of confusion to the user.  Namely, the filter no longer operates on values as displayed in the grid.  So when the user enters filter criteria, the grid may not filter as expected because the user is most likely entering values that match the display in the grid, while the filter is operating on the underlying values. 

I believe that this problem can also be demonstrated when perhaps the backing data contains a value of type double, while the datagrid uses a string format to show the value as a percent.

Although I believe I know why things are working this way, I am wondering what the best-practices might be to get things to work as expected from the user.  Should we refrain from using Value Converters in the display, and instead do the conversion in the backing store (i.e. the RadDataFilter's Source collection) hence operating on raw values only?  If so, this seems a little unfortunate.  Is there another approach that might be helpful here?

I am curious to hear whether anyone else has run into this problem and what you might have done.

Thanks,
Mark.
Mark
Top achievements
Rank 1
 answered on 10 Feb 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
Expander
Slider
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?