Hi,
Is it possible to make a connection with a cap in the middle? I want to obtain an connection without caps at the start and end but with an arrow in the middle only.
Like this:
------->-------
How can that be done? Thank you for your help!
Having an issue where I have put a textbox in a toolbar.
The textbox Text is bound to a property of a Viewmodel but the setter does not get exercised.
it seems as though focus is never lost from the textbox even if the next item does receive focus.
I would have sworn I have used this setup before without issue.
I pulled the code into a simpler project just to verify I was not crazy and it acted the same.
if I pull the textbox out of the toolbar it works fine.
It must be something stupid I am doing. but i cant see it. What am I doing wrong.
Any help would be appreciated
<telerik:RadToolBarTray Width="400" >
<telerik:RadToolBar >
<TextBox Text="{Binding Main.Cali ,Mode=TwoWay}" Width="100" />
</telerik:RadToolBar>
</telerik:RadToolBarTray>
Thanks
Dave.
Telerik.Windows.Controls.RadCombobox.SelectedItemText returns null after screen reloads. I am able to read the Selected Item by using Visual UIA Verify. But, was unable to read it through automation code using TestStack.White framework. Below is the RadComboBox details from xaml page
<telerik:RadComboBox x:Name="ComboBox1"
Style="{StaticResource styleRadComboBoxTransparent}"
ItemsSource="{Binding FitAlgorithms}"
SelectedItem="{Binding SelectedBeadPlex.CurveFitData.FitAlgorithm, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
IsEnabled="{Binding EditEnabled}"
Margin="0,5,0,0"
>
telerik:RadComboBox.ItemTemplate
</telerik:RadComboBox.ItemTemplate>
But,
ComboBox1.SelectedItemText returns null in the Automation code. Please share your suggestions.
Thanks.
public PanelAssociation(DateTime Date)
{
date = Date;
InitializeComponent();
Day.Text = date.ToShortDateString();
DragDropManager.AddDropHandler(ListExtern, OnDrop);
DragDropManager.AddDragOverHandler(ListExtern, OnDragOver);
}
private void OnDrop(object sender, Telerik.Windows.DragDrop.DragEventArgs e)
{
var draggedItem = ((DataObject)e.Data).GetData("DragData");
var droppedItem = (e.OriginalSource as FrameworkElement).ParentOfType<
RadTreeViewItem
>();
PeopleModel.PeopleDetail people = draggedItem as PeopleModel.PeopleDetail;
OrderModel.OrderHead head = droppedItem.Item as OrderModel.OrderHead;
//create program
OrderModel.OrderService.CreateProgramByID(head, date, people.id);
}
private void OnDragOver(object sender, Telerik.Windows.DragDrop.DragEventArgs e)
{
var draggedItem = DragDropPayloadManager.GetDataFromObject(e.Data, "DragData");
var droppedItem = (e.OriginalSource as FrameworkElement).ParentOfType<
RadTreeViewItem
>();
//remove all selections
(sender as RadTreeView).SelectedItem = null;
//select just droppeditem
if (draggedItem is PeopleModel.PeopleDetail)
{
droppedItem.IsSelected = true;
}
else
{
e.Effects = DragDropEffects.None;
}
e.Handled = true;
}
How can I prevent the user from entering or pasting text that contains newlines in a RadMaskedTextInput. The user should also not be able to enter a newline using Ctrl+Return or Shift+Return or Alt+Return.
Setting the `AcceptsReturn` property to `false` has no effect at all. And its documentation states
> "Gets or sets a value indicating whether newline is accepted when the mask supports multiline."
Unfortunately the docs fail to mention how to set set a mask that prevents multiline.
Hi
I am trying to print a PDF containing logos and barcodes.
I am using a Zebra PAX label printing using thermal transfer ribbon, so within its printer driver settings I have set the label size and the Graphics Dithering setting to NONE to ensure pure B&W printing.
Printing the PDF through Adobe takes note of the driver settings and prints perfectly.
Using the code below, the logo are "greyscaled" and the label doesn't fill the label, i.e. doesn't take note of the printer driver settings.
Any ideas?
private
void
btnPrint_Click(
object
sender, RoutedEventArgs e)
{
PrintSettings printSettings =
new
PrintSettings()
{
DocumentName =
"pdfLabel"
,
UseDefaultPrinter =
false
};
PrintDialog p =
new
PrintDialog();
PrintQueue q = FindPrintQueueByName(
"ZebraPAX"
);
if
(q ==
null
)
{
q = p.PrintQueue;
}
p.PrintQueue = q;
p.MinPage = 1;
p.MaxPage = 1;
this
.pdfViewer.Print(p, printSettings);
}
private
PrintQueue FindPrintQueueByName(
string
name)
{
PrintServer server =
new
PrintServer();
foreach
(PrintQueue queue
in
server.GetPrintQueues(
new
EnumeratedPrintQueueTypes[] {
EnumeratedPrintQueueTypes.Connections, EnumeratedPrintQueueTypes.Local }))
{
if
(queue.Name == name)
{
return
queue;
}
}
return
null
;
}
Hi,
I have a RadTreeView inside RadDropDownButton.DropDownContent.
What I want to achive is to reorder TreeView Items inside the dropdowncontent. I testet my behaviour having only a TreeView - this works. Now when I put the TreeView in the RadDropDownButton.DropDownContent, dragging does not work any more on the TreeView.
<
telerik:RadDropDownButton
Height
=
"26"
AutoOpenDelay
=
"0:0:0.0"
Content
=
"Click"
IsOpen
=
"True"
>
<
telerik:RadDropDownButton.DropDownContent
>
<
telerik:RadTreeView
x:Name
=
"xTreeView"
Margin
=
"8"
IsDragDropEnabled
=
"True"
ItemTemplate
=
"{StaticResource League}"
ItemsSource
=
"{Binding Source={StaticResource DataSource}, Path=LeagueObjects}"
/>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
It do scrolls the drop-down content, but after scrolling to the bottom position it will scroll the parent RadGridView for more mouse scrolling down.
How do i scroll the multiCombobox without affecting the parent scrollbar.