When I click the grid view's "add new item" button, it shows a text box where to type in the value for the new row. I want show Window's on screen keyboard when the text box is clicked/tapped. I.e., I start a new Process that starts TabTip.exe for every other text box in my application.
Is there an easy way to do this with the grid view's text box or do I have to override a certain grid view's style? If so, which one?
I took a quick look at the your style structure topic but couldn't find the text box in the styles. I think the text box container is PART_DataCellPresenter because the text box was not displayed after I commented PART_DataCellPresenter out in the style.
The way I have handled this with other text boxes is that I have created a new class that extends TextBox. Then I subscribed to the PreviewLeftMouseUp event whose handler starts TabTip.exe. Maybe I can override some grid view's style to use my extended class or if you have a better solution.
If I set RadTreeViewItem Background it highlights the header only. How can I highlight the whole line?
I have a bar series. I use the default setting. Now I want to customize the margins. See the expected image.
Do not worry about the bar color. I only need to set the margins. I have no idea to do it.
If you could post a sample project, that would be great. Thanks.
Is there a simple way to get the text in a RadComboBox and a TextBox to be aligned? Both controls are aligned but the text within the controls are slightly misaligned.
Thanks,
Bob
Sample XAML:
<Window x:Class="AlignmentIssue.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="45" />
<RowDefinition Height="45" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<telerik:RadComboBox Grid.Column="0"
Grid.Row="0"
SelectedIndex="0">
<telerik:RadComboBoxItem Content="Begin Item 1" />
<telerik:RadComboBoxItem Content="Begin Item 2" />
</telerik:RadComboBox>
<TextBox Grid.Column="0"
Grid.Row="1"
Text="Begin Alignment Test" />
</Grid>
</Window>
Hello Telerik Team
We are in the process of evaluating a schedule control. Now we encountered a problem with ScheduleView. AllDayArea is not displayed if first grouped by date (DateGroupDescription) and then by resource (ResourceGroupDescription) in the day view and week view.
groups.Add(
new
DateGroupDescription());
//TODO when comment out, AllDayArea is displayed
groups.Add(
new
ResourceGroupDescription
{
ResourceType =
"Department"
});
Here is a test project on my OneDrive account.
ScheduleView has many bugs concerning AllDayArea. I think it's time to fix them:
ScheduleView: When ShowWeekGroupHeaders property is set the ShowAllDayArea is rendered incorrectly.
ScheduleView: Arrow for continuing appointment is shown wrong
ScheduleView: ScheduleView does not render correctly when AllDayEvent with ShowAllDayArea
ScheduleView: AllDay appointments are not rendered consistently in MonthView and other Views
Regards,
Marco
Hi,
In the GridViewDragDropBehavior in the OnDragOver event handler, there does not seem to be a way to detect the dragged over row/item. I am trying highlight the dragged over row differently depending on the content of the dragged over row. So, for example, if row 1 cell 1 contains the words "Not on me" I would highlight the row with a red backcolor until they moved off of it and disallow drop. In the examples that I've seen they always show the CurrentDraggedOverItem to be the this.AssociatedObject, which is always the gridview itself. I want the specific row with that is being dragged over. Can I get there from here?
Thanks .... Ed
private void OnDragOver(object sender, Telerik.Windows.DragDrop.DragEventArgs e)
{
var data = e.Data as DataObject;
if (data != null && data.ContainsFileDropList())
{
return;
}
var draggedItem = DragDropPayloadManager.GetDataFromObject(e.Data, "DraggedData");
var itemsType = (this.AssociatedObject.ItemsSource as IList).AsQueryable().ElementType;
if (draggedItem.GetType() != itemsType)
{
e.Effects = DragDropEffects.None;
}
var dropDetails = DragDropPayloadManager.GetDataFromObject(e.Data, "DropDetails") as DropIndicationDetails;
dropDetails.CurrentDraggedOverItem = this.AssociatedObject;
dropDetails.CurrentDropPosition = Telerik.Windows.Controls.DropPosition.Inside;
e.Handled = true;
}
Hi All
I have created buttons dynamically in vb.net using
Dim rb As New RadButton
How can I assign a click event to this button please?