Telerik Forums
UI for WPF Forum
2 answers
142 views

ExportFormat.Xlsx and ExportFormat.Pdf are now obsolete?

I was using these formats.

Is there a work-around to continue using?

Weren't these formats just introduced last year?

MarkInTexas
Top achievements
Rank 1
 answered on 19 May 2016
3 answers
256 views

Hello,

I’ve had issue with RadMap Provider cache in my application. My RadMap is connected to a local WMS (Geoserver). I've changed the map on the Geoserver to hide airport locations but it's not displayed in my RadMap (see attachments).

I have set the attribute "IsTileCachingEnabled = true" to enable tile caching (under %APPDATA%/Local/TelerikMapCache).
Then I added a function to clear the MapProvider when requested by the user :

            if (_mapProviderWrapper.MapProvider is WmsCustomProvider)
            {
                var wmsCustomProvider = (WmsCustomProvider)_mapProviderWrapper.MapProvider;
                var cacheStorage = wmsCustomProvider.CacheStorage as FileSystemCache;
                if (cacheStorage != null)
                {
                    string cachePath = cacheStorage.CachePath;
                    Directory.Delete(cachePath, true);
                    Directory.CreateDirectory(cachePath);
                }
            }

But even when the folder is empty and that I restart the application, RadMap still display airports which may means that tiles are cached somewhere else.
Is there a way to force a refresh of a MapProvider after the cache has been cleared?

Thanks!

Etienne

Martin Ivanov
Telerik team
 answered on 19 May 2016
0 answers
77 views

hi my friends

I wanna to change RadBusyIndicator busy content from database record by using foreach loop like this

foreach(rs in records){

RadBusyIndicator .busycontent=rs.SchoolName;

 

}

but I get last record in RadBusyIndicator busy content note;

because it not waiting

 

with my thanks

ابو
Top achievements
Rank 1
 asked on 19 May 2016
4 answers
584 views
Why would a PreviewMouseDown event prevent the ComboBox from opening?

 

In using the snippet below and using that event (whether there is any code in the handler or not), the ComboBox will not open. Once the event reference is removed from XAML it works as expected.

What am I missing here?

<telerik:RadComboBox Height="23"
         Margin="12,20,12,0"
         VerticalAlignment="Top"
         DisplayMemberPath="LIST_NAME"
         IsEditable="True"
         IsFilteringEnabled="True"
         IsReadOnly="True"
         IsTabStop="True"
         IsTextSearchEnabled="True"
         ItemsSource="{Binding Path=ElementTypes}"
         OpenDropDownOnFocus="False"
         PreviewMouseDown="rcb_PreviewMouseDown"
         StaysOpenOnEdit="True"
         TextSearchMode="Contains" />
Jace
Top achievements
Rank 1
 answered on 19 May 2016
10 answers
308 views
My item source to grid is a class has about 20 columns. I have two bool columns.

public bool IsPassed {get;set;}
public bool HasPassport {get;set;}

when the grid is loaded or searhced these two cols display an image icon when the value is true.
while exporting to excel if IsPassed = true..then I have to show "Yes" in the excel else empty
if HasPassport = true, then I have to display some string value like "hdgfjhgh"

can anyone give me an example how to do it ?


Stefan
Telerik team
 answered on 18 May 2016
0 answers
77 views
Hi, I was successfully able to create and populate an autocompletebox using the styles provided in your SDK's for Custom Appointments. But the SelectedAttendees is sort of a dictionary so the setter is never trigger. Any thoughts on how I get around this?


<telerik:RadAutoCompleteBox Margin="6 0"
                        x:Name="AttendeeAutoCompleteBox"
                        Grid.Column="1"
                        ItemsSource="{Binding Path=AdditionalData.Atts, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
                        SelectedItems="{Binding Occurrence.Appointment.SelectedAttendees, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                        DisplayMemberPath="DisplayName"
                        TextSearchPath="Search"
                        Style="{StaticResource MultiAutoBox}"
                        WatermarkContent="Search ..."
                        MinHeight="55" VerticalContentAlignment="Top" Padding="5">
    <telerik:RadAutoCompleteBox.DropDownItemTemplate>
        <DataTemplate>
            <Grid Background="#F7F7F7" Margin="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBlock Text="{Binding PersonName}" FontWeight="Bold" FontSize="14"/>
                <TextBlock Text="{Binding SubName}" FontWeight="Bold" FontSize="14" Grid.Column="2"/>
                <TextBlock Text="{Binding RType}" Grid.Column="1"/>
                <TextBlock Text="{Binding SubType}" Grid.Column="3" Grid.Row="0"/>
            </Grid>
        </DataTemplate>
    </telerik:RadAutoCompleteBox.DropDownItemTemplate>
