Telerik Forums
UI for WPF Forum
3 answers
222 views
How can I set RadTilelist for WPF to select a single item rather than multiple items ?
Stefan
Telerik team
 answered on 31 May 2017
2 answers
301 views

Hello telerik,

 

I am about to finish a custom implementation of a feature which consists of an element from a treeview being dragged to a Docking pane.

The attached screen shot shows how it happens.

 

The only thing missing so far is I need to find a way to dock it maximized or expanded, as of now the usercontrol comes taking only part of the space available as default.

 

is there an easy way to achieve the desired behavior problematically?

Here is my code:

private void RadDocking_Drop(object sender, DragEventArgs e)
    var data = e.Data.GetData("TreeViewDragDropOptions");
    var item = ((TreeViewDragDropOptions)data).DraggedItems.First();
    var splitter = ((RadDocking)sender).Items[0];
    RadPaneGroup group = (RadPaneGroup)((RadSplitContainer)splitter).Items[0];
    var newPane = new RadPane();
    switch (((RadTreeViewItem)item).Name)
    {
        case "RadPdfViewer":
            newPane.Content = new UserControl1();
            newPane.Header = "uc1";
            break;
 
        case "RadChartview":
            newPane.Content = new UserControl2();
            newPane.Header = "uc2";
            break;
 
        case "RadDataFilter":
            newPane.Content = new UserControl3();
            newPane.Header = "uc3";
            break;
 
    }
    if (newPane.Content != null)
        group.AddItem(newPane, Telerik.Windows.Controls.Docking.DockPosition.Center);
}

 

 

Thank you

Jacob
Top achievements
Rank 1
 answered on 31 May 2017
4 answers
252 views

Hello All,
     Well, color me stupid or something, because I can figure this one out.  I'm using Visual Studio 2013 and I am trying to create a wizard for my WPF application.  I have created a RadWizard with a RadWiardPages collection in it, with multiple WizardPage (six to be exact) objects in the collection.  However, I can ONLY see ONE of the pages in the Designer.  I CANNOT switch between the pages like I can on another window where I have a standard TabControl.  I would like to know how I can design subsequent pages in a wizard when I can only see one page.  On the other window with a TabControl, when I select a different TabItem the designer shows that TabItem's contents.  Is there a way of doing this with the RadWizard control?????  It makes it very difficult to design any Wizard with multiple pages when you can't see the different pages in the designer!!!

 

Thanks in advance,

Kevin Orcutt
Senior Software Engineer

Wurth Electronics ICS, Inc.
7496 Webster St., Dayton, OH 45414
Tel: 937.415.7700 
Toll Free: 877.690.2207
Fax: 937.415.7710
Email: Kevin.Orcutt@we-ics.com
http://www.we-ics.com

 

 

live cooking demonstration
Top achievements
Rank 1
 answered on 31 May 2017
2 answers
125 views

I want to be able to switch the design view from wizardpage to wizardpage. Currently It will only display the first wizardpage entered in the xaml view.

Is this currently possible? If not I guess the alternative would be to make a new page.xaml for every telerik:wizardpage then override the default navigation somehow. I could use some help finding a solution.

<telerik:RadWizard x:Name="radWizard">         <telerik:RadWizard.WizardPages>             <telerik:WizardPage Name="DeployTargetPage">                 <telerik:WizardPage.Content>                   <Grid>                         <TextBlock Width="80" Height="20" Margin="35,51,387.4,207.4" >Deploy target</TextBlock>                         <ComboBox  Width="100" Height="20" Margin="35,76,367.4,182.4" >                             <ComboBoxItem Selected="LocalDeploySelected">Local host</ComboBoxItem>                             <ComboBoxItem Selected="AzureDeploySelected">Azure</ComboBoxItem>                         </ComboBox>                     </Grid>                 </telerik:WizardPage.Content>             </telerik:WizardPage>             <telerik:WizardPage Name="SetParametersPage">                 <telerik:WizardPage.Content>                     <Grid>                         <TextBlock Width="100" Height="20" >Site name</TextBlock>                         <ListBox Grid.Column="0" Height="20" />                         <TextBlock Width="100" Height="20" >Publish link</TextBlock>                         <ListBox Height="20" />                         <TextBlock Width="100" Height="20" >User name</TextBlock>                         <ListBox Height="20" />                         <TextBlock Width="100" Height="20" >Password</TextBlock>                         <ListBox Height="20" />                     </Grid>                 </telerik:WizardPage.Content>             </telerik:WizardPage>

