Telerik Forums
UI for WPF Forum
3 answers
146 views
Hi ,

I have been using Infragistics winform grid in my past projects, it had a wonderfull functionality of giving the user to choose in real time between the available aggregate functions in Grid's footer (just like the filtering option).
So basically, there was another icon next to the filtering icon, clicking on it provided pop up window with count, sum etc.. functions, choosing aggregate function showed the result in the footer of the Grid.

I need excatlly the same functionalitty in my application - How can this be implemented?
Could you please provide with example.

Thank you ahead,
Mark
Pavel Pavlov
Telerik team
 answered on 07 Jul 2010
3 answers
199 views
Hello,

How we can save grid filter value into database or any file? & load same setting when loading grid once again?

with search i found RadGridViewSettings.vb but error fired "Type 'DataContractSerializer' is not defined." even if i imported

 

System.Xml.Serialization. I am using VS2010, framework 4 with WPF Telerik controls.

Can i have some example for the same?

Snehal
Top achievements
Rank 1
 answered on 07 Jul 2010
3 answers
141 views
I need a checkbox column that has a checkbox control in the header that will mimic what the GridViewSelectColum does.  I cannot use the GridViewSelectColumn because I'm not looking to select all rows - I just want to check all rows - like mark all as read functionality.  To achieve this I simply put a CheckBox control in the header of my bool column and set the binding to a property in my VM called CheckAll.

<CheckBox IsChecked="{Binding CheckAll, diagnostics:PresentationTraceSources.TraceLevel=High}"></CheckBox>

The setter on my property is not being called and when I added the diagnostics the binding does not show up.  However, when I move the checkbox outside of the grid it works fine - so I'm thinking the reference is lost?

Thanks,

Greg


Pavel Pavlov
Telerik team
 answered on 07 Jul 2010
1 answer
137 views

Hi

Is someone known where is the sing of the plus (+) in the Row Details?

Best Regards

Ehud

Vlad
Telerik team
 answered on 07 Jul 2010
1 answer
134 views
We use the 2009 Q3 Rad control.  Also we use MVVM.  the SelectedItem is bound to prop in ViewModel.  When clicking on a GridViewdataColumn, the setter for SelectedItem is called and the row is highlighted, but for any CellTemplate is clicked,  the setter for SelectedItem is NOT called and the row is NOT highlighted.   Is any property I can set to make the row is selected when Clicking the cell?

Thanks!

Amy
Vlad
Telerik team
 answered on 07 Jul 2010
4 answers
92 views
Hello,
I am running into a problem with the RadTileView, and the RadFluidContentControl.  I am binding the ItemsSource to a list in my ViewModel, and in turn, I am using the ContentTemplate to render the items, I added a RadFluidContentControl, and use the SmallContentTemplate, MediumContentTemplate, and LargeContentTemplate but it never changes the content in the template,  The same xaml using hard coded content seems to work fine.  Is this a bug in the RadFluidContentControl,or am I using it wrong? 
Below is the Xaml that I am working with.  Rooms is a list of classes with a "DisplayName" property.

Thanks in advance for any help.
        <telerik:RadTileView Margin="8" MinimizedColumnWidth="220" ItemsSource="{Binding Rooms}" > 
            <telerik:RadTileView.ItemTemplate> 
                <DataTemplate> 
                    <TextBlock Text="{Binding DisplayName}">  
                    </TextBlock> 
                </DataTemplate> 
            </telerik:RadTileView.ItemTemplate> 
            <telerik:RadTileView.ContentTemplate> 
                <DataTemplate> 
                    <telerik:RadFluidContentControl BorderBrush="black" BorderThickness="2" SmallToNormalThreshold="190, 140" 
                                    NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" 
                                    LargeToNormalThreshold="320, 320" ContentChangeMode="Automatic">  
                        <telerik:RadFluidContentControl.SmallContentTemplate> 
                            <DataTemplate> 
                                <Grid> 
                                    <TextBlock Text="{Binding DisplayName}"></TextBlock> 
                                    <TextBlock Text="small"></TextBlock> 
                                </Grid> 
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.SmallContentTemplate> 
                        <telerik:RadFluidContentControl.ContentTemplate> 
                            <DataTemplate> 
                                <Grid> 
                                    <TextBlock Text="{Binding DisplayName}"></TextBlock> 
                                    <TextBlock Text="Medium"></TextBlock> 
                                </Grid> 
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.ContentTemplate> 
                        <telerik:RadFluidContentControl.LargeContentTemplate> 
                            <DataTemplate> 
                                <local:RoomControl Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top"  DataContext="{Binding}"/>  
                            </DataTemplate> 
                        </telerik:RadFluidContentControl.LargeContentTemplate> 
                    </telerik:RadFluidContentControl> 
                </DataTemplate> 
            </telerik:RadTileView.ContentTemplate> 
        </telerik:RadTileView> 
 
