Telerik Forums
UI for WPF Forum
3 answers
169 views
Hello,
I have a RadDocking with dynamic panes. I simulate an ItemsSource using an attached property to create the panes on startup and during the application runtime.

When I load the layout, I want to restore the pane positions and visibility for all _existing_ panes, but do not want to change the panes collection. At the moment, LoadLayout() deletes all panes which were not existing when the Layout was saved, and creates empty panes for missing items.
Can I somehow avoid this behavior?

Alex
Vladi
Telerik team
 answered on 11 Aug 2014
1 answer
125 views
Hi,

I created a usercontrol which contain a RadAutoCompleteBox and a RadButton and I would like to simulate the ENTER key of the RadAutoCompleteBox when I click on the button, is this possible and if yes, how?!?

Thank's
Alain
Yana
Telerik team
 answered on 11 Aug 2014
1 answer
139 views
Hi,

I created a usercontrol which contain a RadAutoCompleteBox and a RadButton. When I click on the button, I would like to simulate the ENTER key of the RadAutoCompleteBox to keep the behavior of the ENTER key on the control... How can I do that???

Thank's
Alain
Yana
Telerik team
 answered on 11 Aug 2014
2 answers
181 views
I would like to create one universal class because I want to use the control in many places for many things. I have custom class (Picker) which inherit from AutoCompleteBox, inside I have my logic( I have dependency property and I can choose what will be displaying as search text) and also I have xaml with custom style. Inside xaml I have class with custom filtering methods and custom style. Next I have 4 class which inherit from Picker(class) and inside those class I have downloading data from data base (changing ItemSource). Now I can choose which controls will be displaying and which data will be loading(this solution give me 4 controls with different data but I have only one style) everything is working but I have problem with displaying data inside dropdownItem. Now I can choose manually what will be displaying inside dropdown(after the searching) because I have custom dropdown template. I would like to create universal  dependency property which let me chose what will be displaying after the searching (which property from searching object). For example inside User Picker I would like to display First Name and Last Name, inside Role Picker I would like to display only User Role. Everything should have only one style and inside style i would like to choose what will be displaying using dependency property when I am creating controls. Can I create something like this? How I can add this property to style inside Picker class? I am adding drawing with diagram classes
Yana
Telerik team
 answered on 11 Aug 2014
1 answer
345 views
Hello!

I want to print a pdf file using RadPdfViewer. I tried

Viewer viewer = new RadPdfViewer();
viewer.Print(new Telerik.Windows.Documents.Fixed.Print.PrintSettings(@"abc.pdf",false));
This is not working.
Basically I want to print a pdf file in a separate thread because I don't want my interface to frieze. 
 
Please help me.
Kammen
Telerik team
 answered on 08 Aug 2014
5 answers
227 views
Thanks telerik team for being extremely helpful
I'm having another issue and hope that someone can help me with

I want to make the header of the radtileviewitem clickable (i.e. clicking on the header will fire up the same event as clicking on the content area)
I did tried setting the template under headerstyle to a button, but doing this, I will lose the dragging ability on the tileviewitem

Is there a way for me to achieve both (clickable + draggable header) ?
Thanks
Huy
Top achievements
Rank 1
 answered on 08 Aug 2014
3 answers
181 views
Hi,

We have a usercontrol containing a RadGridView. One of the columns has a dropdown. When we run this on a touch device and we touch the dropdown, the TapAndhold image (the circle) is being shown. According to the documentation this TapAndHold control would only appear after 1,5 seconds, but in our case is appears right away after the contents of the dropdown are shown.

The version of the controls we use is  2014.1.0224.40.

