Telerik Forums
UI for WPF Forum
2 answers
152 views

Hi,

I am using RadTreeListView to display the data hierarchy in UI. I have a requirement to shuffle/re-order the columns. I had achieved this functionality by setting CanUserReorderColumns property to True.

 

UI:

Three Data Columns Naming - Col1|Col2|Col3

XAML is written such a way that Col1 is freezed (cannot reorder) setting GridViewDataColumn.IsReorderable="False". Means Col2 & Col3 can reshuffle there positions.

Everything works well till this point. The issue is with DropIcon.

When I drag Col2 on top of Col1 a DropIcon showing cannot drop is displayed (that is expected), but from this point without dropping i drag Col2 on top Col3 still a cannot drop drop icon is display (actually user can drop Col2 on top of Col3 position).

 

Please let me know how to fix this issue.

 

 

Thanks,

Lakshman Siddireddy

Lakshman
Top achievements
Rank 1
 answered on 12 Jan 2017
29 answers
777 views
Hi

I've got an app with some Telerik Docking contols, and in one of the RadPanes is a WPF Frame control, displaying a webpage. This works fine when the pane is docked, but when I undock the pane, the content disappears. It re-appears when I re-dock the pane. Any idea what is happening here?

XAML:
<telerik:RadPane Header="Test" CanDockInDocumentHost="False" Name="Tese"
ContextMenuTemplate="{x:Null}">
    <telerik:RadPane.Content>
        <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
     </telerik:RadPane.Content>
</telerik:RadPane>

 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
  
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
                             </telerik:RadPane.Content>
  
 <telerik:RadPane Header="Help" CanDockInDocumentHost="False" Name="Help" ContextMenuTemplate="{x:Null}">
                            <telerik:RadPane.Content>
                                <Frame Name="HelpWebsite" Source="http://peaveyoxford.com/kc/index."></Frame>
                                </telerik:RadPane.Content>
                        </telerik:RadPane>
                     </telerik:RadPane>


Thanks
Tom Davies
Peavey Digital Research.
Kabir
Top achievements
Rank 1
 answered on 11 Jan 2017
4 answers
445 views

Hi.   I've been working off of the OrgChart example, which is a great example and is exactly what I need.  However, I'm still having issues when updating the graph source and having that layout correctly.   Now, all the nodes get stacked on top of each other.  Can you provide an example of how to get this working?  Take for example, the OrgChart sample app and provide a new demo where you can click a button and have it reload a completely new data set and have that layout correctly in the diagram?

 

Thanks very much

Jamie
Top achievements
Rank 1
 answered on 11 Jan 2017
3 answers
313 views

http://stackoverflow.com/questions/19590930/fluid-layout-wrap-panel-variablesizedwrapgrid-in-desktop-applications

How best to build something like that with Telerik WPF?

Martin Ivanov
Telerik team
 answered on 11 Jan 2017
1 answer
153 views

Hello,

it is possible to collapse the content area of the RadOutlookBar?

I want to show the item list at the start of the application. At this moment any item is selected. Only when the user selects an item then the content should showed on the content area.

Thank for tipps,

Richrad

Stefan
Telerik team
 answered on 11 Jan 2017
1 answer
173 views

I have the following xaml for a button in the column header of my gridview.

<telerik:GridViewDataColumn Width="auto" >
    <telerik:GridViewDataColumn.Header>
        <Button Content="Add New" x:Name="cmdAddNew"
            Command="{Binding DataContext.AddCommand,
                                  RelativeSource={RelativeSource FindAncestor,
                                  AncestorType={x:Type UserControl}}}"
                                  Margin="0,5,5,5"/>
    </telerik:GridViewDataColumn.Header>
</telerik:GridViewDataColumn>

 

When I run the app I get the following error:

System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='System.Windows.Controls.UserControl', AncestorLevel='1''. BindingExpression:Path=DataContext.AddCommand; DataItem=null; target element is 'Button' (Name='cmdAddNew'); target property is 'Command' (type 'ICommand')

I can't make heads or tails of what is wrong.

