Telerik Forums
UI for WPF Forum
1 answer
124 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
134 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
98 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
240 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
3 answers
193 views
Hello,
I have upgraded RadControls version to RadControls for WPF-2010.3 1314 (Jan 14, 2011) in my WPF form and now the Texts in the Gridview header and rows are not wrapping properly. Please help to find out any property that can be used in design or code for the wrapping the text.

I found that the properties "TextAlignment" and "TextWrapping" is obselete in new Telerik version.

GridView.AlignmentContentPresenter is also obselete.


Thanks,
Sooraj
Vlad
Telerik team
 answered on 10 Feb 2011
6 answers
251 views
Hallo. Is it possible to move TabItems (like Firefox or Google Chrome)?

Best regards

René
Hristo
Telerik team
 answered on 10 Feb 2011
1 answer
119 views
Hello Telerik Team,
                              I have one clarification about theme settings.

We are using telerik controls in our projects as well as wpf controls.

here radcombo box gives diffrent border color when cursor on focus, and mouse over .

same color i want text box also when cursor on focus,and mouse over.

how i set these color setting in textbox?It can be common in app.xaml 
pls give me sample applications.
Konstantina
Telerik team
 answered on 10 Feb 2011
6 answers
190 views
Hello telerik Team,
                           I have one clarification.
 I have a master page with 5 controls Including Gender Name(Male,Female). The Gender Name  designed in UI as combo box.data type is declared as boolean in both Business layer as well as database.

My problem is particularly about GenderName field
                       I want to display all details in radgridview from database.In database GenderName  is stored as boolean .but i want to display in grid male or female(that is text only not boolean).

How to do that one?
sivakanth
Top achievements
Rank 1
 answered on 10 Feb 2011
5 answers
141 views
Hello,

Is it possible to display Empty Group with ScheduleView like Scheduler does?
We really need to have that functionality...


Oksi
George
Telerik team
 answered on 10 Feb 2011
11 answers
160 views
After upgrading to latest version of telerik my gridview is throwing as error. Its datsource is set by using xmldaraprovider.
Please help me. With the previous version it was working fine.
Stefan Dobrev
Telerik team
 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
DataPager
PersistenceFramework
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
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?