Lance
Top achievements
Rank 1
 answered on 06 Jul 2010
1 answer
208 views
I have set the ItemsSource of my combobox column to a list of custom objects.  This works fine and I am able to update my object with the selected item from the combobox.  The problem is that my users will need to be able to set this column to null, so I add a null to the list of objects.  I can see the null in the list fine, but whenever I select it, the property of the DataMember SalesRep does NOT get set at all.  I have to select a different item in the list.  I've put a break point on the Property set and it isn't firing at all on null.  Is this a bug, or is there a "better" way?

    <DataTemplate DataType="{x:Type lib:Security.UserInfo}">
        <TextBlock>
                <TextBlock.Text>
                    <MultiBinding StringFormat="{}{0}, {1}">
                        <Binding Path="LastName" />
                        <Binding Path="FirstName" />
                    </MultiBinding>
                </TextBlock.Text>
        </TextBlock>
    </DataTemplate>  
...
<telerik1:GridViewComboBoxColumn Name="SalesRepColumn" Header="Sales Rep" DataMemberBinding="{Binding SalesRep, ValidatesOnDataErrors=True,ValidatesOnExceptions=True,UpdateSourceTrigger=PropertyChanged}"/>
...
CollectionViewSource userInfoSource = this.FindResource("userInfoSource"as CollectionViewSource;
var ul = UserInfoList.GetUserInfoList().OrderBy(u => u.LastName).ToList();                        
ul.Insert(0, null);
userInfoSource.Source = ul;
SalesRepColumn.ItemsSource = userInfoSource.View;

...

public UserInfo SalesRep {
get { return GetProperty(SalesRepProperty); }
set { _salesRep = value; }
}


Pavel Pavlov
Telerik team
 answered on 06 Jul 2010
1 answer
118 views
Hi All,

I have a Radgrid element with auto generate columns set to true,
I want to change background color of cells according to the values that are bounded.

How this can be done programatically?
 
I don't specify the coulmns in xaml..? and I can't hook to some appropriate event..
and moreover I can't loop over the rows and the cells.

Please advise,
Mark
Vlad
Telerik team
 answered on 06 Jul 2010
1 answer
85 views
Is it possible to Handle the event for certain items in my Outlook bar, for some of the items I wish to expand the Content and show it in the Pane.

For two of my items, I just want to get the event of it being clicked and selected, but without it expanding in the bar.

I'd like this with Databinding Style if possible.


Cheers, David Poole.
Viktor Tsvetkov
Telerik team
 answered on 06 Jul 2010
1 answer
152 views
Hi,

I'm trying to create a custom control library using telerik controls as base clases, and creating a default styleguide based on the default telerik styles for each control.

Basically, what I have (as if I was extending from standard WPF controls) is a ResourceDictionary (Generic.xaml) with a Targeted Style for each Custom Control, using the 'BasedOn' property. Something like this:

<Style BasedOn="{StaticResource {x:Type ComboBox}}"  
       TargetType="{x:Type local:MyComboBox}">  
        <Setter Property="Background" Value="Red" />  
        <Setter Property="Foreground" Value="DarkGray" />  
</Style> 



Regrettably, it seems this doesn't work out of the box with telerik, I mean, using RadComboBox as StaticResource. I've also tried using the ThemeResourceKey with no luck:

<Style TargetType="{x:Type local:MyComboBox}"  
               BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlackTheme, ElementType=Controls:RadComboBox}}">  
    <Setter Property="Background" Value="Red" />  
    <Setter Property="Foreground" Value="DarkGray" />  
</Style> 


The MyComboBox file looks like this:
public class MyComboBox : RadComboBox  
{  
        static MyComboBox ()  
        {  
            DefaultStyleKeyProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata(typeof(MyComboBox)));  
        }  
}  


I also tried overriding the TargetType of the inherited control, again, no luck:

[LocalizabilityAttribute(LocalizationCategory.NeverLocalize)]  
[Ambient]  
public Type TargetType  
{  
    get { return typeof (RadComboBox);}   
}  

Any suggestions?

Thanks,

--
R.

Pana
Telerik team
 answered on 06 Jul 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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?