Telerik Forums
UI for WPF Forum
1 answer
58 views
Hi,telerik.
I  need your help.

After I upgraded my project to 2010Q1,the icons on the Menu control cannot be shown!

Is there any changed?

My code:
        <telerik:RadMenu Height="25" VerticalAlignment="Top" Name="toolMenu">
            <telerik:RadMenuItem Width="25" ToolTip="new file" Height="25"  Name="btnNew" Margin="5,0,0,0" Click="btnNew_Click">
                <telerik:RadMenuItem.Icon>
                    <Image Source="/Images/newSmall.png" Width="20" Height="20"/>
                </telerik:RadMenuItem.Icon>
            </telerik:RadMenuItem>
      </telerik:RadMenu>

Thank you!
Boyan
Telerik team
 answered on 26 Apr 2010
1 answer
94 views
Hello guys,

I was wondering what is the easiest way to apply a theme (in my case Office_Black) to a RadTileView-or i should use MS Blend to edit a copy of the template because the trick with the StyleManager is not working in my case....



Thanks in advance!
Ваня
Top achievements
Rank 1
 answered on 26 Apr 2010
4 answers
181 views

After assigning GridView ItemsSource to an ObjectSet<Company>  as below:

 

radGridView.ItemsSource = context.Companies

(context is the ObjectContext from Entity Framework 4.0), the only way to automatically get the GridView updated with inserted/deleted items is by calling context.SaveChanges(); this approach is not well suitable, at least, for my needs since I’ve to commit any single change instead of gathering all changes, grouping and filtering on row state (see EntityState property and Added, Modified and Unmodified values), and finally committing.

Where my approach is correct, due to the relevance of Entity Framework in .NET 4.0 platform, are you planning a tighter integration? If yes, what and when?  

Thanks

Ivano
Top achievements
Rank 1
 answered on 26 Apr 2010
2 answers
453 views
Hi Telerik Team,

How to reset or refresh the Grid view to its original or default sizing mode ?

I set the column with mode to auto and I'm having custom filters to bind the data. If I altered the column sizes and perform another binding the column sizes are not reset.

I tried even binding null data source before binding the actual data. Is there a way to reset the sizing to auto on each binding.

thanks & regards
yenkay


yenkay
Top achievements
Rank 2
 answered on 26 Apr 2010
2 answers
126 views

Hello,

I have a chart with 8 data series, like the live data example in the WPF Demos.

I want to hide one ore more of these series, I tried to set the SeriesVisibility of the corresponding SeriesMapping, but it doesn't seem to work. How can I achieve this without removing the SeriesMapping?

Mathias Parge
Top achievements
Rank 1
 answered on 26 Apr 2010
2 answers
284 views
Hi

I have a Column which generates its Cell Template and its Cell Edit Template using template selectors in code. I need this because the information in that particular column changes according the values selected in the other columns. One of the template generated from my Edit Template Selector class is a RadGridView. 

I have a big PROBLEM. When I click that particular column so its enter in edit mode and get the RadGridView template from the template selector class it shows the RadGridView inside the cell perfectly but as soon as I click in any of the internal RadGridView rows to select them, it lost focus and the cell enter in its regular mode.

Any ideas who to overcome this, so I can interact with the internal generated RadGridView.

Some of the code;
Definition of the Column with its template selectors
<telerik:GridViewDataColumn Header="Criteria" CellEditTemplateSelector="{StaticResource CellEditTemplateSelector}"  CellTemplateSelector="{StaticResource CellTemplateSelector}"/> 

The piece of code that returns the RadGridView in the CellEditTemplateSelector Class:

