Telerik Forums
UI for WPF Forum
7 answers
559 views
I am using the 2011.2 version of Telerik.
We are using a rad grid view populated from a list of items about 5k or so long. When we hit the filter button the filter menu pops up, but it only has about half of the items available. Specifically, it sorts by string name (removing redundancies), only items up to those starting with the letter "M" are shown, where as I know that there are items all the way to "Z".

My question is this, is there a maximum number of items displayed in the filter's list? And if so, can we set the value higher?

Thanks,

Eli
Gert
Top achievements
Rank 1
 answered on 03 Jul 2020
1 answer
374 views

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.

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Jul 2020
0 answers
145 views

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.

GREESHMA
Top achievements
Rank 1
 asked on 03 Jul 2020
2 answers
742 views

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;
        }
Hi, i have a simple RadListBox to RadTreeView drag and drop, if i run, the event onDrop is called twice, if i debug, at the end of first ondrop return me an exception:
DragEventArgs.cs not found

i post my code:
Minita
Top achievements
Rank 1
Veteran
 answered on 03 Jul 2020
1 answer
268 views
I'm showing two charts that are stacked vertically and have the same x-axis values. So I set ShowLabels to False for the top chart. However, now the points do not extend beyond the PlotArea on the right side even with ClipToPlotArea set to False. I have tried all sorts of margin and padding settings but I have not been able to add any extra space between the PlotArea and the right edge of the Chart. Suggestions?
Martin Ivanov
Telerik team
 answered on 02 Jul 2020
2 answers
448 views

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.

Petar Mladenov
Telerik team
 answered on 02 Jul 2020
9 answers
934 views

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;

}

Dimitar
Telerik team
 answered on 02 Jul 2020
2 answers
181 views

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>
Gert
Top achievements
Rank 1
 answered on 02 Jul 2020
2 answers
158 views

 

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.

Huan jia
Top achievements
Rank 1
Iron
 answered on 02 Jul 2020
3 answers
286 views

Hello,

If I click the title of the window and move it, it stops working, after a few movement (i.e. after two movements in 8), the window returns to its original position and no more moves.

This is with Office2016 theme, not checked with other ones.

Martin Ivanov
Telerik team
 answered on 01 Jul 2020
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?