Telerik Forums
UI for WPF Forum
1 answer
133 views
Is there a way to change the CloseButtonContainer.Background or the Background of the PART_Close ToggleButton without overwriting the whole template? We are using the Transparent Theme. I already changed the CalendarStyle and the ClockStyle to a usable Background color. But the Close-Button at the bottom is hardly visible. I don't want to put over 1500 extra lines of Template-Code to my Project. Unfortunately the PART_DropDownButton, CloseButtonContainer and the PART_Close Button itself are not accesible from a simple Style. I tried to set a Ressource to the DateTimePicker overwriting all RadToggleButtonStyles, but as seen in the Template the Part_Close Button uses its own Style and Template.

  <Style TargetType="telerik:RadCalendar" x:Key="CalendarBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadClock" x:Key="ClockBackStyle">
    <Setter Property="Background" Value="{StaticResource NormalToLightBackgroundBrush}" />
  </Style>
  
  <Style TargetType="telerik:RadDateTimePicker">
    <Setter Property="CalendarStyle" Value="{StaticResource CalendarBackStyle}" />
    <Setter Property="ClockStyle" Value="{StaticResource ClockBackStyle}" />
  </Style>
  
<!--Overwrite Resources, didn't work-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="telerik:RadDropDownButton">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>
 
<!--This works but doesn't help because all borders are styled-->
<telerik:RadDateTimePicker>
      <telerik:RadDateTimePicker.Resources>
           <Style TargetType="Border">
             <Setter Property="Background" Value="Lime" />
            </Style>
       </telerik:RadDateTimePicker.Resources>
</telerik:RadDateTimePicker>

Is there a simple solution?
Masha
Telerik team
 answered on 06 Nov 2012
1 answer
147 views
Hi Team,

How do we can export the RadRichTextBox content to PDF document with track changes.

Enclosed the sample pdf report image which is generated using office 2007.
Kammen
Telerik team
 answered on 06 Nov 2012
4 answers
122 views
Using RadDocking I am trying to create an MDI-style app with many Windows using RadGridViews to edit data.
Instead of using child Windows I try to dynamically create RadPanes with UserControls  from a Menu:

Dim p As New RadPane
p.Content = New SomeUserControl
paneGroup.AddItem(p, Docking.DockPosition.Center)


When the user tries to close the RadPane and the data is dirty I want to offer a choice "Discard changes?".
With Windows I would use the Closing event for this.
How can I do this with a RadPane?
There seems to be no PreviewClose event for RadPane even though they have a close button. UserControls do not have a Closing event.

Or is there a better way to create an MDI-Stlye UI?
As there is no example, I am not even sure if it is a good idea to create RadPanes with UserControls. One cannot put Windows on Panes, but maybe there is some other Control to host the editing Controls we should use.
Peter
Top achievements
Rank 1
 answered on 06 Nov 2012
5 answers
185 views
Hi 

I am trying to create an Off-line Image Map creator using Radmap, Empty provider (Bing maps would be great but not posible) and kml sources intended for Telerik Reports. 

Using RenderTargetBitmap I tried to generate an image of the control, even if it's just showed for an instant, the problem is that tiles or shapes don't load and get a gray empty image (Only showing scale bar and map controls).
Is there any way to get the tiles or shapes loaded before that?

Any idea is appreciated.
Andrey
Telerik team
 answered on 06 Nov 2012
1 answer
150 views
When I set the MaxHeight property of a GridViewRow to 22, for example, and one of the cells contains longer text with multiple line breaks the text in other cells is no longer visible.

When I remove the MaxHeight property of the GridViewRow the row height is automatically adjusted to fit the height of the cell containing the longer thext with multiple breaks and the text in other cells reapperas but it is vertically centered.

I tried applying a cell style to other cells with VerticalContentAlignment set to Top but the text in other cells still remained hidden.

Also, even though I've set the TextWrapping to NoWrap and TextTrimming to WordEllipsis for the column containing the longer text with line breaks the text in that cell is displayed in two rows.

Is there any way to prevent text in other cells from disappearing when the MaxHeight is set to lower than what one of the cells content height is? If not, I'd say that this is a bug...

UPDATE: Using the cell style with VerticalContentAlignment set to Top actually works but than you have to keep adjusting the padding... is there a better solution?

Here is the attached image of how ugly that looks:
Vera
Telerik team
 answered on 06 Nov 2012
2 answers
187 views
Hello,
  I just added the DiagramNavigationPane to a window that had an existing diagram.  I have set the Diagram property via binding as you showed in the online documentation.  I have noticed when I expand the pane there is no value for my zoom size, the autofit button is disabled and all I see in the thumbnail is a small red dot.  Are there other properties tied to the diagram itself that would affect the navigationpane?

Brent
Petar Mladenov
Telerik team
 answered on 06 Nov 2012
1 answer
155 views
I am using VS 2012 and 4.5 framework to create WPF XBAP project, and WPF RadControls. Problem I have is Page/Window/UserControl doesn't show telerik WPF rad controls. It is not a problem with System.Windows.Controls.

I used 2012.3.1029.40 version for the screenshots. but it is same with Q3 release binaries too.

What I am doing wrong here? Or Is something wrong with my environment or VS 2012? Please help, it is wasting my time a lot. :(
Vlad
Telerik team
 answered on 06 Nov 2012
3 answers
171 views
Hi,

I am using version 2012.3

I have a grid view which is autogenerating columns from a datatable. The reason I am using the RadGridView is so that the user can filter and/or sort with a minimum of hassle.

As part of the program, the user can delete rows from the table at any time. They can also add them back at a later date.

I have the add/remove working fine, basically using table.Rows.Remove(row) this triggers the AutoGeneratingColumn event for each column as the table basically reloads.

Where I am having trouble is when the user sorts or filters the data before removing a column. If the grid is sorted and you remove a column, the output shows "A first chance exception of type 'System.ArgumentException' occurred in System.Data.dll" and the entire grid becomes blank. It does not come back if you try adding the row back.

If the user has added a filter to the grid and removes a row, it looks like it worked. The data showing is whatever you had filtered already, minus that row. The problem is that it says that there is no filter, so you cannot remove the previous filter.

How do I change the data that the grid is bound to and have the sorting/filtering update at the same time?

Thank you,

Eli
Vlad
Telerik team
 answered on 06 Nov 2012
7 answers
267 views
Hello,

I have been using the RadGridView for a project and I am having an issue with custom templating and styling.  I have set up custom styles for the RadGridView, GridViewRows, and a few other controls.

The problem I am having is that my GridViewRow style is not being applied to the "Click here to add new row" row, nor the editable row that appears when you click it.

To further compound everyone's confusion, when I create a basic custom style and apply it to the "NewRowStyle" property, it messes up the way the normal rows as well as the headers of the grid display.


Am I missing a step on applying custom templates and styles?

Thank you.



(For further information, I am using the latest Q3 trial release for WPF.  Development is in Visual Studio 2010).
David
Top achievements
Rank 1
 answered on 06 Nov 2012
4 answers
329 views
Hi,

I know that the default WPF combobox has the same behavior - but maybe RadCombobox can do it better.
What I want is a ComboBox where the user can select a single item from the dropdown.
This works so far - but when hovering an item with the mouse the user gets lost because the Selected Item is no longer highlighted.

Although I could create such a combobox with a togglebutton and a listbox in a popup I would prefer to use RadComboBox.

Is there a way to achieve this (easily)?

Thanks
Manfred
ManniAT
Top achievements
Rank 2
 answered on 05 Nov 2012
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?