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

I have a RadDaraFilter that has been bounded to a RadDataGrid.
The columns of table are (Name, LName, Tel) in SQL, So, the radDatafilter has been shown ("Name, LName, Tel").

How I could change the field of radDataFilter from "Name" to "Person's Name" or from "LName" to "Last Name", Please?
Thanks

Dimitrina
Telerik team
 answered on 10 Jul 2013
3 answers
124 views
Hi There,

I have the following two requirements:

1. Wanted to add help as a menu item to RadContextMenu item this will be a default menu item, i wanted to do it using a style/controltemplate.

2. wanted to enable Radcontextmenu by default so help will display on all controls when ever user right clicks on any control.

can you please tell me how i can do this?

Thanks in advance.

Regards,
Srinivas.
Rosen Vladimirov
Telerik team
 answered on 10 Jul 2013
2 answers
104 views
Hi.
I have 7 items in my carouselPanel. It begins to 'carouse' in the middle, so the first item is items[4].
How can i change that, it will always scroll from right to left, with first item, and do something like:
[] -> [] -> [] -> [] -> [] - last item, rewind and again

Regards
Paweł
Top achievements
Rank 1
 answered on 10 Jul 2013
1 answer
905 views
hi, I've new to telerik for WPF. Now i am going to develop a multi-touch campus map for guiding.
My code for the image as follows, but error is"Could not find a part of the path 'D:\campus_floorplan;component\images\directory_level1.png'."
Code:
private void get(int i)
        {
            
           
                ImageBrush b = new ImageBrush();

                switch (i)
                {
                   

                    case 1:
                        {
                            b.ImageSource = new BitmapImage(new Uri("/campus_floorplan;component/images/directory_level1.png", UriKind.Relative));
                            b.Stretch = Stretch.Uniform;
                            this.Background = b;
                        };
                        break;
                    case 2:
                        {
                            b.ImageSource = new BitmapImage(new Uri("/campus_floorplan;component/images/directory_level2.png", UriKind.Relative));
                            b.Stretch = Stretch.Fill;
                            this.Background = b;
                        };
                        break;
                    case 3:
                        {
                            b.ImageSource = new BitmapImage(new Uri("/campus_floorplan;component/images/directory_level3.png", UriKind.Relative));
                            b.Stretch = Stretch.Fill;
                            this.Background = b;
                        };
                        break;
                    case 4:
                        {
                            b.ImageSource = new BitmapImage(new Uri("/campus_floorplan;component/images/directory_level4.png", UriKind.Relative));
                            b.Stretch = Stretch.Fill;
                            this.Background = b;

                        };
                        break;
}
            }
 private void level1_touchdown(object sender, TouchEventArgs e)
        {
            radMap.Visibility = Visibility.Collapsed;
            this.get(1);

        }
  So how to get the correct path for image??
Hope you can help me.
Thank you very much.
 
        
Anna
Telerik team
 answered on 10 Jul 2013
1 answer
169 views
In GofFocus and LostFocus of NumericUpDown, I've changed the Value of NumericUpDown.
The value changes but no changes is displayed in UI.
If I do some actions that refreshes the UI, (like minimize and restore my window, or show a MessageBox in mentioned events or...) the UI updated.
What should I do?
Kalin
Telerik team
 answered on 10 Jul 2013
3 answers
228 views
Hello Telerik team

I have managed to style my rad grid view in WPF accordingly , however when grouping by a column the expanded row has an empty space on the far left which doesn't seem to be a part of any style (see attached file for mentioned left space and the resulting ugly contrast of colors). Can you  please let me know where is this space defined (template ?) and how can I style it ?

Thanks in advance

Kind Regards


Windows 7
WPF dev in .NET 4
Telerik Version 2012.1.402
Dimitrina
Telerik team
 answered on 10 Jul 2013
4 answers
213 views
Hi telerik,

I am confused how to use RadGridView with VirtualQueryableCollectionView in order for data virtualization, but some issues encountered when I insert a new item, let me clarify.

I use the below code to set datacontext of a window, 
var query = _context.Taxes.OrderBy(o => o.TaxID); //Order_Details.OrderBy(o => o.OrderID);
           var view = new VirtualQueryableCollectionView(query) {LoadSize = 10 };
           DataContext = view;

but there are some specified points, the Tax table only have 7 records, those records can show in grid correctly,but if I use blow code for inserting a new item,
           
private void Button_Click(object sender, RoutedEventArgs e)
    {
        (DataContext as VirtualQueryableCollectionView).AddNew(new Tax() { TaxCode = "45",TaxPercentage2 = 0.34f });
    }

this new item will not display in grid expect adding this statement
         
(DataContext as   VirtualQueryableCollectionView).VirtualItemCount++;

But executing this statement will refresh the collection and grid,  I don't want to do this. so my questions are
1. How can I show all records if called insert statement?
2. How to save a new records to database? 
I did this using below statements currently:
         
(DataContext as  VirtualQueryableCollectionView).Insert(0, newItem);
           context.CreateObjectSet<TValue>().AddObject(newItem);
           context.SaveChanges();

