Telerik Forums
UI for WPF Forum
1 answer
1.1K+ views

I'm using RadGridView with GridViewMaskedInputColumn like that:

<telerik:GridViewMaskedInputColumn DataMemberBinding="{Binding RealCurrent, Mode=TwoWay}" DataFormatString="n2" Width="85" Style="{StaticResource BlueGridViewColumnStyle}" Header="{x:Static commonResources:ControlResources.RealCurrent }"/>

This is great, because in the column I see numbers rounded to 2 digits after decimal point.

But when I want to edit it and I delete whole number I cannot type decimal point...

 

I can fix it by adding Mask="#1.2", but than I can type only one digit BEFORE decimal point and I see underscore as a placeholder. I don't want to have any limitations for that (user should be able to place 0.55, 45.8, 131645651654.1 or whatever) and any underscores. How to achieve this?

Stefan Nenchev
Telerik team
 answered on 19 Jul 2016
2 answers
141 views

Hello Telerik community,

First post for me here :)

I would like my diagram (placed in a userControl) to react to some events in my MDI application. (events done in other usercontrol, like clicking on a portion of a text would select the text-corresponding box in the diagram)

The problem I have is that when I set my:

//(Telerik.Windows.Controls.Diagrams.Extensions.ViewModels.ItemViewModelBase NodeViewModel;)
NodeViewModel.IsSelected = true;

My diagram userControl gets the focus and the user can't type text anymore.

I would like to be able to change the selected item in my diagram without changing the application focus.

Any idea to achieve that? 

Thanks a lot!

- Thomas

Thomas
Top achievements
Rank 1
 answered on 18 Jul 2016
1 answer
82 views

Hi,

I am using RadGridview for CURD operation. I am using observable collection of custom class where I have data.

For oprtation I am using 2 column say update and delete to push data back to DB. With the property NewRowPosition, adding of new row is coming on top.

When I am adding new row and provided data to all cell and coming out from that row being added focus is going into existing row and new row is getting added in last of collection. that is OK.

My problem is when I have added a row the new row add label should be come but its not. and also I have observed that AddingNewDataItem is not firing as result all logic for the cell that I need to perform is not working. I have used celledittemplate in POC as well.

Please suggest how I can achieved this behavior as soon as possible.

 

--

Manoj S

 

 

Stefan
Telerik team
 answered on 18 Jul 2016
3 answers
1.3K+ views

Hi,

I want to achieve that the user can delete the selected item with the DEL key. I have set the 'CanUserDeleteRows' property to true but when I press the DEL key on a selected Item the Deleting, Delete and the KeyDown event aren't fired. I don't want a additional column with delete buttons or a Delete Button beside of the GridView.

Any idea? My search wasn't successfull....

Alexander
Top achievements
Rank 1
 answered on 18 Jul 2016
2 answers
139 views
I have not customised the selection background color of the RadGridView.  Nor do I need to.  I just need to programatically find out what the selection background color of the grid actually is.
Stefan Nenchev
Telerik team
 answered on 18 Jul 2016
7 answers
414 views
Is there a method to make the edit appointment dialog completely custom? If this is not possible is there a way to force the schedule view to refresh after an appointment has been edited out side of the dialog shown? We have tried to set the EditDialogStyle to a custom template but it does not give us the desired results it displays the exact same as before.

Thanks!
Karthik
Top achievements
Rank 1
 answered on 18 Jul 2016
1 answer
327 views

Hi,

 

print i chart with this code:

string filename = "ExportedChart.png";
using (Stream fileStream = File.Open(filename, FileMode.OpenOrCreate))
{
    Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(this.chart, fileStream, new PngBitmapEncoder());
}

 

the problem ist, that the background of the png-file ist black! how can i change this to white?

thanks a lot

Rene

Milena
Telerik team
 answered on 18 Jul 2016
3 answers
95 views

It seems there are some missing entries in the default localization (at least for the german localization) for the grid in the FilterRow mode and a boolean column for languages other than english.

The filter popup shows "True" and "False", though everything else is correctly localized.

The solution was to add the entries 'GridViewFilterIsFalse' and 'GridViewFilterIsTrue' to the localization resource, maybe this is a help for someone else with the same problem.

 

see: 

http://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/how-to/howto-localize-the-filtering-ui.html and

http://docs.telerik.com/devtools/wpf/common-localization.html

Yoan
Telerik team
 answered on 18 Jul 2016
1 answer
123 views

Hi everyone,

in the attached file you see the exception I get (Sorry, it's in German). The Problem with this exception is, that it appears not every time by doing the same steps. So we can't say definititly what step let this exception occures.

 

So here are the circumstances:

  • RadGradView with some columns (4-5)
  • Binding on a DataTable
  • ReadOnly  = false

So when from a dialog a value is puttin' in one of the cells, the problem somtimes appears.

I downloaded the source code and searched a bit. (In GridView_WPF.sln: GridView/Cells/GridViewCell.cs) 

In the method 'PrepareCellToolTip' the second time when ToolTipService.GetToolTip is called:

var visualElementToolTip = ToolTipService.GetToolTip(this);
var isCellErrorToolTip = this.CellErrorMessage != null && this.CellErrorMessage == visualElementToolTip;
 
 var row = this.ParentRow as GridViewRow;
 var rowToolTip = ToolTipService.GetToolTip(row) ?? string.Empty;

Before row is hand over to 'GetToolTip()',  there should be proved if it isn't null, right?

 

 

Ivan Ivanov
Telerik team
 answered on 18 Jul 2016
1 answer
108 views

Hi, 
   I have some following queries on using radmap.
1. Can we make area fencing ( free hand drawing to fence area and retrieve lat , long within that area)?
2. Can we able to mark a place with marker manually in this map?

3. Can this map able to import large shape files of say 25 MB ?

Thanks
P Kumar

Petar Mladenov
Telerik team
 answered on 18 Jul 2016
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?