Telerik Forums
UI for WPF Forum
1 answer
179 views
WPF binding is two-way be default, I swapped out a bunch of controls in a project to telerik. It has come to my attention some telerik controls are not two-way by default. Is there a way to set certain bindings to two-way by default? Or would I need to explicitly do it at each location? Also, I heard that RadWatermarkTextBox is two-way by default, where could one find a list of what is and what is not if such a list exists?
Dinko | Tech Support Engineer
Telerik team
 answered on 25 Jan 2018
1 answer
167 views

 

I am using GridView.export() to export the gridview details in the .csv file. After export I can see some special characters inserted in the strings such as " Â" if the string consists of symbol like "<abc>". Is there any way to avoid addition of special characters while exporting? 

 

e.g.
I was trying to export a file having list of names. One of name string consists of string like  "xy<abc>z". After performing export functionality a special character gets inserted in between the name such as "xy<abc>Âz". Because of this name displayed on grid and exported file does not match.

Stefan
Telerik team
 answered on 25 Jan 2018
2 answers
332 views

Hi guys,

I'm desperately trying to find the easiest way of accomplishing this. In short I have a RadGridView of which I have used the ExportToPdf method successfully to export the grid in a landscape format to PDF.

 

GridDetails.ExportToPdf(stream, new GridViewPdfExportOptions()
{
  ShowColumnHeaders = true,
  ShowColumnFooters = true,
  ShowGroupFooters = true,
  PageOrientation = PageOrientation.Landscape,
  ExportDefaultStyles = true,
  AutoFitColumnsWidth = true
});

 

I have been asked whether I can now include the company logo and title to the top, as well as additional text at the bottom. I have looked at trying to use the ExportToRadFixedDocument method, however I cannot seem to get the grid to appear in landscape.
I have tried the following code only to find the page rotated to be landscape, but it's contents appearing as if it were still portrait:

GridViewDocumentExportOptions options = new GridViewDocumentExportOptions();
options.AutoFitColumnsWidth = true;
options.ExportDefaultStyles = true;
options.ShowColumnHeaders = true;
 
RadFixedDocument fixedDoc = GridDetails.ExportToRadFixedDocument(options);
RadFixedPage page = fixedDoc.Pages[0];
page.Rotation = Telerik.Windows.Documents.Fixed.Model.Data.Rotation.Rotate270;

 

This makes sense as the Fixed document is no doubt generated in portrait by the ExportToRadFixedDocument method and unlike GridViewPdfExportOptions, GridViewDocumentExportOptions does not have a PageOrientation property to specify otherwise.

My last remaining option was to use RadFixedDocumentEditor and draw the whole thing from scratch, however if I can avoid this I would rather not spend the time trying to figure out where to draw each row of the grid and whether it needs to be split across multiple pages.

Am I missing something? Is there an easy way to generate a FixedDocument from a RadGridView that has it correctly rotated from which I can then add additional items using the FixedContentEditor.

Thanks
Marc

Marc
Top achievements
Rank 1
 answered on 24 Jan 2018
1 answer
100 views
i want add a bookmark to the header/footer,but i don't know how to do it
Peshito
Telerik team
 answered on 24 Jan 2018
13 answers
2.2K+ views

Hi,

I added references to telerik dlls in the code, with copy local set to true. But, when I am building the project I am receiving an error randomly. 

Error1Unknown build error, 'Cannot resolve dependency to assembly 'Telerik.OpenAccess, Version=2015.1.220.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.' C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.WinFx.targets2689SMS

I am not using openaccess assembly at all. I have no idea why this keeps coming randomly. I am not even able to find the dll anywhere to add it to the project. 

Kindly help me fix this issue. 

Tom
Top achievements
Rank 1
 answered on 23 Jan 2018
3 answers
134 views

I am unable to update the cell background color on the paste of cell values.

I have tried the Pasted, Pasting, PastingCellClipboardContent events on the radgridview. All of this events provide GridViewCellInfo which does not contain the enough information to update background color of the cell.

Also CellValidating event is not fired for the pasted cells in the radgridview, could you please let me know the reason for the same?

 

Vladimir Stoyanov
Telerik team
 answered on 23 Jan 2018
1 answer
153 views

