Telerik Forums
UI for WPF Forum
2 answers
381 views

I have a column in my GridView that consist of boolean values. These values are used to show an icon in the column. Now I want to be able to filter the column so that I can select rows that contain an icon, or rows that does not. 

Currently my filter does not contain any values to filter from. First I want to be able to filter the column. Second I want to customize the names for the checkboxes. So instead of just saying "True" and "False", I would like them to say "My custom string representing the true value" and "My custom string representing the false value".

Is this possible, and how would one go about creating this?

Martin
Top achievements
Rank 1
Veteran
 answered on 01 Jul 2020
2 answers
146 views

hello, 

 

i have a problem that containershape's bounds arrange.

I try to arrange "Shape" and "ContainerShape" at regular intervals vertically.

ContainerShape should have inner Containers or Shapes. and ContainerShape linked by others. (connector are located top and bottom. each connector connected on link)

if drag or drop event routed, then arrange items. AutoLayout. (custom layout)

 

each item's position be changed. method working successful.

But Speed issues arise through the "OnPositionChanged" event of "ContainerShape".

 

for example,

A,B,C is ContainerShape. and B,C is inner Container in A.

i recognized,

A's OnPositionChanged occur

B's OnPositionChanged occur

B's CalculateContentBounds occur

C's OnPositionChanged occur

C's CalculateContentBounds occur

A's CalculateContentBounds occur

 

problem,

Changing the position of the "A" connected to each other (D or E etc) causes a pause for a moment before the "A's CalculateContentBounds occur" occurs.

I don't know how to prevent the pause.

 

If i block the "OnPositionChanged" event, then arranging is failed but, a paused issue doesn't occur.

seokhyun
Top achievements
Rank 1
Veteran
 answered on 01 Jul 2020
1 answer
219 views

Hi Telerik

I have a RadGridView with grouped data on 2 properties (ie 2 RadGridView.GroupDescriptors in xaml). This works great.

 

Visually I would like to save some space on the left side by removing the extra columns that is created for each of the grouping (see attached image).

Preferably also move in the collapse-expand arrow, but that would be more of a bonus. 

 

Im suspecting I have to paste in the entire GridViewNewRowTemplate and change the part_indicatorpresenter from theGridView-xaml, but I hope I can do something lessradical

 

Thanks in advance, Robert

 

 

Martin Ivanov
Telerik team
 answered on 30 Jun 2020
0 answers
126 views

Hi 

I am trying a following case to export to pdf from a raggridview, with a repeating header on each page.

By refering to some forum queries i could do pdf export with defined column widths to columns and wraps.

For repeating header I am trying to create a RadDocument with a Table as table can do repeat headers on each page. 

Can you please help me create tablecells from Worksheet with same style and column widths and fonts?

 

Thanks & Regards,

Sunil

 

Sunil
Top achievements
Rank 1
 asked on 30 Jun 2020
18 answers
750 views

I have a RadGridView bound to an ObservableCollection. This collection is constantly updated and on the first binding, the grid shows the data correctly. But then when I rebind the collection (through a search button), it duplicates the rows while the underlying collection contains correct data.


It only happens when the LoadData mode is Asynchronous. If I change it to Synchronous, it does not happen.

Besides, on the OnItemSourceChanged I modify the filterDescriptor. I know that Rebinding the collection on the event OnItemSourceChanged is very expensive and it is not an option.


It does not happen when debugging it either. Only in execution time. And it does not happen when putting a Thread.Sleep on the load. That is the reason why I am positive that it is an issue of synchronizing the threads. As the Asynchronous mode loads the data in a different thread while it only shows the ones fitting the grid, it has a thread to show the data on the UI and another to populate it. If we add processing to the OnItemSourceChanged, the thread will not wait (or join) the other (the one displaying the data) and will duplicate it in execution time.


Of course that when debugging it, we will see in the thread stack that there are 2 main threads, one drawing and the other one in wait/join state. As it is a bundled in resource (LoadDataMode="Asynchronous"), I can not override the handlers of the background worker that performs these actions. I can always use another technique to load up the required information asynchronously (like a backgroundworker handling the doWork events and changing the displayed data on the scroll down event, for example; also with paging programatically; restful services; etc). But I wanted to use the Telerik recommended controls.


