I am experiencing some problems making AccessKeys work the way I understand they should in a RadRibbonView.
I have a sample application to demonstrate the problem, but I do not know how to make it available. When the application is running, pressing Ctrl+D should activate the click event of a RadRibbonButton. Note that I configure the AccessKeys property in the initialized event of the button as follows:
private void RadRibbonButton_Initialized(object sender, EventArgs e){ ((RadRibbonButton)sender).SetValue(KeyTipService.AccessKeysProperty, new Collection<KeyGesture>() { new KeyGesture(Key.D, ModifierKeys.Control) });}This is my xaml code for the ribbon:
<telerik:RadRibbonView Grid.Row="0" VerticalAlignment="Top" Grid.ColumnSpan="2" telerik:KeyTipService.IsKeyTipsEnabled="true"> <telerik:RadRibbonTab Header="RibbonTab" telerik:KeyTipService.AccessText="R" > <telerik:RadRibbonGroup> <telerik:RadRibbonButton telerik:KeyTipService.AccessText="H" telerik:KeyTipService.AccessKey="Ctrl+D" Click="RadRibbonButton_Click" Text="Test" Initialized="RadRibbonButton_Initialized" /> </telerik:RadRibbonGroup> </telerik:RadRibbonTab> </telerik:RadRibbonView>What can I do to get this working?
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
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];}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]; }}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
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?
| <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> |
| 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; |
| 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; |