Telerik Forums
UI for WPF Forum
1 answer
138 views
Hi,

How can I set the XML Data Source to RadGridView ? My XML is created dynamically so the number of columns may change each time.

Suppose if my XML has below format, how can I show it in Grid using XMLDataSource.

<DataSet>
<Records>
<ColumnA>Orange<ColumnA>
<ColumnB>Apple<ColumnB>
<ColumnC>Grapes<ColumnC>
<Records>
<Records>
<ColumnA>Banana<ColumnA>
<ColumnB>Carrrot<ColumnB>
<ColumnC>Onion<ColumnC>
<Records>
<DataSet>

So this will be a 2 row 3 column grid. I have to show this in XAML only. Any Idea ? Demo is not working in my browser.

Thanks in advance,

Vlad
Telerik team
 answered on 12 May 2010
1 answer
57 views
Demo application crashes when "Paging any collection" under GridView is clicked. See the attached screenshot.
Rossen Hristov
Telerik team
 answered on 12 May 2010
5 answers
253 views
Private Sub rgv_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles rgv.Click

        '
        ' Retrieve data to variable
        '
        dsId = rgv.CurrentRow.Cells("idRoute").Value.ToString
        dsDepart = rgv.CurrentRow.Cells("city1").Value.ToString
        dsArrival = rgv.CurrentRow.Cells("city2").Value.ToString
        'dsStatus = rgv.CurrentRow.Cells("status").Value.ToString

        '
        ' Set TextBox
        '
        tKode.Text = Format(Val(dsId), "00000")
        cbCity1.Text = dsDepart
        cbCity2.Text = dsArrival

    End Sub

Codes above works well on WindowsForms. My question is how to achieve same scenario with WPF?
I just want get some value(s) from grid to textbox based on column name as string.
Thanks.
Byterat Prabhata
Top achievements
Rank 1
 answered on 12 May 2010
1 answer
71 views
I just installed the "RadControls for WPF Q1 2010", and the application is crashing with the attached screen shot.

The problem happens with the following steps with consistency:

1. Enter the "click events" under GridView
2. Double click anywhere in the Grid
Yordanka
Telerik team
 answered on 12 May 2010
0 answers
94 views
Sorry double post. Please delete.
Greg Brondo
Top achievements
Rank 1
 asked on 12 May 2010
5 answers
235 views
I am evaluating your components and have tried the sample from "Tsvyatko's blog > Command Row for RadGridView with CRUD operations". I have used Devart.Data.Linq.Table<T> as ItemSource. The Insert command is enabled but does nothing, the edit is working and the delete command is disabled.
   Should the source for grid to be ObservableCollection or to implement INotifyCollectionChanged this commands to work correctly?
Emil
Top achievements
Rank 1
 answered on 11 May 2010
10 answers
413 views
Hi,
  I am using gridview control for WPF. I have setted the validation condition for a column 'Capacity' for editting. The validation condition is that if you enter the '0' value for the column 'Capacity', one message box should be visible. The message box contains option 'Yes' and 'No'. If user clicks option 'Yes', then replace the entered '0' with '0.001'. So, how to set the editted value of cell from '0' to '0.001' dynamically.? I have tried using  e.NewData = "0.001" in CellEditEnded method, but failed to do. Please help. It is urgent.
Nedyalko Nikolov
Telerik team
 answered on 11 May 2010
1 answer
160 views
I have what I believe should be a simple problem, my legend items are just showing up as item0 - item6. I need them to show up with the name of the object in my items from the database.

I'm using a dataset to link to SQL, my 2 fields in my dataset are "sales" and "productclass".
I'm not sure what I missed, I followed the examples from the legend section exactly I think.

thanks for any help you can provide.
steve

<UserControl x:Class="UserControl2" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="300" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    <Grid> 
        <telerik:RadChart Name="RadChart1"  > 
             
        </telerik:RadChart> 
    </Grid> 
</UserControl> 
 

Imports Telerik.Windows.Controls.Charting 
Imports System.Data 
 
Partial Public Class UserControl2 
 
    Private Shared tacust As New DataSet1TableAdapters.pcSumTableAdapter 
    Private Shared dscust As New DataSet1 
    Private Shared m_sales As DataTable 
    Public Shared ReadOnly Property Sales() As DataTable 
        Get 
            Return m_sales 
        End Get 
    End Property 
 
    Private Sub UserControl1_Initialized(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Initialized 
        RadChart1.DefaultSeriesDefinition = New PieSeriesDefinition() 
        RadChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = True 
        RadChart1.DefaultView.ChartLegend.Header = "Top 10" 
        tacust.Fill(dscust.pcSum) 
        m_sales = dscust.Tables("pcSum"
        RadChart1.ItemsSource = m_sales 
    End Sub 
End Class 

Nikolay
Telerik team
 answered on 11 May 2010
5 answers
149 views
I working on an app where I would like to have a Window with a single TabControl and a single RadDocking control in each one of its TabItems.  This works as long as the docking control is the content of the TabItem control.  As soon as something comes in between the two (such as the Grid control in the sample code), the exception below is thrown.  Do you know if this scenario is possible?  I'm using 2010 Q1.
    
    <TabControl> 
        <TabItem Header="Foo"
            <Grid> 
                <td:RadDocking /> 
            </Grid> 
        </TabItem> 
        <TabItem Header="Bar"
            <Grid> 
                <td:RadDocking /> 
            </Grid> 
        </TabItem> 
    </TabControl> 

System.InvalidOperationException: Specified element is already the logical child of another element. Disconnect it first.
   at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
   at MS.Internal.FrameworkObject.ChangeLogicalParent(DependencyObject newParent)
   at System.Windows.FrameworkElement.AddLogicalChild(Object child)
   at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
   at System.Windows.Window.OnContentChanged(Object oldContent, Object newContent)
   at Telerik.Windows.Controls.Docking.FakePopupWindow.OnContentChanged(Object oldContent, Object newContent) 
........
Miroslav Nedyalkov
Telerik team
 answered on 11 May 2010
1 answer
106 views
I've noticed that when I add drag and drop to a grid the column sizing no loger works.

I have implemented the drag/drop events..

        private void OnDropQuery(object sender, DragDropQueryEventArgs e)
        {

            Type sourceType = e.Options.Source.GetType();
            if (sourceType == typeof(GridViewHeaderCell))
            {
                return;
            }
        .
        .
        .

and
        #region dragQuery
        protected virtual void OnDragQuery(object sender, DragDropQueryEventArgs e)
        {
            if (sourceType == typeof(GridViewHeaderCell))
            {
                e.QueryResult = true;
            }
        .
        .
        .

How should the drag and drop respond to the GridViewHeader?

Tsvyatko
Telerik team
 answered on 11 May 2010
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?