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

My application is in MVVM. I have a RadGridview where 2 columns are Databound and I have to generate third column dynamically with RowNumbers.
Here is my code. I am getting (collection) in the third column. The other 2 columns are fine. Please help me on this. 

XAML:

<telerik:RadGridView  Name="TestGridView"  ItemsSource="{Binding TestListView}" AutoGenerateColumns="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewColumn Header="RowCount">
                                <telerik:GridViewColumn.CellTemplate>
                                    <DataTemplate>
                                        <StackPanel>
                                            <TextBlock Text="{Binding TestRowNumber}"  />
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:GridViewColumn.CellTemplate>
                            </telerik:GridViewColumn>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="NetBIOS Name" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Salary}" Header="Model" />
     </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

ViewModel:

public void Testupdate()
        {
            RadObservableCollection<int> rno = new RadObservableCollection<int>();
            for (int i = 1; i <= TestList.Count; i++)
            {
                rno.Add(i);      
             }  
          TestRowNumber= rno;
         } 

  private RadObservableCollection<int> _testRowNumber;
        public RadObservableCollection<int> TestRowNumber
        {
            get { return _testRowNumber; }
            set
            {
                _testRowNumber = value;
             
                OnPropertyChanged();
            }
        }

Its showing correct count in the rno with items 1 to 6. But when displaying on the grid, its showing (collection). I am not able to trace where I am going wrong. Please correct me.

Thank you.










Boris
Telerik team
 answered on 29 Jan 2015
1 answer
86 views
Hi everybody, I am using RadGridView, and I want to do keyboard arrow key navigation like end to beginning and also beginning to end. I saw there is an "AllowActiveRowCycle" property in Telerik UI for ASP.NET but I can't find such a property in UI for WPF. Is there anything like this or another solution to provide this feature in WPF RadGridView ?
Boris
Telerik team
 answered on 29 Jan 2015
9 answers
696 views
How do I do this? Do I just add all of the telerik references individually? If so, is there a guide to make sure I add the right ones?

Also, with a wpf application I have to create the shared resource library with the themes. how do I do this with a user control library?

Thanks!
Eric
Petya
Telerik team
 answered on 29 Jan 2015
3 answers
566 views
Hi

We are new to telerik and still trying to evaluate RadDataGrid

Can you please provide me with an sample explaining how  can I override Header Row Selector to have a button inside it.

Thanks
M.
Stefan
Telerik team
 answered on 29 Jan 2015
1 answer
136 views
Hi Telerik Team,

I am using the RadRichTextBox in my WPF application. When I tried to enter text the text disappears, it shows the spell check error inside the editor in the place where the text disappeared. Please let me know if there is any fix available for this. We are currently using 2013.3.1127.40. 
Also find the screen shot describing this issue.

Please get back to me on this issue as soon as possible.

Thank you,
Praveena
Svetoslav
Telerik team
 answered on 29 Jan 2015
1 answer
140 views
Hi All

We needed a row number column in our radGridView hence we followed a suggestion wherein we create a custom column type like this --

Public Class RowNumberColumn
    Inherits Telerik.Windows.Controls.GridViewDataColumn

    Public Overrides Function CreateCellElement(ByVal cell As GridViewCell, ByVal dataItem As Object) As FrameworkElement
        MyBase.CreateCellElement(cell, dataItem)

        Dim col = cell.Column
        Dim textBlock1 As TextBlock = cell.Content

        If (textBlock1 Is Nothing) Then
            textBlock1 = New TextBlock()
        End If

        Dim t As IList = DataControl.ItemsSource
        textBlock1.Text = (t.IndexOf(dataItem) + 1).ToString()
 
       Return textBlock1
    End Function
End Class


And then use this new column as --

        <reservingUi:RowNumberColumn Header="#" IsFilterable="True" IsSortable="True"/>



Can you please advise on how to enable column filtering and sorting based on the value in the textBlock ?

Thanks !

​
Maya
Telerik team
 answered on 29 Jan 2015
6 answers
138 views
Hi there

After updating my RadGridView to the latest (for me available) Version 2013.1.403.45. The touch input behaves differently from previous versions (2012.XX)
When I open the RadGridView on touch devices, I always need to "DoubleTab" to select an Item. I have bound the grid to the SelectedItem property.
The first tab seems to focus the row, the second to select it. The same occurs when trying to sort on headers. The first tab does nothing, a double tab will sort.
This is kind of frustrating, because I use the Win8Touch Theme which implies the Control should work great on touch devices.

Is there a setting I'm missing out?

You may suggest to update to a newer version - we are thinking about it - but we first must be sure this is going to work.

Thank you Travis
Nick
Telerik team
 answered on 29 Jan 2015
1 answer
214 views
Hi,

I work in XAML and I have a RadGridView with a GridViewComboBoxColumn in it. If i change the item selected in the ComboBox, it display some informations and hide some others (depends on which item is selected).

This behaviour works, but the problem is, if i change the selected item in ComboBox, i have to click somewhere else or press tab before it raise an event. I tryed with almost all the event possibly raised by a RadGridView and the result's the same. How can i know the exact moment when the user clicks on an item in the ComboBox ?

I can provide the code if needed.

Thanks.
Robin.
                                           
Stefan
Telerik team
 answered on 29 Jan 2015
7 answers
476 views
I am using the latest version of RadCartesianChart.
In my application, the chart has a LinerAxis (AutoRange) as vertical axis and it works very well.

Now I am going to add annotation to the chart programmatically at the beginning. So an event handler was created to handle chart's Loaded event, and then the annotation accesses the ActualRange in the event handler by using the below code: 

var vAxis = (LinearAxis)chart.VerticalAxis;
annotation.VerticalValue = vAxis.ActualRange.Maximum;

But unfortunately in this scenario, it seems the ActualRange doesn't get initialized and returns zero as result.
Could you please show me which chart event needs to be hooked, in order to get the ActualRange? Many thanks.
Petar Marchev
Telerik team
 answered on 29 Jan 2015
9 answers
270 views
Hi,

in a medical context, I use a GridView to display on the first row the current exam data of the patient and on the others rows, the historicals exams data. When the user scroll through the historical, I need to have always the current exam visible on the first row. How it's possible???

Thank's
Alain
Maya
Telerik team
 answered on 29 Jan 2015
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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?