Telerik Forums
UI for WPF Forum
1 answer
218 views

Hi,

We are using RadDocking with Caliburn Micro and view model first approach. Inside factory we create view models which are resolved by Caliburn Micro. Recently we found that we don't really know how to add AutomationId (or any other name to dynamically loaded views). Is there any proven way to solve this issue?

 

RadDocking is declared the following way:

<telerik:RadDocking x:Name="radDocking" AutomationProperties.AutomationId="radDockingId" DockingPanesFactory="{Binding PanelsFactory}" PanesSource="{Binding Panes}"

 

Have a nice day,

Best regards,

Maciek

Nasko
Telerik team
 answered on 20 May 2016
2 answers
579 views

Hello,

I want to know if is it possible to do that RadNumericUpDown accepts dot AND comma ?

I see this code on the web :

if (e.KeyChar.Equals('.') || e.KeyChar.Equals(','))
{
    e.KeyChar = ((System.Globalization.CultureInfo)System.Globalization.CultureInfo.CurrentCulture).NumberFormat.NumberDecimalSeparator.ToCharArray()[0];
}

With this code, i did it :
private void tbOpeSurValeur_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Key == Key.Decimal || e.Key == Key.OemComma)
    {
        e.Key = (Key)((System.Globalization.CultureInfo)System.Globalization.CultureInfo.CurrentCulture).NumberFormat.NumberDecimalSeparator.ToCharArray()[0];
    }
}

But, 2 problems :
- This is not 'e.KeyChar' but 'e.Key'
- 'e.Key' is in ReadOnly, I can't change his value..

Can you help me ?
Thank you.

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 20 May 2016
9 answers
518 views
Hello everybody!
My radnumericcontrols have a strange behaviour . For example : if i insert the value 20, when the control lost focus, the value is set to 200%, wich isn't the correct value, at least the value I want. There is another issue here . What is the default decimal separator ?If I try to use the normal "comma", nothing happens . If I insert the value "10,23", the control doesn't accept my comma , so, instead of having the value "10.23", I get the value 1023 .

Any suggestions ?
Ivan Frias
Yana
Telerik team
 answered on 20 May 2016
1 answer
295 views
While exporting data from Telerik RadGridView in WPF.
How can I add some extra text on above the header? Like if I need to add the name of the company and list name.
Can anyone help me in this regard?
Dilyan Traykov
Telerik team
 answered on 20 May 2016
4 answers
978 views
Is it possible to add a new row to edit to the top of the grid instead of the bottom? I was able to sort after adding the new item to get the last added item to display at the top, but I want to be able to have the new row be at the top immediately after clicking to add the new row while editing.The image attached shows how the GridView works now, but I want to be able to have the new row to be at the top of the grid while editing. Any help would be appreciated.
Stefan
Telerik team
 answered on 20 May 2016
1 answer
195 views
Hello,
Is there a way to customize the vertical resize cursor that's being displayed when hovering over the property grid's separator?
Dilyan Traykov
Telerik team
 answered on 20 May 2016
1 answer
116 views

Hi,

 

i understand that when a new row is added somewhere in the tree, the new row is added to the bottom.

to get around this i re-bind the tree to the update source, and am now trying to see if i can expand to the part of the treelistView where the new item it located.

i can interactively expand to the spot in the tree and find the newly created row.  

the customer does not want to do this however as there may be too much data.

i need a way to do this in the code-behind.

is there a way?

 

Thanks in advance,

John

 

 

Yoan
Telerik team
 answered on 20 May 2016
3 answers
136 views

I want to have custom filter like the default fulltext search auf RadGridview. But I want to filter with custom expression that I definied.

For that purpose I look at first for a pssibility to override the FilterDescriptor of the default fulltext search. But I have no luck.

I can accept an "external" textbox that can raise a filter condtion on the RadGridview as well. Any suggestions?

Maya
Telerik team
 answered on 20 May 2016
14 answers
2.0K+ views
I have a grid with two columns, one of which is editable and another is readonly, set programmatically based on first column value:
                    <t:RadGridView x:Name="NetworkLocationGroupsGridView" CanUserFreezeColumns="False" ShowGroupPanel="False" ItemsSource="{Binding NetworkLocations}" AutoGenerateColumns="False" ShowInsertRow="True" IsFilteringAllowed="False" CanUserReorderColumns="False" RowIndicatorVisibility="Collapsed" CellValidating="NetworkLocationGroupsGridViewCellValidating" CellEditEnded="NetworkLocationGroupsGridView_CellEditEnded" EditTriggers="CellClick">  
                        <t:RadGridView.Columns> 
                            <t:GridViewDataColumn DataMemberBinding="{Binding Id}" Header="Id" Width="50" /> 
                            <t:GridViewDataColumn DataMemberBinding="{Binding LongName}" Header="Name" Width="340" IsReadOnly="True" /> 
                        </t:RadGridView.Columns> 
                    </t:RadGridView> 

In CellValidating event handler, when first column value changes, I calculate and set the value of the second column:
                int id = (int)e.NewValue;  
                var dataTable = dataAccess.GetDataTableFromStoredProcedure("ManagementGetLocationDetail", new Dictionary<string, object> { { "networkLocationId", id } });  
                ((GridViewCell)e.Row.Cells[1]).Value = dataTable.Rows[0]["LongName"].ToString();  
                e.IsValid = true;  
 
or
                int id = (int)e.NewValue;  
                var dataTable = dataAccess.GetDataTableFromStoredProcedure("ManagementGetLocationDetail", new Dictionary<string, object> { { "networkLocationId", id } });  
                var networkLocation = (NetworkLocation)e.Row.Item;  
                networkLocation.LongName = dataTable.Rows[0]["LongName"].ToString();  
                e.IsValid = true;  
 

But even though the second cell value changes, the visual representation stays unchanged, the grid still displays the original cell value. I need the second cell to visually change immediately after first cell passes validation, but I can't find any suitable methods or events to do that. I've tried e.GridViewDataControl.Items.Refresh() but it doesn't work.
Maya
Telerik team
 answered on 20 May 2016
1 answer
260 views
I have a nested grid and I want to expand it and collapse it with a parent row click. It expands with parent row click per default but if i want to close it (collapse it) i have to hold crtl. I want to be able to collapse it again on the parent row click without holding crtl button. How is that possible? Thanks
Yoan
Telerik team
 answered on 20 May 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
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?