Telerik Forums
UI for WPF Forum
1 answer
157 views

My error prompt works well, when it's outside of the range it prompts the error message. If there a way to have it prompt the message and not stop code from running?

 

public string Nint
        {
            get
            {
                return _nint;
            }
            set
            {
                if(double.Parse(value) > (double) Product.MaximumRate || (double.Parse(value) < (double) Product.MinimumRate))
                {
                    NintErrorEnabled = true;
                    throw new ValidationException();
                }

                 NotifyOfPropertyChange();
            }
        }

 

"throw new ValidationException();" stops the code right in it's track. Could I still display the error message without stopping the code? 

Martin Ivanov
Telerik team
 answered on 16 Sep 2015
1 answer
146 views
I have been asked to implement functionality so that as the user moves over a chart comprised of line series, that not only does an ellipse get drawn at the datapoints in the same vertical area of the chart but a label above the datapoints as well. To help visualize, imagine the "Zooming and Scrolling" ChartView example. In the top chart there is an area series being rendered in blue. As you move the mouse over the chart a dot is rendered over the point closest to the cursor. The users have asked for not only a dot, but the chart Y value displayed above the dot (in this example, the price). I recognize that this example is utilizing the trackball functionality of the chart, but I can't quite figure out how to get a label to appear above each series dot with the values. Any suggestions?
Martin Ivanov
Telerik team
 answered on 16 Sep 2015
1 answer
328 views

Hi,

 I've encountered an issue where Radgridview crashes upon trying to display  too many rows ~1000+. The radgridview is placed under a data template which in turn is part of a hierarchy child template. Upon hitting the expand button to display the grid view,  the ui freezes after showing the rows. Upon reducing the number of rows in the data table to 60, all the rows appear without freezing. Any way I could get my 1000+ rows to appear without freezing the ui.

 Best Regards,

CH

Petya
Telerik team
 answered on 16 Sep 2015
2 answers
96 views
I currently have a diagram binding through the MVVM Telerik ViewModels.  This binds to simple properties just fine, with a template that has a few textblocks in it.  When I add a DataGrid to the template and set the ItemsSource to a property on that same object, it bombs terribly.  How do you add a datagrid to a diagram item and bind it to an observable collection?
Scott
Top achievements
Rank 1
 answered on 16 Sep 2015
2 answers
157 views

Hello,

 I would like to extend the Calendar control to add the SpecialDays-Feature. I was able to override the SelectTemplate function and return two different DataTemplates. I also added a list of dates to the control, all those days are shown bold red in the calendar. This works fine if IsTodayHighlighted is set to false - whenever I enable this feature, the style of my SpecialDay-Feature is overwritten. How can I modifiy the style of the today field, based on the list that is bound to the control?

 

Thanks in advance

ProXy
Top achievements
Rank 1
 answered on 16 Sep 2015
3 answers
725 views
I have been creating and adding RadDiagramShape to the RadDiagram control at run time.
I wan to detect/capture the event whenever the shape is moved(dragged to change its position) on the RadDiagram control.
How can I do that?

I tried to do something like 
radShape.DragEnter += OnShapePositionChanged;


also tried
radShape.AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnShapePositionChanged));

Didn't work.
Help
Milena
Telerik team
 answered on 16 Sep 2015
7 answers
674 views
I want to get or set multiple cell values.
I have tested with this piece of code:

CellRange cellRange = new CellRange(0, 0, 5, 5);
CellSelection selection2 = worksheet.Cells[cellRange];
var vals = selection2.GetValue();

But the getvalue function does not act as expected.

I need this to cancel some performance issues. I discovered a heavy load when you read and write 100 cell values each second.
Nikolay Demirev
Telerik team
 answered on 16 Sep 2015
5 answers
429 views
Hi,

while evaluation RadGridView I'm wondering why in case of AutoGenerated columns bound to an DataTable
the HeaderText is taken from ColumnName instead of Caption.
All I found about this 'issue' is that old post:

http://www.telerik.com/community/forums/aspnet/grid/should-radgrid-bind-caption-field-of-datatable-colums-to-gridboundcolumn-headertext.aspx#404028

Telling that this might be changed in future, has this been changed or is there a other solution in MVVM environment (without doing it in code behind)?

Any help is welcome.

Regards
Thomas
Stefan
Telerik team
 answered on 15 Sep 2015
1 answer
189 views

How to draw RadBarcode128 (Telerik.Windows.Controls) in RadFixedPage (Telerik.Windows.Documents.Fixed.Model).

I have tried to export image  from Barcode as a FrameworkElement (BitMapImage) and draw this image into the RadFixedPage, but the quality of the image was very low. 

 

Thanks.

Peshito
Telerik team
 answered on 15 Sep 2015
5 answers
359 views

I have problem with sorting on GridView 

I have two number columns (integers) and when I click on the column header to sort it sorts them as string and not numeric values.

.xaml file

 <telerik:RadGridView x:Name="gridViewOrders"
                                     ShowGroupPanel="False"
                                     AutoGenerateColumns="False"
                                     CanUserSortColumns="True"
        RowIndicatorVisibility="Collapsed"
                                     IsFilteringAllowed="False">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Order}"/>
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Account}" />
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"/>
                                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Timestamp}"/>
                                </telerik:RadGridView.Columns>
   </telerik:RadGridView>​

 

cs file

 

 gridView​Orders.ItemsSource = tradesRepo.ListOfPendingOrders;​

 

 

Any ideas?

 

Thanks

Yoan
Telerik team
 answered on 15 Sep 2015
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?