The really strange part is if I add a click handler to my view and call:

    var vm = (TechniquesViewModel) this.DataContext;
    vm.AddCommand.Execute(null);

 

Everything works perfect.

What am I missing? I know I shouldn't be putting that code in my view, but I can't make it work with the xaml I have.

Thanks ... Ed

 

 

 

Ivan Ivanov
Telerik team
 answered on 11 Jan 2017
7 answers
207 views

Hi,

We have a few classes that inherits from our CustomShape class that inherits from RadDiagramShape, we also have a CustomConnector (inherits from RadDiagramConnector) class and we would like to have our ports always visible, we did try to edit the default template of RadDiagramShape and change the visibility to visible but it is not working.

Would you be able to tell us to change the visibility of the ports to make them visible even when the shape is not clicked?

Thanks!

Petar Mladenov
Telerik team
 answered on 11 Jan 2017
1 answer
400 views
<telerik:RadBusyIndicator IsIndeterminate="True" Grid.Row="1" Grid.ColumnSpan="2" IsBusy="False" x:Name="MainIndicator">
    <Grid x:Name="grdChart">
         <WindowsFormsHost Name="host" Background="Black" >
         </WindowsFormsHost>
     </Grid>
</telerik:RadBusyIndicator>

 

public void ActiveXControlDataLoaded()
{
    this.Dispatcher.BeginInvoke(new System.Action(() =>
    {
           MainIndicator.IsBusy = true;
    }));
}

 

The above XAML code is showing WindowsFormsHost element that is used to host an ActiveX control.

ActiveXControlDataLoaded method will be fired by the ActiveX control whenever it has a new data record.

My problem is RadBusyIndicator is always getting behind WindowsFormsHost element when the later UI is loaded. I tried to disable WindowsFormsHost and Its ActiveX control child but RadBusyIndicator keeps disappearing. Is there any way to show RadBusyIndicator on top of WindowsFormsHost ?

Thanks in advance.

Nasko
Telerik team
 answered on 11 Jan 2017
2 answers
197 views

Hi,

I have added  RadPivotGrid to my vb.net page and RadPersistenceManager . I managed to save and load the user current state with the following:

 RadPersistenceManager1.StorageProviderKey = fileId
        RadPersistenceManager1.SaveState()

 

However, I need to get the XML and save the XML in the db and then load the xml when user clicks the load button.

How do I get the XML for the current state?

 

Thanks

newp
Top achievements
Rank 1
 answered on 11 Jan 2017
5 answers
616 views

I have tried to set up a gridview which includes a date column.

If I have an invalid input for a date column, I get a validation error -> That is OK.

If I THEN use the dropdown to choose a date, the program crashes with the following exception: 'ToolTip' cannot have a logical or visual parent.

My GridViewColumn

<telerik:GridViewComboBoxColumn x:Name="InputValueComboBox" Header="ABC" ItemsSourceBinding="{Binding Inputs}" DataMemberBinding="{Binding Input, ValidatesOnDataErrors=True}" IsComboBoxEditable="True" SelectedValueMemberPath="Value" DisplayMemberPath="Value" SortMemberPath="Value" Width="Auto" CellEditTemplateSelector="{StaticResource InputValueEditTemplateSelector}" />

 

My TemplateSelector:

<DataTemplate x:Key="DateValueEditTemplate">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Column="0" Text="{Binding Input, Mode=TwoWay}" />
                    <telerik:RadDropDownButton x:Name="FilterCalendarDropdown" Grid.Column="1" AutoOpenDelay="0:0:0.0">
                        <telerik:RadDropDownButton.DropDownContent>
                            <telerik:RadCalendar SelectedDate="{Binding DateValue, Mode=TwoWay}" SelectionChanged="OnSelectionChanged" />
                        </telerik:RadDropDownButton.DropDownContent>
                    </telerik:RadDropDownButton>
                </Grid>
            </DataTemplate>
 
            <styleSelectors:PropertyValueDataTemplateSelector x:Key="InputValueEditTemplateSelector" DateTemplate="{StaticResource DateValueEditTemplate}" />

 

Any idea to solve the problem?

Ivan Ivanov
Telerik team
 answered on 10 Jan 2017
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?