Telerik Forums
UI for WPF Forum
2 answers
118 views
Hi, I want to have a custom column with a user control that floats when activated like the window in an embedded combo box does. I used your examples and was able to embed my custom user control, but when it activates (I hit space) it sizes the column to the height and width of the user control. I would like to have the user control actually float on top like a combo box does when you dropmit down. My user control will have multiple controls. I will actually have several custom user controls placed in multiple custom columns. These will represent compound data the may not always be used I will already be using multiple level hierarchies in the caraway. The goal is to make a green screen replacement keyboard centric data input screen. The idea with the user controls is to let the person doing the data entry drop Into these sub levels when needed. Since these sub types are needed infrequently, rather than fill up a row with columns that aren't used most of the time, I want to be able to fold up the functionality like this. The structure I am mapping is not only complex, but the columns available changes depending on the customer and the type of order being placed. Thanks formthe help
Tom Testa
Top achievements
Rank 1
 answered on 03 May 2011
1 answer
55 views
Hi,
I want to use the CustomFilterRow for the GridView as explained in the WPF Demo application. So far it's working pretty fine but it still lacks some functionality that I need to have: Like in the filtering control that is shown when built-in filtering is enabled I need to show the distinct values in the filterrow. Therefore I want to replace the Textbox by a Combobox and bind it to distinct values of the corresponding column. Alternativly It would be nice to be able to use the built-in like filtering control and show it by the customfilterrow. I am quite sure that all of my requierements can be done, but I haven't found anything applicable while searching for hours!

Thanx for any hints!
Vlad
Telerik team
 answered on 03 May 2011
0 answers
193 views
I am using Telerik gridvew and created dynamically. I want to Show Each column Header under two subheader through programatically in wpf using c#
Satyajit
Top achievements
Rank 1
 asked on 03 May 2011
1 answer
117 views
Hi,

I have implemented loadondemand for my radtreelistview

when the control is loaded,
the filter on one of the colums is only displaying data members that exists in the first level items
this is fine,
but I would expect when I expand some rows,
and open the filter panel again, the data members exist in child rows should also be availible in the filter panel

however, typing the child level data member in the text boxes and apply filter works
is there any way to regenerate the list in the filter panel?

in addition, when I have null values in the column, the apply filter takes forever to complete, the application just hang

I want to explain a bit of what I need to achieve with radtreelistview below,
so I can get some help and to see whether I can achieving the goals better with radtreelistview

What am I trying to do here is the following:

1. a three level radtreelistview, each level is a different type
2. each type will have different attributes or properties specific for them
3. since radtreelistview will have different levels to share the same columns, we decided to combine those attributes and set them to be editable only when applicable
4. some of the columns will be combobox columns, however, I don't want the user to select from a combo box when they are on a row that they shouldn't select one for that attribute
5. so I have set cell templates for those columns, in the cell template I have put in just a combo box, and has its Visibility binded to view model object
6. then the user can only select whenever applicable
7. now when i want to filter them, i can only use the numbers (the data memebers or value memebers) but not text (display memeber), do I need to create an attribute in the view model and fill in the value (text) depends on the view model's data or value memeber? or is there an easier way of doing it?

Cheers
Vlad
Telerik team
 answered on 03 May 2011
1 answer
129 views
Hi,

Currently the horizontal scrolling on the RadGridView cuts through the columns while scrolling horizontally. For example when you scroll, I would like to skip the entire column instead of half of it remaining on the viewing screen itself which doesn't seem presentable.

I  am passing over a screen shot of the issue we are facing. As you can notice that we have a few frozen columns as well.

http://i51.tinypic.com/65bqtt.png

Thanks,
Farhan

<telerik:RadGridView IsFilteringAllowed="False"
                                     x:Name="PricingEcoList"                                                                        
                                     ItemsSource="{Binding Path=TrancheDataCollection}"
                                     AutoGenerateColumns="False"                                                                                                                                          
                                     SelectedItem="{Binding SelectedTranche, Mode=TwoWay}"                                     
                                     FrozenColumnCount="4"                                   
                                     AlternationCount="2"
                                     EnableRowVirtualization="True"
                                     Style="{DynamicResource RadGridViewStyle}"
                                     SelectionMode="Extended"
                                     Background="{DynamicResource DealOverViewBackGrndGrad}"
                                     HeaderRowStyle="{DynamicResource GridViewHeaderRowStyle}"
                                     telerik:StyleManager.Theme="Windows7"
                                     >
Vlad
Telerik team
 answered on 03 May 2011
1 answer
122 views
I have these two classes