I have been using RadDocking in WPF for a few years now and have been loading and saving layouts but we have noticed one issue that I am trying to address. If a user creates two (or more) documents in a DocumentHost and puts one above the other and saves the layout when the layout is restored the documents are side by side. Below is the XML that is generated by the SaveLayout call. I believe the pertinent attribute is the Orientation="Vertical" in the RadSplitContainer. If I read that correctly the two RadPaneGroups should be positioned vertically one above the other on the screen but they are always positioned side by side. I am still investigating and trying to reproduce this in a simpler application that I can share but I was wondering if anyone else had seen this behavior.

 

<RadDocking>
  <DocumentHost>
    <RadSplitContainer>
      <Items>
        <RadSplitContainer RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" Orientation="Vertical" SplitterChange="701">
          <Items>
            <RadPaneGroup SerializationTag="DocumentGroup" SelectedIndex="0">
              <Items>
                <RadPane SerializationTag="LogViewer" IsPinned="True" IsHidden="True" IsDockable="True" Header="Log Viewer" />
                <RadDocumentPane SerializationTag="dtm:points:fc0c8d04-3d65-47d7-a5ad-d46f433a0fc6:/Outstation/sDNP/sDNP/sDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
              </Items>
            </RadPaneGroup>
            <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
              <Items>
                <RadDocumentPane SerializationTag="dtm:points:61ef9dd8-ca6e-4b67-9fde-ab94c8e148f6:/Master/mDNP/mDNP/mDNP" IsPinned="True" IsDockable="True" Title="DTMControls.DTMPointListCtrl" Header="DTMControls.DTMPointListCtrl" />
              </Items>
            </RadPaneGroup>
          </Items>
        </RadSplitContainer>
        <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SplitterChange="489" SelectedIndex="0">
          <Items>
            <RadDocumentPane SerializationTag="dtm:display1:57269279-9f89-4df3-981d-ca8ed4c2d485:/Outstation/Outstation Display.tgf" IsPinned="True" IsDockable="True" />
            <RadDocumentPane SerializationTag="dtm:analyzer:418e5fde-b466-44e1-8694-ba2d659a8a1c:/" IsPinned="True" IsDockable="True" Title="DTMControls.DTMAnalyzerCtrl" Header="DTMControls.DTMAnalyzerCtrl" />
          </Items>
        </RadPaneGroup>
      </Items>
    </RadSplitContainer>
  </DocumentHost>

Kalin
Telerik team
 answered on 23 Jan 2018
2 answers
207 views

my RadPropertyGrid size is fixed, and I do not want a horizontal scroll bar. so i set ScrollViewer.HorizontalScrollBarVisibility="Disabled"

when drag the slider (which can seperate the property and value) ,  can drag it out of the right side,

how to prevent this

rui
Top achievements
Rank 1
 answered on 23 Jan 2018
0 answers
146 views

Hello,

I'm having problem with editing data in my RadGridView. I have it populated with DB items, with some columns editable. After edit is done, other cells are supposed to update. And here everything is working fine, user can edit row, and then, here comes the problem, he needs to leave current ROW in order to trigger RowEditEnded event. After changing it to CellEditEnded I have alot troubles with StackOverflow errors, coz event is triggered repeatedly (and I'm not sure if it works and can't break the infinite trigger). I'm looking for solution to either:

1. Call RowEditEnded event after user is leaving edited cell and navigate to another cell within the same row

2. Handle CellEditEnded event once, just the same as I handle RowEditEnded (I expected them to work in similar way)

Here is code behind example of what I'm trying to do:

 

private void OnEditEnded_OnRowEditEnded(object sender, GridViewRowEditEndedEventArgs e)
        {
            var grid = sender as RadGridView;
 
            if (grid != null)
            {
                var objectFromList = grid.SelectedItem as MyClass;
               
 
                if (objectFromList != null)
                {
// Whole logic here
                }
            }
           }

 

Looking forward for quick answer,

Best Regards

Mateusz
Top achievements
Rank 1
 asked on 22 Jan 2018
2 answers
144 views

Hi,

I'm new to GanttView. I have a collection grouped by some ID as TaskSource. The collection is listed in RadGanttView.Columns. But I don't want the datetime to be displayed in the Grouped Row (Tree Header). How can I achieve this? Please help me on this.

 

Thanks & Regards,

Muhammad Azhar Shah

Azharshah
Top achievements
Rank 1
 answered on 22 Jan 2018
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
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
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?