live cooking demonstration
Top achievements
Rank 1
 answered on 31 May 2017
2 answers
153 views

Hi, like the OpenDiagramdemo.zip, i have a diagram, when startup, it add 500 shapes to this diagram. Then i click the "click me" in the left treeview to open a radpane, and the radpane show the diagram. The problem is that it takes too much time to opening the radpane. When opened, i move the view area in the thumbnail, its response is slow too. How to make fast?

Hope answers, thanks!

OpenDiagramdemo.zip download url:  http://www.filefactory.com/file/5cu3dseh6x8h/OpenDiagramdemo.zip

Jonathan
Top achievements
Rank 1
 answered on 31 May 2017
8 answers
575 views
I am trying and failing to show the group totals aligned with column headers. by setting the following properties ShowGroupHeaderColumnAggregates and ShowHeaderAggregates.

This the XAML I am using - am I doing something wrong or does it just not work? The property setters seem to have no effect.

<Window x:Class="GridViewTest.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525"
    xmlns:t="http://schemas.telerik.com/2008/xaml/presentation">
    <Window.Resources>
        <Style TargetType="t:GroupHeaderRow">
            <Setter Property="ShowGroupHeaderColumnAggregates" Value="True" />
            <Setter Property="ShowHeaderAggregates" Value="False" />
        </Style>
    </Window.Resources>
    <Grid>
         <t:RadGridView ItemsSource="{Binding Path=Records}" SelectionMode="Extended">
         <t:RadGridView.GroupDescriptors>
             <t:GroupDescriptor Member="Column1" SortDirection="Ascending">
                 <t:GroupDescriptor.AggregateFunctions>
                     <t:CountFunction Caption="Entries count: " />
                     <t:FirstFunction Caption="First entry: " />
                 </t:GroupDescriptor.AggregateFunctions>
          </t:GroupDescriptor>
       </t:RadGridView.GroupDescriptors>
</t:RadGridView>
</Grid>
Ivan Ivanov
Telerik team
 answered on 30 May 2017
1 answer
132 views

Hi,

I have this code and I need to set the value of one column based on the SelectedItem (SelectedItemMyRecord) binded in the grid. The value will be set after clicking a button. Can someone help me on this?

 

<telerik:RadGridView Grid.Row="1"                                   
                                     Height="300"                                 
                                     ItemsSource="{Binding MyRecords, Mode=TwoWay}"                                       
                                     SelectionMode="Single"                                    
                                     Name="radGridViewMyList"
                                     telerikGridViewHeaderMenu:GridViewHeaderMenu.IsEnabled="True"
                                     FontSize="{Binding GridFontSize}"
                                     IsReadOnly="False"
                                     SelectedItem="{Binding SelectedItemMyRecord, Mode=TwoWay}"                                     
                                     RowIndicatorVisibility ="Visible"                                                                     
                                     RowDetailsVisibilityMode="VisibleWhenSelected"

Dilyan Traykov
Telerik team
 answered on 30 May 2017
1 answer
263 views

hi,

I'm using telerik rad map in my project with png and tiff Images,

this wired thing happens to me, every few times I run my code I get system invalidoperationexception in mscorlib dll,

it is definitely related to maps Images because when I remove the png and tiff (using the map without image) it is not happening.

please note that most of the time code runs correctly with the images.

do you have any Idea why some time I get this exception?

 

Petar Mladenov
Telerik team
 answered on 30 May 2017
1 answer
238 views

I am creating a collection of columns in the viewmodel and successfully adding the columns to the TreeListView from the code behind in an event in the viewmodel.

CodeBehind