The grid in XAML:
<telerik:RadGridView x:Name="gridViewChars"
                                        AutoGenerateColumns="False"
                                        CanUserDeleteRows="False"
                                        CanUserFreezeColumns="False"
                                        CanUserInsertRows="False"
                                        CanUserReorderColumns="False"
                                        CanUserSelect="True"
                                        CanUserSortColumns="False"
                                        DragElementAction="None"
                                        IsFilteringAllowed="False"
                                        IsReadOnly="False"
                                        Margin="0,10,0,0"
                                        RowIndicatorVisibility="Collapsed"
                                        ShowGroupPanel="False"
                                        ColumnWidth="*"
                                        ItemsSource="{Binding CurrentChapter.CurrentChapterOperation.CharacteristicList, Mode=OneWay}"
                                        EditTriggers="None"
                                        ValidatesOnDataErrors="None">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn IsReadOnly="True"
                                                Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_DESCRIPTION, Dict=Resources, Assembly=MQM_Win32Resources}"
                                                CellTemplate="{StaticResource DescriptionTemplate}"
                                                MaxWidth="400"
                                                />
                    <telerik:GridViewDataColumn Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_VALUE, Dict=Resources, Assembly=MQM_Win32Resources}"
                                                CellTemplateSelector="{StaticResource CharTemplateSelector}"
                                                MaxWidth="400"
                                                />
                    <telerik:GridViewDataColumn IsReadOnly="True"
                                                Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_UNIT, Dict=Resources, Assembly=MQM_Win32Resources}"
                                                DataMemberBinding="{Binding Unit, Mode=OneWay}"
                                                MaxWidth="80" />
                    <telerik:GridViewDataColumn IsReadOnly="True"
                                                Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_REFVAL, Dict=Resources, Assembly=MQM_Win32Resources}"
                                                IsVisible="{Binding Path=ShowReferenceData}"
                                                CellTemplate="{StaticResource RefValTemplate}"
                                                MaxWidth="40" />
                    <telerik:GridViewDataColumn CellTemplate="{StaticResource TypeAsLabelTemplate}"
                                                Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_TYPE, Dict=Resources, Assembly=MQM_Win32Resources}"
                                                MinWidth="100"
                                                MaxWidth="120"/>
                    <!--<telerik:GridViewDataColumn IsReadOnly="True" Header="{lex:LocText Key=INSPECTIONDETAIL_CHAR_HISTORY, Dict=Resources, Assembly=MQM_Win32Resources}" CellTemplate="{StaticResource HistoryTemplate}"/>-->
                    <telerik:GridViewDataColumn CellTemplate="{StaticResource CannotAnswerButtonTemplate}"
                                                IsVisible="{Binding Path=ShowNAButton}"
                                                MaxWidth="60" />
                    <telerik:GridViewDataColumn CellTemplate="{StaticResource AddPhotoButtonTemplate}" MaxWidth="60"/>
                    <telerik:GridViewDataColumn CellTemplate="{StaticResource ShowDocumentationButtonTemplate}" MaxWidth="60"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>


The datatemplate for the column which contains the dropdown:

<DataTemplate>
                    <AdornerDecorator>
                        <telerik:RadComboBox DisplayMemberPath="Name"
                                             IsEditable="False"
                                             IsEnabled="{Binding Path=IsEnabled, Mode=OneWay}"
                                             ItemsSource="{Binding SelectionList}"
                                             Margin="0,0,40,0"
                                             OpenDropDownOnFocus="True"
                                             SourceUpdated="OnSourceUpdated"
                                             ToolTip="{StaticResource TooltipValue}"
                                             ToolTipService.HorizontalOffset="15"
                                             ToolTipService.VerticalOffset="15"
                                             ToolTipService.Placement="Right">
                            <telerik:RadComboBox.SelectedItem>
                                <Binding Path="Selection"
                                         Mode="TwoWay"
                                         NotifyOnSourceUpdated="True"
                                         UpdateSourceTrigger="PropertyChanged"
                                         ValidatesOnDataErrors="True" />
                            </telerik:RadComboBox.SelectedItem>
                        </telerik:RadComboBox>
                    </AdornerDecorator>
                </DataTemplate>

The style for the RadgridView:

<Style TargetType="{x:Type telerik:RadGridView}">
    <Setter Property="telerik:StyleManager.Theme"
            Value="Windows8Touch" />
    <Setter Property="IsLocalizationLanguageRespected"
            Value="False" />
    <Setter Property="telerik:TouchManager.IsTouchHitTestVisible"
            Value="False" />
</Style>

Is this a bug or did we do something wrong?

Kind regards,
Mike Overmeijer
Nick
Telerik team
 answered on 08 Aug 2014
1 answer
183 views
Hi,

I would like to know if it's possible to adjust the dropdown height of the control?!? My dropdown may contain a lot of item and I want the dropdown heigth to be "self adjusting" regarding the number of items I have in the dropdown. Of course, I don't want the height of the dropdown to be bigger than the available display space.

Thank's
Alain
Konstantina
Telerik team
 answered on 08 Aug 2014
1 answer
112 views
Hi,

I would like to have 2 icons at the most right of the control (inside the input box) like we have in Internet Explorer 11 address... How I possible?!?

Thank's
Al
Kalin
Telerik team
 answered on 08 Aug 2014
4 answers
139 views
I thought it would be something like the loaded event but that appears to not be the case.  Please advise, thanks.

public partial class Menu : RadPane
{
public Menu()
{
InitializeComponent();
DataContext = new MenuViewModel(mc);
Loaded += Menu_Loaded; //breakpoint here executes

}

void Menu_Loaded(object sender, RoutedEventArgs e)
{
Loaded -= Menu_Loaded; // never executes
((MenuViewModel)DataContext).ShowMenu();
}

protected override void OnLoaded(object sender, RoutedEventArgs e)
{
base.OnLoaded(sender, e); // never executes
((MenuViewModel)DataContext).ShowMenu();
}

}
Kalin
Telerik team
 answered on 08 Aug 2014
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
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
SplashScreen
Rating
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?