Telerik Forums
UI for WPF Forum
5 answers
112 views
Hello, I would like to enquire on a solution of the problem as per title.
To elaborate, let's have 2 column as example: Serial and Status, where Serial is a regular data column, while Status is a ComboBox column.
If I sort the GridView by Status column (clicking the Status header), and I tried to edit a Status cell, I will get NullReferenceException. Debugging shows that RadGridView.SelectedItem is null.
I have no problem with other scenarios, such as sorting by Status column and edit a Serial cell, or sorting by Serial column and edit a Status cell, or sorting by Serial column and edit a Serial cell.

Thanks a lot for your attention.
Dimitrina
Telerik team
 answered on 11 Aug 2014
3 answers
154 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
89 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
110 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
132 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
325 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
205 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
173 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
152 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
94 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?