public class CustomerModel : _BaseModel
{
    public int CustomerId { get; set; }
    public string CustomerCode { get; set; }
    public string CustomerName { get; set; }
    public List<ProjectModel> Projects { get; set; }
}

and

public class ProjectModel : _BaseModel
{
    public int ProjectId { get; set; }
    public int UserId { get; set; }
    public int CustomerId { get; set; }
    public WarehouseModel PrimaryWarehouse { get; set; }
    public WarehouseModel SecondaryWarehouse { get; set; }
    public ProjectType ProjectType { get; set; }
    public string ProjectName { get; set; }
    public string ProjectNum { get; set; }
    public DateTime Date { get; set; }
    public string Comments { get; set; }
}

and my XAML:

<Window.Resources>
  
    <DataTemplate x:Key="Project">
        <TextBlock Text="{Binding ProjectName}" />
    </DataTemplate>
  
    <HierarchicalDataTemplate x:Key="Customer" 
                                ItemTemplate="{StaticResource Project}"
                                ItemsSource="{Binding Customers}">
        <TextBlock Text="{Binding CustomerName}" />
    </HierarchicalDataTemplate>
  
</Window.Resources>
     

and

<telerik:RadTreeView ItemsSource="{Binding Customers}"
              ItemTemplate="{StaticResource Customer}"/>

When I run it, I see the Customer nodes, but not the Project nodes
Petar Mladenov
Telerik team
 answered on 02 May 2011
4 answers
105 views
Hi,

I would like to localize texts like "Drag a column header and drop it here to group by that column" and others. The standard approach as explained at http://www.telerik.com/help/silverlight/common-localization.html doesn't work for me, because I need instant translation if the culture changes. So I would like to bind these texts to viewmodel properties. How can I do that?

Thanks,
L
Ludwig
Top achievements
Rank 1
 answered on 02 May 2011
3 answers
110 views
hii
i want to know is it posible to maximize & minimize of my tile view to click on anywhere in tileview. now its is minimize & maximize through button i.e displayed on corner side of tileviewitem but i want to click any where of this particular tileviewitem & perform minimize & maximize it.
Petar Mladenov
Telerik team
 answered on 02 May 2011
2 answers
96 views
In the RadControls for WPF demo app, in the lower left corner is a very handy "Browse Controls" multi-level button. I'm really curious how to replicate that functionality. :)
ResourceJeremy
Top achievements
Rank 1
 answered on 02 May 2011
1 answer
155 views
Hi,
I'm having problems using a convertor on a WPF GridView
I'm trying to set the background colour.
The background sets correctly when I highlight any particular row in the GridView, however all other columns get set to this colour in the entire grid.

e.g. If I Click a row where the person has account balance 0 to 5 (e.g. red) every row goes red in this column
If I click a row where the person has account balance that converts to green every row goes green in this column and so on.

Below is the convertor, class person and XAML from my project.



CONVERTER:
Public Class AccountBalanceToColourConvertor
    Implements IValueConverter


    Public Function Convert(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.Convert
        Dim x As Double
        x = value
        Select Case x
            Case 0 To 5
                Return "Red"
            Case 5.01 To 50
                Return "Orange"
            Case Is > 50
                Return "Green"
        End Select
    End Function


    Public Function ConvertBack(value As Object, targetType As System.Type, parameter As Object, culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.ConvertBack
        ' Only is a one way conversion
    End Function
End Class

CLASS PERSON
Public Class Person
    Public Property Forename As String
    Public Property AccountBalance As Double
    Public Enum Gender
        Male = 1
        Female = 2
        Unknown = 3
    End Enum
End Class



XAML

    <Window.Resources>
        <my1:AccountBalanceToColourConvertor x:Key="AccountBalanceToColourConvertor" />
        <CollectionViewSource x:Key="PersonViewSource" d:DesignSource="{d:DesignInstance my1:Person, CreateList=True}" />
    </Window.Resources>
    <Grid DataContext="{StaticResource PersonViewSource}">
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="ComboBox1" 
               
                  VerticalAlignment="Top" Width="120" />
        <Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="147,12,0,0" Name="Button1" VerticalAlignment="Top" Width="75" />
        <telerik:RadGridView Height="136" HorizontalAlignment="Left" ItemsSource="{Binding}" Margin="12,62,0,0" Name="PersonRadGridView" VerticalAlignment="Top" Width="352" >
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn  DataMemberBinding="{Binding AccountBalance}"  Header="Account Balance" Width="Auto" DataFormatString="N2"
                                             Background="{Binding Path=AccountBalance, Converter={StaticResource AccountBalanceToColourConvertor}}">


            </telerik:GridViewDataColumn>
          </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>



Ivan Ivanov
Telerik team
 answered on 02 May 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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?