Telerik Forums
UI for WPF Forum
0 answers
157 views
I have Telerik RadTreeListView

<

telerik:RadTreeListView x:Name="treeListView" AutoGenerateColumns="False">

 

<telerik:RadTreeListView.ChildTableDefinitions>

 

<telerik:TreeListViewTableDefinition ItemsSource="{Binding SubFolders}" />

 

</telerik:RadTreeListView.ChildTableDefinitions>

 

<telerik:RadTreeListView.Columns>
<telerik:GridViewDataColumn Header="Folder/File Name" Width="408" IsReadOnly="True" IsSortable="True" IsFilterable="False" HeaderTextAlignment = "Center" TextAlignment="Left">

 

<telerik:GridViewDataColumn.CellTemplate>

 

<DataTemplate>

 

<StackPanel Orientation="Horizontal">

 

<Image Source="{Binding FileorFolderPath}"/>

 

<TextBlock Text="{Binding FolderName}" Margin="5" MouseUp="editcell_MouseLeftButtonUp"/>

 

</StackPanel>

 

</DataTemplate>

 

</telerik:GridViewDataColumn.CellTemplate>

 

</telerik:GridViewDataColumn><telerik:GridViewDataColumn DataMemberBinding="{Binding Date, StringFormat=\{0:dd-MMM-yyyy\}}" Header="Date" IsReadOnly="True" Width="140" HeaderTextAlignment = "Center" IsSortable="True" IsFilterable="False" TextAlignment="Center" />

 

<

telerik:GridViewDataColumn DataMemberBinding="{Binding Count}" Header="Version" IsReadOnly="True" Width="70" HeaderTextAlignment = "Center" IsSortable="False" IsFilterable="False" TextAlignment="Center" />
</telerik:RadTreeListView.Columns>
</telerik:RadTreeListView>
For alternate Rows i like to Apply different Baground Color How Can i Do ?
Help me out as soon as possible....

 

Ravi
Top achievements
Rank 1
 asked on 05 Oct 2011
1 answer
223 views
I am using hierachial example , but I populate the data in viewmodel only after the treeview has been load.

sequnce of events _treeview loaded , then getdata from database and assisgn the value to the property.

if I want to GetItemByPath what event should I listen to before I start using the method.  

Petar Mladenov
Telerik team
 answered on 05 Oct 2011
0 answers
145 views

Hi..

I am using Telerik Rad Wpf grid.

I want to disable some records by binding with linq entities.

Suppose I have an entity named Title which has an active field. I have below converter which is mentioned in Resources.

 

<

 

 

my:UserControl.Resources>

 

 

 

 

 

 

 

 

<my1:BooleanConverter x:Key="RowEnableConverter"/>

 

 

 

 

 

 

 

 

</my:UserControl.Resources>

 

 

 

 

And in Grid control , there is a datacolumn.

 

<

 

 

telerik:GridViewDataColumn Header="Document Name" DataMemberBinding="{Binding DOCUMENTDSC, UpdateSourceTrigger=PropertyChanged}" Width="1.5*" IsFilterable="False" IsEnabled="{Binding ACTIVE,Converter={StaticResource RowEnableConverter}, UpdateSourceTrigger=PropertyChanged}" />

 

 

 

 

Now please see the below example:

1           Ahmed        25

2           Ali               35

3          Maifs           25

Now  i  want to disable/readonly 2nd record which is

2           Ali               35.

How would i ?
Suggest please.

mehmood ahmed
Top achievements
Rank 1
 asked on 05 Oct 2011
0 answers
98 views
Hi Support

Move First Command when the focus is in last column donot work, is it bug? Can I fix it?

Thanks in advance
Mehri
Mehri
Top achievements
Rank 1
 asked on 05 Oct 2011
2 answers
370 views
Hi,

I have a radgridview that is bound to an observablecollection containing 16 properties, one for each column of the radgridview.  I have an WCF service that I poll every second, updating the observablecollection and thus, updating the radgridview.  I'm doing this with a dispatchertimer that fires a backgroundworker.  This works quite smoothly, although larger result sets (more than 50 rows) cause the GUI to freeze and/or the radgridview to "blink" momentarily.  Those, I'm assuming are limitations of WPF's threading abilities.  Anyhow, the largest problem I have is that on radgridview's that scroll vertically, when a user scrolls down, the grid scrolls all the way back to the top whenever the collection changes.  

I'm using Row and Column virtualization, if that makes any difference.  

Is there a way to make the grid not scroll to the top when the collection changes??
Kurt
Top achievements
Rank 1
 answered on 05 Oct 2011
3 answers
96 views
Hi

I want expand some row at run time in gridview and treeview. Please help me.

Thanks 
Vijay Kumar
Vera
Telerik team
 answered on 05 Oct 2011
0 answers
77 views
Hi,

I have a self referencing grid view in a output.xaml and having an event in the ViewModel.

Calling this event while adding new items in the other screen (to add the Grid view Headers).

Add couple of Headers and click the Output tab to view the values in the Grid View. Now its showing the grid with parent child relationship and the headers.

Now if I go and add a new header then the event will be called in the ViewModel of the output and binding the grid to show the new headers and the relevant values for the column. Here I am facing problem that while re-binding it takes time and binding the grid without the self referencing hierarchy. it just binds all the rows in the datatable property as the parent node.

Anybody knows where i have made the mistake.

Thanks,
Ramasamy

Ramasamy
Top achievements
Rank 1
 asked on 05 Oct 2011
1 answer
327 views
In my application, I have a column in my RadGridView that is bound to a property of type 'System.Type'. When attempting to sort by this column, I get a System.ArgumentException{"At least one object must implement IComparable."}. I am not interested in wrapping the System.Type class at all to implement the IComparable(T) interface and would like to be able to provide a function delegate to the ColumnSortDescriptor to sort the types by name instead of using the default comparer as I could with a normal list.

Function CompareTypeByName(ByVal x As System.Type, ByVal y As System.Type) As Integer
  If x Is Nothing Then
    If y Is Nothing Then
      Return 0
    Else
      Return -1
    End If
  Else
    If y Is Nothing Then
      Return 1
    Else
      Return x.Name.CompareTo(y.Name)
    End If
  End If
End Function

Dim typeList As New List(Of System.Type) 
typeList.Add(GetType(String)) 
typeList.Add(GetType(Int32)) 
typeList.Sort(AddressOf CompareTypeByName)

Is there a way to do this (or something like it) currently?

Thanks,
Jason
Jason
Top achievements
Rank 1
 answered on 04 Oct 2011
0 answers
107 views
I wish to make a List of my custom objects available for the user to modify with RadGridView.
What should I do?Any example?Thx in advance.
Isilme
Top achievements
Rank 2
 asked on 04 Oct 2011
1 answer
247 views
I have a toolbar filled with buttons:

<telerik:RadToolBar >
            <telerik:RadDropDownButton >
                <StackPanel Orientation="Horizontal">
                    <Image Source="/Fdj.Eurp.GuiMain;component/Graphics/User.png" ></Image>
                    <TextBlock Text="aaa" ></TextBlock>
                </StackPanel>
                <telerik:RadDropDownButton.DropDownContent>
                    <StackPanel Orientation="Vertical" Name="spUserAccountPanel">
                        <telerik:RadButton Content="bbb"></telerik:RadButton>
                        <telerik:RadButton Content="ccc"></telerik:RadButton>
...
However after clicking one of the buttons, the whole menu does not close itself. How can I enforce it?
Petar Mladenov
Telerik team
 answered on 04 Oct 2011
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?