Telerik Forums
UI for WPF Forum
2 answers
174 views

 Normally when you sort a column wether the groups are open or closed is remembered.

 But when adding Custom sorting to RadGridView and all the groups are collapsed when sorting, but if you add AutoExpandGroups all groups are expanded.

 I figure the reason is that the items are re-added to the collection.

 

I would really like to have the default behaviour, where the open groups are open and the closed are closed, event after sorting.

Is there a way to do this??

 

Regards

Martin

Ivan Ivanov
Telerik team
 answered on 26 Aug 2015
5 answers
1.7K+ views
Hi 

I am trying to find the demo source code for the UI for WPF. But, I can only download the binaries from telerik. Can you show me where I can download the source code?

Thanks.
Danny
Petya
Telerik team
 answered on 26 Aug 2015
7 answers
193 views

Hi!

In the AutoCompleteBox in Suggest mode, when I enter some search text, the control always select the first element of the filtered list. Conversely, when I delete a char of my search text, nothing is selected in the filtered list even if it contains items.

Is it a way to always select the first item (even if a delete is done) or to always select nothing (event if I put chars).

Thanks for your answer!

 Alex

Nasko
Telerik team
 answered on 26 Aug 2015
1 answer
180 views

Hi

Is it possible to​ select multiple nodes in TreeView after clicking on one node and then dragging mouse just like we do in GridView. Basically I need to implement DragElementAction property in Treeview but cannot find it in this control.

Any help would be greatly appreciated.

 

Martin Ivanov
Telerik team
 answered on 26 Aug 2015
18 answers
225 views

Hi,

I have a class that inherit form MapGeometryView that create a custom PathGeometryData that is displayed on a RadMap. This shape represent a container for other item displayed on a RadMap. Since the shape is bound to a lat/long position it become very small when I zoom out. Is there a way to add a padding (in pixel) to the shape so that it keeps a reasonable size when I zoom out ?

 Thank you,

 Etienne

Petar Mladenov
Telerik team
 answered on 26 Aug 2015
1 answer
94 views

I just wanted to share a simplified version of a wrapper service for the DesktopAlert that we use to handle Images from multiple sources - see below.

 I trust that someone will find this useful.

Enjoy! 

Graeme

 

1. Resource Image references

2.                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
3.    <BitmapImage x:Key="MailImage" UriSource="Images/Mail.png" />
4.    <BitmapImage x:Key="ContactImage" UriSource="Images/Contact.png" />
5.</ResourceDictionary>

 

2. Type References to images

1.public enum AppAlertIconType
2.{
3.    Mail,
4.    Contact,
5.    Url = -1
6.}

 

3. Alert service interface (we use MEF)

1.public interface IAppAlertService
2.{
3.    void ShowMessage(string header, string content, string imageUrl, int showDuration = 5000, double width = 48, double height = 48);
4.    void ShowMessage(string header, string content, AppAlertIconType icon, string imageUrl = "", int showDuration = 5000, double width = 48, double height = 48);
5.    void ShowMessage(string header, string content, Image image, int showDuration = 5000, double width = 48);
6.    void CloseAllAlerts();
7.}

 

4. Alert Service

01.public class AppAlertService : IAppAlertService
02.{
03.    RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.TopRight);
04. 
05.    public void ShowMessage(string header, string content, string imageUrl, int showDuration = 5000, double width = 48, double height = 48)
06.    {
07.        this.ShowMessage(header, content, AppAlertIconType.Url, imageUrl, showDuration, width, height);
08.    }
09. 
10.    public void ShowMessage(string header, string content, AppAlertIconType icon, string imageUrl = "", int showDuration = 5000, double width = 48, double height = 48)
11.    {
12.        Func<AppAlertIconType, Image> GetResourceImage = new Func<AppAlertIconType, Image>(t => new Image { Source = Application.Current.FindResource(string.Format("{0}Image", t.ToString())) as ImageSource, Width = width, Height = height });
13.        Func <string, Image> GetWebImage = new Func<string, Image>(t => new Image { Source = new BitmapImage(new Uri(t, UriKind.Absolute)), Width = width, Height = height });
14.        this.ShowMessage(header, content, icon == AppAlertIconType.Url ? GetWebImage(imageUrl) : GetResourceImage(icon), showDuration, width);
15.    }
16. 
17.    public void ShowMessage(string header, string content, Image image, int showDuration = 5000, double width = 48)
18.    {
19.        manager.ShowAlert(new DesktopAlertParameters
20.        {
21.            Header = header,
22.            Content = content,
23.            Icon = image,
24.            IconColumnWidth = width,
25.            IconMargin = new Thickness(10, 0, 20, 0),
26.            ShowDuration = showDuration
27.        });
28.    }
29. 
30.    public void CloseAllAlerts()
31.    {
32.        manager.CloseAllAlerts();
33.    }
34.}

 