</telerik:RadAutoCompleteBox>

 

public ObservableCollection<AttendeeSearchDTO> SelectedAttendees
{
    get
    {
        return this.Storage<CustomAppointment>().selectedAttendees;
    }
    set
    {
        CustomAppointment storage = this.Storage<CustomAppointment>();
        if (storage.selectedAttendees != value)
        {
            storage.selectedAttendees = value;
            this.OnPropertyChanged(() => this.SelectedAttendees);
        }
    }
}

Minh
Top achievements
Rank 1
 asked on 18 May 2016
1 answer
96 views

Hello,

 

I'm using a RadRibbonDropDownButtonInside, I'm using a RadRibbonDropDownButton.DropDownContent. Inside it, I had put some differents controls.

You can see the begining of my code in '1' attached file.

 

For example, when I had clicked in a comboBox item, the DropDownContent is closing. But if I click on a radioButton, DropDownContent stays here (is that I want).

 

Do you know if there is a property who can avoid to close the DropDownContent ?

 

Thanks you.

 

Valentin.

Valentin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 18 May 2016
1 answer
123 views

Hello all, 

wonder if someone can help me to find the solution for get 'PropertyAggregateDescription' into a 'ColumnGroupDescriptions'. This is my code:

    <Window.Resources>
        <pivot:LocalDataSourceProvider x:Key="LocalDataProvider" AggregatesPosition="Rows">
            <pivot:LocalDataSourceProvider.RowGroupDescriptions>
                <pivot:PropertyGroupDescription PropertyName="Product Line"  />
            </pivot:LocalDataSourceProvider.RowGroupDescriptions>
            <pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
                <pivot:PropertyGroupDescription PropertyName="Value:Net Revenue - Total"  />
            </pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
            <pivot:LocalDataSourceProvider.AggregateDescriptions>
                <pivot:PropertyAggregateDescription PropertyName="Net Revenue - Total" StringFormat="C" AggregateFunction="Sum" />
                <pivot:PropertyAggregateDescription PropertyName="Cost Total" StringFormat="C" AggregateFunction="Sum"/>
                <pivot:PropertyAggregateDescription PropertyName="GM $" StringFormat="C" AggregateFunction="Sum"/>
                <pivot:PropertyAggregateDescription PropertyName="GM %" StringFormat="P" AggregateFunction="Sum"/>
            </pivot:LocalDataSourceProvider.AggregateDescriptions>
        </pivot:LocalDataSourceProvider>
    </Window.Resources>

 

And if you see 'Problem.png' image is what i get. But I want something like the send image 'ThisIsWhatIWant.png', I can do it if I modify my Pivot with the FieldList in run time, just draggin the Values item into 'Column Labels', I need to have this in XAML or C# code, I think that it's something simple, but I just can't do it ):

 

Can someone help me?

Polya
Telerik team
 answered on 18 May 2016
1 answer
89 views

For a given property of type Vector3 (struct). If I set a custom EditorAttribute on the property, the binding with the custom editor's Value will be properly set to TwoWay:

[Editor(typeof(Vector3Editor), "Value")]
public Vector3 Position
{
    ...
}

If on the other hand use a DataTemplateSelector on the property grid (to avoid having to specify the Editor attribute on every Vector3 property) with the AutoBindBehavior in the DataTemplate, the binding will be OneWay. Looking in ILSpy (PropertyGridEditorFactory.GetBindingMode) it looks to only support TwoWay with primitive types.

I would expect the same BindingMode whether I use the EditorAttribute or a DataTemplateSelector with the AutoBindBehavior.

Thanks!

Yoan
Telerik team
 answered on 18 May 2016
3 answers
708 views

Hi,
I'm using LayoutControl with DisplayMode="Expander", but when I collapse a group, its content doesn't resize, controls disappear but LayoutControl height doesn'tchange.

