Telerik Forums
UI for WPF Forum
0 answers
121 views
Hi,
 We need to set the width of the columns in RadGridview from a xml file. It is working fine in WPF datagrid. And also it is working fine in RadGridview in visual studio design mode but in run time the widths are not taken from the xml file. Find the code below

--data1.xml
<?xml version="1.0" encoding="utf-8" ?>  
<DatagridColumns xmlns="">
    <DatagridColumn Case_ColumnWidth="150" />
    <DatagridColumn Order_ColumnWidth="100" />
    <DatagridColumn IPName_ColumnWidth="150" />
</DatagridColumns>

--RAdGridview code (Main window)
<Window x:Class="TelerikGridviewColumnWidth.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.Resources>
            <XmlDataProvider x:Key="xmlProvider" Source="XML/data1.xml" XPath="/DatagridColumns/DatagridColumn"/>
        </Grid.Resources>
 
        <telerik:RadGridView AutoGenerateColumns="False" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="Case" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@Case_ColumnWidth}" />
                <telerik:GridViewDataColumn Header="Order" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@Order_ColumnWidth}" />
                <telerik:GridViewDataColumn Header="IpName" Width="{Binding Source={StaticResource xmlProvider}, XPath=//@IPName_ColumnWidth}"/>
                </telerik:RadGridView.Columns>
 
        </telerik:RadGridView>
    </Grid>
</Window>

Let us know how to configure the column widths from xml file

Thanks,
Parthasarathy  K.
Parthasarathy
Top achievements
Rank 1
 asked on 01 Apr 2013
2 answers
173 views
Hi Telerik!

I have successfully implemented the RadDiagram into my application and I am dynamically loading data to populate the Shapes and Connections via my GraphSource. This works perfectly! The only issue I have left is that when I load the application, each Shape is now stacked on top of each other. I can move them around individually and all of the Connections are correct and it looks great once they have been moved manually. I was wondering if you have run into this problem before. I believe it has something to do with the TreeLayoutSettings but after inspecting them in the code behind it looks like the default settings have been loaded but I could be wrong. I have also tried initializing a different TreeLayoutSettings object and tried to set my "Root/Parent Node" via the Shapes[0] index and this still shows unexpected results (all shapes stacked on top of each other). This is the last hurdle I have to complete this application, and any help would be appreciated. Thank you! :)

Jacob
Jacob
Top achievements
Rank 1
 answered on 01 Apr 2013
4 answers
152 views
I am attempting to persist a gridview with custom filteringer.  I am using the GridViewCustomPropertyProvider class in your example and see that I am hitting the ProvideValue method but in the if condition for FilterDescriptors I have no ColumnFilterDescriptor which IsActive is true.  If I remove my custom filter I do find the IsActive column.

 

My custom filter does function get applied to the grid as I am implementing the IFIlteringControl.  I also do have an IsActive DependencyProperty on my class.  In fact, the basis for my custom control was from your example code as well.

Is there some issue with using the PersistanceManagers Save method when the filter is a custom filter or am I missing something?

Thanks

Paul
Paul
Top achievements
Rank 1
 answered on 01 Apr 2013
1 answer
109 views
I am trying to figure out how to get the Treeview to ignore the SelectedUnfocused VisualState. I am also trying to use the Windows8Theme with my project as well. When ever I try to edit the template, I always get the default colors. I would also like to be able to have the ability to change the theme at any given time. Is there an option I am missing that can enable and disable that function?

I am sorry if this is a duplicate, I did look to see if anyone else was having this exact issue. :)

Thanks
ZS

 

 

 

Pavel R. Pavlov
Telerik team
 answered on 01 Apr 2013
5 answers
512 views
Hi all,

I am currently using the RadGridView with the IDataErroInfo interface to perform validation with my View Model.

This is currently working as expected but I would like to change the cell validation style, in particular the tooltip and the how the red border around the cell works.

I would like to continue to use the IDataErrorInfo interface for the validation but just change the error template being used (rather then to start building cell template selectors for example)

Thanks in advance!
Yoan
Telerik team
 answered on 01 Apr 2013
4 answers
98 views
I have a HierarchyChildTemplate which contains a TabControl.  The model driving content for to the HierachyChildTemplate has collections to drive the content in each TabControl.  The issue is when there is a change to a collection driving one of the tabs the tab fires the SelectionChanged event.  One of these tab items holds the the FlowDocumentReader control so the SelectionChanged cannot be bubbled up and caught by the TabControl.  The update to the data is reflected correctly by the way.

I replaced the Microsoft TabControl with the RadTabControl in hopes that your control will have special handling for this, like the additional support you provide with the IsContentPreserved property.  However, I see no default handling for this and find nothing within the RadTabControl I can use to deal with this.

How can I keep the tab fro changing to index 0 every time there is a change?

Thanks

Paul
Paul
Top achievements
Rank 1
 answered on 01 Apr 2013
10 answers
377 views
I do not see a way of zooming using touch without adding code on my part.  I hope that full touch manipulations would be added in a future release.  In the mean time, any examples showing the easiest way in your opinion to add a simple two finger zoom would be nice.

An example of how to bind DocumentSource to a string, would also be nice.  I see a reference to a PdfDocumentSourceConverter in the docs, but I see no examples of how to use it, nor any clues as to what xlmns namespace we have to expose to see it. 

I would also like to understand what if anything we need to do to clean up when we switch DocumentSources. 

The documentation on this control is pretty sparse. 

Thanks
Paul
Kammen
Telerik team
 answered on 01 Apr 2013
1 answer
147 views
Hello!

After Q1 release I found that PDFViewer became slow opening PDF files. I researched and found that the bottleneck is PdfFormatProvider().Import(). Also I found that it is slow espessaly for PDF files that produced by MS Word(I use Office 2013). Here is an example: http://www.fileswap.com/dl/aasX4Wy6QE/. Opening(with option ReadAllAtOnce) takes about 13 sec. Is there way to improve performance for similar files?
UPD: Link to sample pdf is changed
especially
especially
Kammen
Telerik team
 answered on 01 Apr 2013
3 answers
154 views
I submitted a 'suggestion' but I don't see it today. I tried to submit a ticket, but it won't let me because our maintentance program lapsed. Regardless of whether or not I am a currently subscribing customer, I should still be allowed to submit a bug report. I am using version 2012_2_0912.

When using Windows 7 with one of the larger font sizes, the map has two issues. The first is minor, but very noticeable. The image tiles are very fuzzy. It looks like they are being scaled/enlarged.

More importantly, Telerik.Windows.Controls.Map.Location.GetCoordinates is giving bad coordinates. I click on the map and use this function to get the geo coordinates. When I do this, the resulting coordinates are shifted a bit down and quite a bit to the right.
Andrey
Telerik team
 answered on 01 Apr 2013
1 answer
261 views
I am using RadCartesianChart to create a scatter chart showing both positive and negative values. Is there a way to display a line at 0 in each axis as is shown in this documentation for RadChart: http://www.telerik.com/help/wpf/radchart-features-negative-values.html

It appears to be controlled using the PlotAreaAxisVisibility but I can't find a way to gain access to the ChartArea when using a RadCartesianChart.

Any suggestions? 

Thanks,

Andy. 
Petar Kirov
Telerik team
 answered on 01 Apr 2013
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?