private void Vm_OnCompletedEvent(object sender, EventArgs e)
    {
        try
        {
            tvData.Columns.Clear();
            foreach (GridViewDataColumn oCol in vm.ColumnList)
            {
                this.tvData.Columns.Add(oCol);
            }
            tvData.Rebind();
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message);
        }
    }

The XAML in the View

<telerik:RadTreeListView x:Name="tvData"
                                                             Margin="1"
                                                             ItemsSource="{Binding TreeNodeDEList}"
                                                             SelectedItem="{Binding SelectedTreeNodeDE,Mode=TwoWay}"
                                                             AutoGenerateColumns="False"
                                                             AutoExpandItems="True"
                                                             IsFilteringAllowed="False"
                                                             IsReadOnly="True"
                                                             HierarchyIndent="8"
                                                             FrozenColumnCount="1"                                                                                                                  
                                                             RowStyleSelector="{StaticResource deRowSelector}"
                                                             RowIndicatorVisibility="Collapsed">
                <telerik:RadTreeListView.ChildTableDefinitions>
                    <telerik:TreeListViewTableDefinition ItemsSource="{Binding ChildNodes}" />
                </telerik:RadTreeListView.ChildTableDefinitions>
            </telerik:RadTreeListView>

The ViewModel code to create the columns

private void CreateColumns()
{
    try
    {
        string sUniqueName, sValuefield;
        GridViewDataColumn oCol;
        ColumnList = new List<GridViewDataColumn>();
 
        oCol = new GridViewDataColumn();
        oCol.HeaderCellStyle = HeaderStyle();
        oCol.Width = 250;
        oCol.Header = "Category/Line Item";
        oCol.UniqueName = "Rootcol";
        oCol.DataMemberBinding = new System.Windows.Data.Binding("NodeLabel");
        oCol.HeaderTextAlignment = TextAlignment.Left;
        oCol.TextAlignment = TextAlignment.Left;               
        ColumnList.Add(oCol);
        int i = 1;
        foreach (WeekNoDB oWk in lWeekNo)
        {
            sUniqueName = string.Format("CellLabel{0}", i.ToString().PadLeft(2, '0'));
            sValuefield = string.Format("CellLabel{0}", i.ToString().PadLeft(2, '0'));
            oCol = new GridViewDataColumn();
            oCol.HeaderCellStyle = HeaderStyle();
            oCol.Width = 40;
            oCol.Header = string.Format("{0}/{1}", oWk.ToDate.DateTimeFromNull().Day, oWk.ToDate.DateTimeFromNull().Month);
            oCol.UniqueName = sUniqueName;
            oCol.DataMemberBinding = new System.Windows.Data.Binding(sValuefield);
            oCol.HeaderTextAlignment = TextAlignment.Center;
            oCol.TextAlignment = TextAlignment.Right;                  
            ColumnList.Add(oCol);
            i++;
        }
        if (this.OnCompletedEvent != null)
        {
            this.OnCompletedEvent(this, new EventArgs());
        }
    }
    catch (Exception exc)
    {
        gUI.PopError(string.Format("{0}.{1}", this.GetType().Name, System.Reflection.MethodBase.GetCurrentMethod().Name), exc);
    }
}

 

This works perfectly - ONCE

The second time i get the error

 

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in Telerik.Windows.Controls.GridView.dll

Additional information: DataGrid_DisplayIndexOutOfRange

Astonishingly there is little response from Google, or my foo is not working. Any ideas how to fix this problem. 

Dilyan Traykov
Telerik team
 answered on 30 May 2017
1 answer
148 views

Hi,

If I want to convert a location point to an address I have to call the ReverseGeocodeAsync() method of the BingGeocodeProvider and pass a ReverseGeocodeRequest to it. However in R2 2017 this classes are deleted.  And I didn’t find this classes in BingRestMapRouting.

Could you please tell me how to implement that ReverseGeocode logic in new version of telerik(R2 2017).

This is blocking us and need immediate help.

 

Thanx

Dinko | Tech Support Engineer
Telerik team
 answered on 29 May 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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?