I tried to use a WrapPanel to contains controls but it's the same behavior.

Am I missing something ?


This is my XAML

<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="5">
            <Grid.RowDefinitions>
                <RowDefinition Height="550"/>
            </Grid.RowDefinitions>
            <telerik:RadLayoutControl  Grid.Row="0" Grid.Column="0" Orientation="Vertical">
                <telerik:LayoutControlGroup DisplayMode="Expander" IsExpanded="True" IsExpandable="True" Header="{DynamicResource layTabAccAccountCausalsFlags}">
                    <WrapPanel>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.GeneralUse}" Content="{DynamicResource labTabAccAccountCausalsGenericUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.IVAUse}" Content="{DynamicResource labTabAccAccountCausalsIVAUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.CustomersUse}" Content="{DynamicResource labTabAccAccountCausalsCustomersUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.SuppliersUse}" Content="{DynamicResource labTabAccAccountCausalsSuppliersUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.ThirdPartsUse}" Content="{DynamicResource labTabAccAccountCausalsThirdPartsUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.INTRAUse}" Content="{DynamicResource labTabAccAccountCausalsINTRAUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                    </WrapPanel>
                </telerik:LayoutControlGroup>
                <telerik:LayoutControlGroup DisplayMode="Expander" Margin="3" IsExpanded="True" IsExpandable="True" Header="{DynamicResource layTabAccAccountCausalsIVA}">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="150"/>
                            <ColumnDefinition Width="150*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="40"/>
                            <RowDefinition Height="40"/>
                            <RowDefinition Height="40"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0" Grid.Column="0" Content="{DynamicResource labTabAccAccountCausalsSign}" Style="{StaticResource styleLabels}"/>
                        <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.Column="1">
                            <telerik:RadRadioButton IsChecked="{Binding Causal.Sign, Converter={StaticResource boolToStringConverter}, ConverterParameter=D}" Content="{DynamicResource valGive}" Margin="3" Width="50" />
                            <telerik:RadRadioButton IsChecked="{Binding Causal.Sign, Converter={StaticResource boolToStringConverter}, ConverterParameter=A}" Content="{DynamicResource valHave}" Margin="3" Width="50"/>
                        </StackPanel>
                        <Label Grid.Row="1" Grid.Column="0" Content="{DynamicResource labTabAccAccountCausalsIVABookID}" Style="{StaticResource styleLabels}"/>
 
                        <Label Grid.Row="2" Grid.Column="0" Content="{DynamicResource labTabAccAccountCausalsIVASign}" Style="{StaticResource styleLabels}"/>
                        <StackPanel Orientation="Horizontal" Grid.Row="2" Grid.Column="1">
                            <telerik:RadRadioButton IsChecked="{Binding Causal.IVASign, Converter={StaticResource boolToStringConverter}, ConverterParameter=+}" Content="{DynamicResource valPlus}" Margin="3" Width="35" />
                            <telerik:RadRadioButton IsChecked="{Binding Causal.IVASign, Converter={StaticResource boolToStringConverter}, ConverterParameter=-}" Content="{DynamicResource valMinus}" Margin="3" Width="35"/>
                        </StackPanel>
                    </Grid>
                </telerik:LayoutControlGroup>
                <telerik:LayoutControlGroup DisplayMode="Expander" Margin="3" IsExpanded="True" IsExpandable="True" Header="{DynamicResource layTabAccAccountCausalsCounterpart}">
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.GeneralUse}" Content="{DynamicResource labTabAccAccountCausalsGenericUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.IVAUse}" Content="{DynamicResource labTabAccAccountCausalsIVAUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.CustomersUse}" Content="{DynamicResource labTabAccAccountCausalsCustomersUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                        <CheckBox HorizontalAlignment="Left" Margin="5,0,0,0" Height="20"  IsChecked="{Binding Causal.CustomersUse}" Content="{DynamicResource labTabAccAccountCausalsCustomersUse}" Validation.ErrorTemplate="{StaticResource ErrorTemplate}"></CheckBox>
                </telerik:LayoutControlGroup>
            </telerik:RadLayoutControl>
        </Grid>

Aldo
Top achievements
Rank 2
 answered on 18 May 2016
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
Slider
Expander
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
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?