Telerik Forums
UI for WPF Forum
5 answers
162 views

Hi! I'm using the implementation from the RowReorder-demo to get drag-n-drop in my RadGridView. It works really good, but I have an issue with copying. When reaching OnDrop the e.Effects are ALWAYS DragDropEffects.All (even when just moving an item).

In OnGiveFeedback the e.Effects is DragDropEffects.Copy (if pressing Ctrl), but it's not in OnDrop. I also checked the OnPreviewDrop method, but it's DragDropEffects.All there also.

Do I have to add something somewhere? In OnDragInitialize the e.AllowedEffects are set to DragDropEffects.All.

Magnus
Top achievements
Rank 1
 answered on 30 Aug 2017
1 answer
140 views

Hi

<telerik:RadScheduleView x:Name="scheduleView"  
                                 GroupDescriptionsSource="{Binding GroupDescriptions}" 
                                 ResourceTypesSource="{Binding Resources}" VisibleRangeChanged="scheduleView_VisibleRangeChanged"
                                 VisibleRangeChangedCommand="{Binding VisibleRangeChanged}" 
                                 VisibleRangeChangedCommandParameter="{Binding VisibleRange, RelativeSource={RelativeSource Self}}"
                                 GroupHeaderContentTemplateSelector="{StaticResource CustomGroupHeaderContentTemplateSelector}">
            <telerik:RadScheduleView.ViewDefinitions>
                <telerik:DayViewDefinition />
                <telerik:WeekViewDefinition />
            </telerik:RadScheduleView.ViewDefinitions>
        </telerik:RadScheduleView>

private void scheduleView_VisibleRangeChanged(object sender, EventArgs e)
        { 
            this.scheduleView.AppointmentsSource = new ObservableCollection<Appointment>();
        }

Kalin
Telerik team
 answered on 30 Aug 2017
3 answers
361 views

I am trying to figure out if it is possible to set the AutoFitColumnWidth or control the width of a column for the PDF output of a WPF Grid?

 

I have the following code for setting up my export options.

public void ExportToPdf(RadGridView grid)
{
    grid.ElementExportingToDocument -= Grid_ElementExportingToDocument;
    grid.ElementExportingToDocument += Grid_ElementExportingToDocument;
     
    var exportOptions = new GridViewDocumentExportOptions
    {
        AutoFitColumnsWidth = false,
        ExcludedColumns = { grid.Columns[9], grid.Columns[10], grid.Columns[11], grid.Columns[12] },
        ShowColumnHeaders = grid.ShowColumnHeaders
    };
 
    var dialog = new SaveFileDialog
    {
        DefaultExt = "pdf",
        FileName = SelectedCollege.CollegeCD + " - Roster.pdf",
        Filter = "Pdf Files|*.pdf"
    };
 
    if (dialog.ShowDialog() == true)
    {
        using (var stream = dialog.OpenFile())
        {
            grid.ExportToPdf(stream, exportOptions);
        }
    }           
}

 

I do not want ALL columns to auto size, because I have columns with single digit values in them and they look terrible squished together. I REALLY would like to set the width manually so the output looks good. 

My Grid columns are all Width="*" on the XAML side. And as you can see I am subscribing to the "ElementExportingToDocument" event and styling the grid to look the way it needs to look as far as foreground and background sizes. 

Are we limited only to the CellSelectionStyle properties when it comes to customizing the export? 

Martin Ivanov
Telerik team
 answered on 29 Aug 2017
1 answer
448 views

I'm just trying to do something that seemingly should be simple... trying to map individual checkboxes in a telerik:GridViewSelectColumn in a telerik:RadGridView to a corresponding Boolean property of an entity mapped for each individual row.

<telerik:RadGridView x:Name="MyGridView" ItemsSource="{Binding MyGridViewItems, Mode=TwoWay}" SelectionMode="Extended" AutoGenerateColumns="False">    
    <telerik:RadGridView.Columns>
<telerik:GridViewSelectColumn Name="MyCheckBoxColumn">
   <telerik:GridViewSelectColumn.CellTemplate>
<DataTemplate>
   <CheckBox Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewDataControl}}, Path=DataContext.IncludeChangedCommand}" CommandParameter="{Binding}" IsChecked="{Binding MyBooleanProperty, Mode=TwoWay}" />
</DataTemplate>
   </telerik:GridViewSelectColumn.CellTemplate>                                            
</telerik:GridViewSelectColumn>

.
.
.

    </telerik:RadGridView.Columns>
</telerik:RadGridView>

 

How do I map MyBooleanProperty in each row/entity to each individual checkbox represented in the Grid?

Dinko | Tech Support Engineer
Telerik team
 answered on 29 Aug 2017
1 answer
238 views

Hi, 

As part of application development, we are using the Telerik:RadTreeView to support UI viertualization in the tree view.

We have a requirement to make a data subscription to each tree view item after finish loading all of the items... basically would like to when virtualizaiton loaded the visible items and unloaded the invisible items...

 

Is there are any event or sample code to refer for above functionality?

I am new to this... and gone through RadTreeView documentation, but didnt find any suitable events for this..

Thanks

Rama. 

Martin Ivanov
Telerik team
 answered on 29 Aug 2017
0 answers
145 views

Dear Telerik Admin Team

I have some issues during using RadRibbonView,Kindly help me to solve them. Any feedback I do appreciate.

1. How to use Build-in theme for RadRibbonView? For example I found a theme Office2016 that really very beautiful and I would like to use it as default theme.

2.Please see attachment 'RibbonTab Cannot display normally", In this case I have add some RibbonTab into RibbonView, but only selected RabbionTab can display and other cannot see correctly, I tried to move mouse and hover on unselected RibbonTabs, I can see these RabbionTabs, this is very strange.

3. When I collapsed RabbionView, what I expected should be that only tabs header display correctly, but after collapse I cannot see anything, really very strange.Please see attachment 'Collaspe issue'.

Ning
Top achievements
Rank 1
 asked on 29 Aug 2017
7 answers
407 views

Hi,

I try tu re-use TableShape example and specificaly styles and i have a problem when iadd a Row into Table. each element shift on the left (see capture 1) If i force width, the problem is the same.
The row is not stretch to te container and create a resizing of the container. (i have 10px on the left and the right side, see the capture 2). How to remove this padding or margin ?

The last problem is when i add or delete a row, the event OnItemsCollectionChanged in TableShape class is not trigged, maybe i missed a binding ?

Can you help me please.
Thanks a lot,
Nicolas

nicolasf
Top achievements
Rank 2
 answered on 28 Aug 2017
5 answers
234 views
Hi guys,

I want to implement a RadDiagramToolbox with rectangle shapes binded to database items.
Due to the logic I only have one gallery with those shapes.Therefore the gallery category itself is quite useless for me and I can hide it with the attribute isOpen="False".

Unfortunately below my shapes there is the status bar where I can show the categories again (OpenCloseButton) - Is it possible to hide this bar completely so no user can see the gallery behind the shapes? (see attached screenshot)

Thanks
Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2017
1 answer
144 views

Hi,

I have added a scrollviewer to the vertical axis in the telerik:RadCartesianChart But while closing the view have this exception ( null Ref ChartView.Axis.OnDetached(RadChartBase old chart). Cloud you please help to fix this bug?.

 

Thanks

Martin Ivanov
Telerik team
 answered on 28 Aug 2017
1 answer
95 views

How to change the foreground of the TimeSpanPickerComponent?

I've tried custom Template (via Edit a Copy) and TimeSpanComponentStyle. None of them works.

Need assistance.

Thanks!

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2017
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?