if I can add use VirtualQueryableCollectionView's AddNew/AddNewItem/Insert add a item to VirtualQueryableCollectionView and then call someone method to save it to database directly without needing executing context.CreateObjectSet<TValue>().AddObject(newItem);
? if yes, could you provide a sample project for me? thanks very much.
Dimitrina
Telerik team
 answered on 10 Jul 2013
1 answer
82 views
Hi,

I have a scatterchart with lots of datapoints.
Values from -100 % to 3 000 000 %.

When I apply zoom to one or more points, the zoom are gets totally wrong.
For example the zoom area could be set to -200 % -400 %; even though I zoom on a point that had a positive number.

This issue applies to both axes, every time I zoom.

Any ideas?
Petar Marchev
Telerik team
 answered on 10 Jul 2013
1 answer
195 views
Hi,

I have 8 RadGridViews in my wpf application. I have used some properties of the RadGridView in the below code snippet. Each RadGridView is added inside an Expander.

When I select an item in a tree view, I change the Datacontext of the Expander. But the rendering of the control  takes too much of tne time. How do i improve the rendering performance of my RadGridViews?  Am i missing anything? Can anyone help.

<Telerik:RadGridView CanUserFreezeColumns="False"

                                                                     RowIndicatorVisibility="Collapsed"

                                                                     RowDetailsVisibilityMode="{Binding ElementName=root,Path=CanEdit.IsEnabled,IsAsync=True,Converter={StaticResource rowdetailsvisibilityconverter}}"

                                                                     RowDetailsTemplate="{StaticResource propertyEditTemplate}"

                                                                     ItemsSource="{Binding Properties}"

                                                                     AutoGenerateColumns="False"

                                                                     SelectionUnit="FullRow"

                                                                     SelectionMode="Single"

                                                                     DataContext="{Binding DataContext, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Expander}}}"

                                                                     Grid.Column="0"

                                                                     Name="propertyListView"

                                                                     VirtualizingPanel.IsVirtualizing="True"

                                                                     VirtualizingPanel.IsContainerVirtualizable="True">

                                                    <Telerik:RadGridView.ContextMenu>

                                                        <ContextMenu>

                                                            <MenuItem Header="Edit"  Command="ApplicationCommands.Replace">

                                                                <MenuItem.Icon>

                                                                    <Image Source="..\Images\Edit.png" Height="15" Width="20" Margin="0,0,2,0" />

                                                                </MenuItem.Icon>

                                                            </MenuItem>

                                                        </ContextMenu>

                                                    </Telerik:RadGridView.ContextMenu>

                                                    <Telerik:RadGridView.CommandBindings>

                                                        <CommandBinding Command="Replace" CanExecute="CommandBinding_NewTripAlarms" Executed="CommandBinding_EditProperties" />

                                                    </Telerik:RadGridView.CommandBindings>

                                                    <Telerik:RadGridView.InputBindings>

                                                        <KeyBinding Command="Replace" Key="Enter" />

                                                    </Telerik:RadGridView.InputBindings>

                                                    <Telerik:RadGridView.Columns>

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" IsFilterable="False" Header="{DynamicResource Name}" DataMemberBinding="{Binding Path=ModelProperty.PropertyName}" />

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" Header="{DynamicResource DataType}" DataMemberBinding="{Binding Path=ModelProperty.DataType.Name}" />

                                                        <Telerik:GridViewDataColumn IsReadOnly="True" IsGroupable="False" IsSortable="False" IsFilterable="False" Header="{DynamicResource Value}" DataMemberBinding="{Binding Path=Value}" />

                                                    </Telerik:RadGridView.Columns>

                                                </Telerik:RadGridView>

regards,
Maya
Telerik team
 answered on 10 Jul 2013
1 answer
72 views
I couldn't to change TimeRulerMonthViewItem.


Code snippets   below :

 <Window.Resources>
            <Style x:Key="TimeRulerMonthViewItemStyle" TargetType="telerik:TimeRulerMonthViewItem">
            <Setter Property="telerik:StyleManager.Theme" Value="Windows8"/>
            <Setter Property="ContentTemplate">
                <Setter.Value>
                    <DataTemplate>
                        <TextBlock Text="WhyCantChanged"/>
                    </DataTemplate>
                </Setter.Value>
            </Setter>
     </Style>
        <telerik:OrientedTimeRulerItemStyleSelector x:Key="Origin" 
                                                 MonthViewTickStyle="{StaticResource TimeRulerMonthViewItemStyle}"/>
    </Window.Resources>
<Grid>
        <telerik:RadScheduleView x:Name="ScheduleView"
                                  telerik:StyleManager.Theme="Windows8" TimeRulerItemStyleSelector="{StaticResource Origin}">
            <telerik:RadScheduleView.Resources>
                <Style TargetType="telerik:RadButton">
                    <Setter Property="ContentTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <TextBlock Text="I am Mark."/>
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </telerik:RadScheduleView.Resources>
            <telerik:RadScheduleView.ViewDefinitions >
                <telerik:MonthViewDefinition/>
            </telerik:RadScheduleView.ViewDefinitions>
        </telerik:RadScheduleView>
    </Grid>

It could not change  Content. Do I just have to setting its ControlTemplate ,Only one way? Why not setting ContentTemplate?


Kalin
Telerik team
 answered on 09 Jul 2013
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?