Is there a way to override the handling of those different threads so that I can light them up and synchronize them on my own? Could there be another solution to this issue?


Dinko | Tech Support Engineer
Telerik team
 answered on 30 Jun 2020
0 answers
113 views

hello,

 

i'm in trouble when saved collapsed ContainerShape is loaded.

 

A single ContainerShape doesn't matter, but the problem is that ContainerShape in collapsed ContainerShape is always loaded collapsed.

It doesn't matter inner ContainerShape's collapse saved state.

it cause a situation when parent collapsed ContainerShape's property makes false, child ContainerShape' collapsed is always true.

seokhyun
Top achievements
Rank 1
Veteran
 asked on 30 Jun 2020
5 answers
315 views

Hi Team,

I would like to disabled the selected item template that we display when a single item is selected and behave it like combo box where clear button (x) is placed at the end.

Thanks

Louay
Top achievements
Rank 1
 answered on 29 Jun 2020
3 answers
146 views

Hi

In the WPF PDFViewer, there doesn't currently appear to be a way to tab (or use any other keyboard navigation) between form fields.

I see that this has been on the feedback portal for 2 years: https://feedback.telerik.com/wpf/1354935-pdfviewer-support-for-tab-navigation-between-form-fields

Is there a way to work around this limitation and allow clients to use keyboard navigation between fields?

Thanks

Guy

Martin
Telerik team
 answered on 29 Jun 2020
3 answers
325 views

Hello,

Thank you for your good control and service.

 

As I know RichTextBox still doesn`t support export to Pdf with Track Changes

By this reason I try to use RichTextBox.Print() function to export content with Track Changes to pdf ("Microsoft Print to Pdf" or any analog)

The problem is just I can`t set exact filename path or at least propose recommended file name to user, before print. Here is my code, which is like your RichTextBox/CustomizingPrint from GitHub:

(Editor is my RichTextBox)

private void Print_Click(object sender, RoutedEventArgs e)
{
 
    RadDocument document = Editor.Document;
 
    PrintSettings settings = new PrintSettings()
    {
        DocumentName = "Output_20200625.pdf", // Nope, I need Path to save
        PrintMode = PrintMode.Native,
        PrintScaling = PrintScaling.None,
        UseDefaultPrinter = true               
    };
 
    if (document != null)
    {
        PrintDialog printDialog = new PrintDialog();
        PrintQueue printQueue = FindPrintQueueByName("pdf");
        if (printQueue == null)
        {
            printQueue = printDialog.PrintQueue;
        }
        int pagesCount = document.FirstLayoutBox.Children.Count;
        printQueue.DefaultPrintTicket.PageMediaSize = new PageMediaSize(PageMediaSizeName.ISODLEnvelope);
        printDialog.PrintQueue = printQueue;
        printDialog.MinPage = 1;
        printDialog.MaxPage = (uint)pagesCount;
        //DocumentPrintPresenter documentPrintPresenter = new DocumentPrintPresenter(settings); // RadDocument Print Document?
 
        Editor.Print(printDialog, settings);               
    }
}
 
private PrintQueue FindPrintQueueByName(string name)
{
    PrintServer server = new PrintServer();
    foreach (PrintQueue queue in server.GetPrintQueues(new EnumeratedPrintQueueTypes[] { EnumeratedPrintQueueTypes.Connections, EnumeratedPrintQueueTypes.Local }))
    {
        if (queue.Name.ToLowerInvariant().Contains(name))
        {
            return queue;
        }
    }
    return null;
}

 

Is any idea how can I make it, or any alternate method? May be Xps, then Pdf? 

Thank you!

Dimitar
Telerik team
 answered on 29 Jun 2020
3 answers
189 views
Hi,
 I load an arabic DOCX files in RichTextBox that integrate with RadBook. 
But when it loaded, it show all RTL Text in LTR Format. How i can fix it?
Hazim
Top achievements
Rank 1
Veteran
 answered on 27 Jun 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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?