Telerik Forums
UI for WPF Forum
1 answer
193 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
98 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
684 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
97 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
284 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
117 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
299 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
160 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
1 answer
367 views

Hi,

I have a problem with a editable gridview.

The colums with dateticker and radcombobox have a cyan border.

It appear when I am editing and a mouse leave this field.

Xaml :

<telerik:RadGridView 
              x:Name="ModifiableItems"
              Grid.Row="0"
              RowHeight="45"
              Margin="0,0,0,15"
              GridLinesVisibility="Horizontal"
              CanUserSortColumns="False"
              CanUserFreezeColumns="False"
              IsReadOnly="false"
              HorizontalAlignment="Left"
              VerticalAlignment="Stretch"
              IsFilteringAllowed="True"                                                       
              HorizontalContentAlignment="Left"
              RowIndicatorVisibility="Collapsed"
              ItemsSource="{Binding ModifiableItems, Mode=TwoWay,  UpdateSourceTrigger=PropertyChanged}"
              SelectionMode="Single" >
 
              <telerikctrl:RadGridView.Columns>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding String}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}" />
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Int}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Bool}" Width="*"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Double}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}"/>
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding Decimal}" Width="*" EditorStyle="{StaticResource TextBoxRadGridViewStyle}" />
                  <telerik:GridViewDataColumn DataMemberBinding="{Binding DateTime, StringFormat=dd/MM/yyyy}" Width="*" />
                   
                  <telerik:GridViewComboBoxColumn ItemsSource="{Binding ObservableCollection}" DataMemberBinding="{Binding Item}" DisplayMemberPath="Label" Width="*" EditorStyle="{StaticResource RadComboBoxRadGridViewStyle}"/>                           
              </telerikctrl:RadGridView.Columns>
 
          </telerik:RadGridView>

 

You can see in attachement, a sample

Sia
Telerik team
 answered on 26 Jun 2020
3 answers
203 views

I use NoXaml binaries and use the Expression dark theme forlittle test program. 

The MainWindow and the RadGridView use the theme. But the Scrollbar does not use the theme.

Do you have any idea why it is notstyled.

Best regards, 

Ralf

Vladimir Stoyanov
Telerik team
 answered on 26 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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?