5. Usage

1.IAppAlertService alertService = new AppAlertService();
2.alertService.ShowMessage("header", "content goes here", AppAlertIconType.Mail);
3.alertService.ShowMessage("header", "content goes here", AppAlertIconType.Url, "http://greywolf.critter.net/images/gallery/critters/2007-09-14-happy-pink-unicorn.jpg");

Kalin
Telerik team
 answered on 26 Aug 2015
5 answers
320 views
Hi,

I'm using the RadTabControl in a WPF application using the MVVM Light Framework. My application has a main window with a RadTabControl, each tab has to display a different view/viewmodel. I would like to know if there is a best practice for loading these views into the RadTabControl ? Is there any code sample ?

Thanks for your help!
Doots
Vuong Nguyen
Top achievements
Rank 1
 answered on 26 Aug 2015
4 answers
153 views

Hi,

i have sortabletelrik grid with 10 columns.bt default telerik provides sorting option.

i need to customize the sorting facility,i mean ,say i have these two columns with colums1 and columns2. when i click on column header column1,it should not sort.This can be done by setting isortable=false in XAML.But my problem is,wen i click on column2 for sorting,it takes up the first column data for sorting which should not happen. The data of column1 should be freezed wen ever i click on sort on any column header of the grid,it has to exclude coulmn1 and den sort.

Please see the required output in the example.

Ex  before sort

column1  column2

A1           Oligo 1
C1           Oligo 2
F1           Oligo 3
A2           Oligo 4
B2           Oligo 5

After sort

column1  column2
A1           Oligo 5
C1           Oligo 4
F1           Oligo 3
A2           Oligo 2
B2           Oligo 1

and one more condition is, this freezing should only happen wen sorting is clicked,not by default. Please reply ASAP. 

 

 

CHAITHRA
Top achievements
Rank 1
 answered on 26 Aug 2015
2 answers
152 views

Hi,
After a necessary downgrade form 2015.2.728.45 to 2015.1.0401.45 CartesianChart is not showing up. 

Code:

        <telerik:ChartDataSource x:Name="ChartDataSource1" Width="500" Height="400"
                            ItemsSource="{Binding Items}"
                            SamplingUnit="Day" 
                            SamplingUnitInterval="1" Grid.Row="0" Grid.Column="1"
                                   Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center"/>

        <telerik:RadCartesianChart x:Name="RadChart1" Width="495" Height="450" Grid.Row="0" Grid.Column="1"
                                   Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center">
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:DateTimeCategoricalAxis LabelFormat="dd.MM" Title="{x:Static languages:Lang.TimesheetTransTime}"
                                            DateTimeComponent="Ticks"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Title="{x:Static languages:Lang.CostHours}" Padding="0,20,0,0" Margin="0,20,0,0" />
            </telerik:RadCartesianChart.VerticalAxis>
            <telerik:BarSeries ShowLabels="True"
                        CategoryBinding="TimesheetTransDateTime"
                        ValueBinding="Hours"
                        ItemsSource="{Binding ElementName=ChartDataSource1}">
            </telerik:BarSeries>
        </telerik:RadCartesianChart>

In version 2015.2.728.45 everything  was working correctly.
Is there something I'm supposed to know?

Pawel
Top achievements
Rank 1
 answered on 25 Aug 2015
8 answers
179 views
Hi,
after changing the the rendermode to flat, I have to press the tab key two times to come to the next input box.
How can I change this?

Regards Markus
Martin
Telerik team
 answered on 25 Aug 2015
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
Security
VirtualKeyboard
HighlightTextBlock
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?