Telerik Forums
UI for WPF Forum
1 answer
240 views
I have a nested grid and I want to expand it and collapse it with a parent row click. It expands with parent row click per default but if i want to close it (collapse it) i have to hold crtl. I want to be able to collapse it again on the parent row click without holding crtl button. How is that possible? Thanks
Yoan
Telerik team
 answered on 20 May 2016
3 answers
189 views
I tried getting tooltip value from comboitems using AutomationElement, it is giving 'RadComboBoxItem' as value of tooltip in all cases irrespectivie of value in tooltip. 

    Here is the sample application code:

<telerik:RadComboBox Height="17" HorizontalAlignment="Left" Margin="260,84,0,0" Name="StaticComboCtrl" VerticalAlignment="Top" Width="156" ItemsSource="{Binding}" RenderTransformOrigin="0.494,-1.5">
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemOne" ToolTip="ItemOne">Item1</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemTwo" ToolTip="ItemTwo">Item2</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemThree" ToolTip="ItemThree">Item3</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemFour" ToolTip="ItemFour">Item4</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemFive" ToolTip="ItemFive">Item5</telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem AutomationProperties.HelpText="ItemSix" ToolTip="ItemSix">Item6</telerik:RadComboBoxItem>
                    </telerik:RadComboBox>



Below is the code which gets autiomation element from point and gets "HelpText" property from that control. 

                System.Windows.Automation.AutomationElement testControl = AutomationElement.FromPoint(LocationOfTheCombItem or mouse position); 

                testing = testControl.Current.HelpText;



Here variable testing is always populated with value "RabComboBoxItem" but not actual value. 



Any help would be highly appreciated in this regards. 



Georgi
Telerik team
 answered on 20 May 2016
2 answers
71 views

Hi there,

FYI: In the latest WPF Release There seems to b a couple undefined resources in the Windows 8 Touch Theme.

DragDrop_VisualCueBackground and DragDrop_VisualCueBorder

I am not using these so I defined these via another theme just to avoid the warnings.

 

MarkInTexas
Top achievements
Rank 1
 answered on 19 May 2016
2 answers
166 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
294 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
100 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
627 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
329 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
91 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
108 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
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
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?