return (container as GridViewCell).FindResource("RangeGridSelector"as DataTemplate; 

The DataTemplate Resource with the RadGridView definition
                            <DataTemplate x:Key="RangeGridSelector"
                                    <telerik:RadGridView AutoGenerateColumns="False" 
                                                ShowGroupPanel="False" 
                                                CanUserReorderColumns="False" 
                                                 ItemsSource="{Binding Path=Criterias}"
                                        <telerik:RadGridView.Columns> 
                                            <telerik:GridViewSelectColumn /> 
                                            <telerik:GridViewDataColumn Header="Criteria"  DataMemberBinding="{Binding}"/> 
                                        </telerik:RadGridView.Columns> 
                                    </telerik:RadGridView> 
                            </DataTemplate> 

PD: Forgot to mention that I am using the latest internal build of WPF RadControls 2010.1.0416
Ariel Gonzalez
Top achievements
Rank 1
 answered on 26 Apr 2010
2 answers
275 views
I have the following DataTemplate:
<DataTemplate x:Name="DatePickerCellTemplate" x:Key="DatePickerCellTemplate"
            <telerik:RadDatePicker SelectedDate="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}},Path=Value, Mode=TwoWay}" /> 
        </DataTemplate> 
that I set to a CellTemplate of a GridViewDataColumn dynamically. I  also have the DataMemberBinding of the column set to a property ( MyDate) of some object. The MyDate property binding (TwoWay) is done at runtime in the code behind. 

I am able to get the value of MyDate appear in the RadDatePicker. But it is not working the other way round, i.e. the changes are propogated back to the MyDate property.

Am i missing something ?

Tsvyatko
Telerik team
 answered on 26 Apr 2010
1 answer
205 views
Hi,

I need to show the aggregated functions results from the footer outside of the RadGridView (binded to a TextBlock, let's say).
So, if I have:

<

 

 

telerikControls:RadGridView Name="MyGrid" CanUserFreezeColumns="False" ....

 

 

with a column like this:

<

 

 

telerikControls:GridViewDataColumn Header="MyColumn" IsFilterable="False"

 

 

        DataMemberBinding="{Binding MyProperty}">

 

    <telerikControls:GridViewDataColumn.AggregateFunctions>

 

        <telerikData:CountFunction Caption="Count: " />

 

    </telerikControls:GridViewDataColumn.AggregateFunctions>

 

</telerikControls:GridViewDataColumn> ...

 

 

and somewhere in the UI, a textblock like this:

<

 

 

TextBlock Name="MyTextBlock" Text="{Binding ElementName=MyGrid, Path=???CountResultFromFooter???}" />

 

 

How can I bind to MyTextBlock the result of the count aggregate function from MyColumn column?

Thanks!

 
Vlad
Telerik team
 answered on 26 Apr 2010
5 answers
529 views

I am using Telerik RadGridView in my project. I want to show image in column.

                GridViewImageColumn col1 = new GridViewImageColumn();
                col1.Width = 100;
                col1.DataMemberBinding = new Binding("id");
                col1.Header = "PhotoByConverter";
                col1.DataMemberBinding.Converter = new ThumbnailConverter();
                grid.Columns.Add(col1);
                GridViewDataColumn col2 = new GridViewDataColumn();
                col2.Width = 100;
                col2.DataMemberBinding = new Binding("firstName");
                col2.Header = "Person name";
               
                grid.Columns.Add(col2);
                Grid.ItemsSource=DataTable; 
First column not wokrs but second works fine. I use Converter for image shown below

    public class ThumbnailConverter : IValueConverter
    {
    public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
                    IEnumerable<thumbNail> result = from n in thumbnails
                                        where n.personID == value.ToString()
                                        select n;
        if (result != null && result.First().thumbnail != null)
        {
            return result.First().thumbnail.file;
        }
        else
        {
            return null;
        }
    }
    public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
    {
        throw new Exception("The method or operation is not implemented.");
    }
   } 

I found by id thumbnail of person and set it like data for GridViewImageColumn. I checked with Debuger conveter works properly. I can't undesrtand why it doesn't work. Any ideas?

I use 2009 Q3 version.

My converter returns byte[] type

Imran Aliyev
Top achievements
Rank 1
 answered on 26 Apr 2010
1 answer
117 views
Hi,

I have recently been working with the RadMaskedTextBox control and noticed it has a cool IsSpinEnabled property to enable the mouse wheel to scroll up/down the date value.

I immediatly went to enable it in the DatePicker controls I am using, but it doesn't exist. Is it named something different in the DatePicker's?
There doesn't appear to be any DatePicker documentation either for WPF or Silverlight (at least in the online version), so I couldn't check myself.


Thanks,

A Marshall
Kaloyan
Telerik team
 answered on 26 Apr 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?