Telerik Forums
UI for WPF Forum
1 answer
283 views
Hi,
Is it possible to add drag drop to dynamically added images or elements to a canvas and if yes how do you do it please?
Thanks

Simon
Tina Stancheva
Telerik team
 answered on 20 Jul 2010
1 answer
166 views
Hi,

I was wondering if there was any sample code for how to allow a user to drag a pin from outside of the map view onto the map view, thereby associating that location with the object where the pin was dragged from.

e.g. user drags pin from street address control A onto the map, A then gets set to the location under the pin point.

Thanks
Pete
Andrey
Telerik team
 answered on 20 Jul 2010
5 answers
408 views
Hello,

How can I handle a Transition between Pages?

Thanks
Stefan

<Window.CommandBindings> 
        <CommandBinding Command="NavigationCommands.GoToPage" Executed="GoToPageExecuteHandler" CanExecute="GoToPageCanExecuteHandler" /> 
    </Window.CommandBindings> 
 
    <Grid> 
        <Grid.ColumnDefinitions> 
            <ColumnDefinition Width="*" /> 
        </Grid.ColumnDefinitions> 
        <Grid.RowDefinitions> 
            <RowDefinition Height="Auto" /> 
            <RowDefinition Height="*" /> 
        </Grid.RowDefinitions> 
 
        <Menu Name="menuemal" Grid.Column="0" Grid.Row="0">  
            <MenuItem Header="Page 1" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page1.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page 2" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page2.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page 3" Command="NavigationCommands.GoToPage" CommandParameter="Page/Page3.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
            <MenuItem Header="Page without master" Command="NavigationCommands.GoToPage" CommandParameter="Page/PageWithoutMaster.xaml" CommandTarget="{Binding ElementName=frmContent}" /> 
        </Menu> 
 
        <Frame NavigationUIVisibility="Hidden" Name="frmContent" Grid.Column="0" Grid.Row="1" Source="Page/Page1.xaml" /> 
          
        <telerik:RadTransitionControl Grid.Column="1" 
                                   Content="{Binding SelectedItem, ElementName=frmContent}" Duration="00:00:03" > 
            <telerik:RadTransitionControl.Transition> 
                <telerikTransitions:MotionBlurredZoomTransition /> 
            </telerik:RadTransitionControl.Transition> 
        </telerik:RadTransitionControl> 
          
    </Grid> 
Pana
Telerik team
 answered on 20 Jul 2010
1 answer
118 views
Hi,
Thanks for the wonderful chart control provided from telerik. Is there a feature like dragging the chart area and datapoints gets updated depending on the drag. I tried with RadDrapDropManager but could not.

Using RadDragDropManager, i should drop the drag. that should not be the case for me...

Scenario:
1. RadChart holding queue with 1000 data points.
2. But the current chart view shows only latest 10 points.
3. If drag the chart area to left/right, then data points must get updated. (this must depend on drag sensitivity).
4. This is some thing like playing the chart area w.r.t to datapoints in the queue.
5. Should have an event warning me that i am at point 0 and point 1000 on the graph. (start and end of the queue).

Thanks,
Lakshman
Velin
Telerik team
 answered on 19 Jul 2010
1 answer
102 views
Hi, 

I am getting an error when typing into the RadComboBox that states that it cant cast from type x to type y. The situation that we have is that the combo box is bound to a list of types that all implement a given interface but which do not necessarily share a common base type. The interface defines a property Description which is what we're actually binding to. If I use the combo box with the mouse and select from the list then all is fine, it is only when typing into the combo box that it blows up. Please see the attached stack trace for more info.

Thanks, Steve
Valeri Hristov
Telerik team
 answered on 19 Jul 2010
3 answers
148 views
Hello,

I have come across what I believe is a bug in the GridViewComboBoxColumn. The reason for this assumption is that I was able to take a working example of what I was trying to accomplish from this form (see http://www.telerik.com/community/forums/wpf/gridview/displaying-related-table-data.aspx for the attached working version) and reproduce the problem in my environment.

Let me stop to explain what it is I am trying to accomplish. The high level explanation is that I am trying to set the ItemSource property of the GridViewComboBoxColumn to the defaultview of a datatable I am operating on. The behavior is that no values are displayed in the column cells, but editing the column yields a combobox that is properly bound to the datatable.

This behavior can be reproduced with the following steps:

1) Grab the sample project that was provided by Pavel Pavlov of the Telerik team.
2) Convert the project to VS2010.
3) Run the project to make sure it is behaving as it should be.
4) Set the target framework to .NET framework 4.0 Client Profile.
5) Run the project to make sure it is behaving as it should be.
6) Remove all Telerik references.
7) Re-add Telerik references from RadControls for WPF 2010 SP2 (I have a trial license if that makes any difference; version number for assembies is 2010.1.603.35 if that helps).
8) Run the project. You will see that the TownID column is now full of blank cells.

Please let me know if this is a known issue and if/when you expect to be able to release a hotfix. Also, any workarounds you can think of that don't require me to rearchitecht all of my data storage objects would be appreciated.

Quick Start Notes:
    OS: Win XP SP3
    Application Type: WPF
    Target Framework: .Net Framework 4.0 Client Profile
    Language: C#.Net
    IDE: Visual Studio 2010
    Telerik Release Version: Q1 2010 SP2 (Trial License)
    My Telerik Assembly Version: 2010.1.603.35
    Sample (working) Telerik Assembly Version: 2010.1.309.35

Thank You,
Ryan Hansen


Pavel Pavlov
Telerik team
 answered on 19 Jul 2010
1 answer
367 views
I am using Visual studio 2010 and Telerik controls for WPF Q1 2010 version.
I am using nested radgridview (detailsview), checkbox has been placed in inner radgridview, i am trying to find out the checkbox but undable to do so.

How to find controls in nested radgridview

please see below my code.

Refer the attached image, in order to understand the problem.

<Grid>

               

        <telerik:RadGridView Grid.Row="1" Grid.Column="0" AutoGenerateColumns="False" ShowGroupPanel="False" Name="grdPendingOrderDetail">

            <telerik:RadGridView.Columns>

                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                <telerik:GridViewDataColumn Header="Customer Codes" DataMemberBinding="{Binding CustomerCodes}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn Header="Created On" DataMemberBinding="{Binding CreatedOn}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn Header="Modified On" DataMemberBinding="{Binding ModifiedOn}" ></telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn>

                    <telerik:GridViewDataColumn.CellTemplate>

                        <DataTemplate>

                            <Button Content="Resume" Click="Button_Click" Tag="{Binding CustomerCodes}"></Button>

                        </DataTemplate>

                    </telerik:GridViewDataColumn.CellTemplate>

                </telerik:GridViewDataColumn>

            </telerik:RadGridView.Columns>

            <telerik:RadGridView.RowDetailsTemplate>

                <DataTemplate>

                    <Grid>

                        <telerik:RadGridView AutoGenerateColumns="False" ItemsSource="{Binding PendingOrderCategories}" ShowGroupPanel="False" Name="grdPendingOrderCategory">

                            <telerik:RadGridView.Columns>

                                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                                <telerik:GridViewDataColumn Header="Category Name" DataMemberBinding="{Binding CategoryName}" ></telerik:GridViewDataColumn>

                            </telerik:RadGridView.Columns>

                            <telerik:RadGridView.RowDetailsTemplate>

                                <DataTemplate>

                                    <Grid>

                                        <telerik:RadGridView AutoGenerateColumns="False" IsFilteringAllowed="False" ShowGroupPanel="False" Name="grdPendingOrder" ItemsSource="{Binding PendingOrders}">

                                            <telerik:RadGridView.Columns>

                                                <telerik:GridViewToggleRowDetailsColumn></telerik:GridViewToggleRowDetailsColumn>

                                                <telerik:GridViewSelectColumn IsGroupable="True" ></telerik:GridViewSelectColumn>

                                                <telerik:GridViewDataColumn Header="Sales Order ID" DataMemberBinding="{Binding SalesOrderID}" ></telerik:GridViewDataColumn>

                                            </telerik:RadGridView.Columns>

                                            <telerik:RadGridView.RowDetailsTemplate>

                                                <DataTemplate>

                                                    <Grid>

                                                        <telerik:RadGridView AutoGenerateColumns="False" Name="grdOrderDetail" ItemsSource="{Binding OrderDetails}">

                                                            <telerik:RadGridView.Columns>

                                                                <telerik:GridViewDataColumn Header="Product Code" DataMemberBinding="{Binding ProductCode}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Customer Code" DataMemberBinding="{Binding CustomerCode}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Customer Name" DataMemberBinding="{Binding CustomerName}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Price" DataMemberBinding="{Binding Price}" ></telerik:GridViewDataColumn>

                                                                <telerik:GridViewDataColumn Header="Quantity" DataMemberBinding="{Binding OrderQty}" ></telerik:GridViewDataColumn>

                                                            </telerik:RadGridView.Columns>

                                                        </telerik:RadGridView>

                                                    </Grid>

                                                </DataTemplate>

                                            </telerik:RadGridView.RowDetailsTemplate>

                                        </telerik:RadGridView>

                                    </Grid>

                                </DataTemplate>

                            </telerik:RadGridView.RowDetailsTemplate>

 

                        </telerik:RadGridView>

                    </Grid>

                </DataTemplate>

            </telerik:RadGridView.RowDetailsTemplate>

        </telerik:RadGridView>

    </Grid>

 

private void Button_Click(object sender, RoutedEventArgs e)

        {

 

            Button btn = sender as Button;

            GridViewRow row = btn.ParentOfType<GridViewRow>();  //Row with CustomerName

            RadGridView grd = row.ChildrenOfType<RadGridView>()[0]; //Grid with category name

            GridViewDataControl grdVDC = grd as GridViewDataControl;

            string salesOrderIDs = "";

            foreach (GridViewRow rw in grdVDC.ChildrenOfType<GridViewRow>())  //foreach category name

            {

                RadGridView grdInner;

                GridViewDataControl grdVDCInner;               

                if (!(rw is GridViewNewRow))

                {

                    grdInner = rw.ChildrenOfType<RadGridView>()[0];

                    grdVDCInner = grdInner as GridViewDataControl;

                    foreach (GridViewRow rwInner in grdVDCInner.ChildrenOfType<GridViewRow>())  // foreach order in one category                

                    {

                        if (!(rwInner is GridViewNewRow))

                        {

                            bool select = (bool)((System.Windows.Controls.CheckBox)rwInner.Cells[1].Content).IsChecked;

                            if (select)

                            {

                                salesOrderIDs += ((System.Windows.Controls.TextBlock)rwInner.Cells[2].Content).Text;

                                salesOrderIDs += ",";

                                break;

                            }

                        }

                    }

                }

            }

        }

 

 

Yavor Georgiev
Telerik team
 answered on 19 Jul 2010
2 answers
162 views
Hello Telerik Team,

I Converted code VB to C#. In VB it is alreday tasted & worked perfectly but in C# Rebind is not working properly.

While loading window am setting like below:

  rgvSet.ItemsSource = DataModule.objSets;
  rgvOrders.ItemsSource = DataModule.objOrderList;
  rgvTour.ItemsSource = DataModule.objTourList;
  rgvTruck.ItemsSource = (from p in DataModule.objTruckList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTruck>();
  rgvTrailer.ItemsSource = (from p in DataModule.objTrailerList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsTrailer>();
        rgvDriver.ItemsSource = (from p in DataModule.objDriverList where p.Status == DataModule.Cons_Status_Available select p).ToList<clsDriver>();

"rgv... " are RadgridView and all List are ObservableCollection. After doing such operation adding/removing/updating in collection am rebinding appropriate grid. Grid which having itemsource as LINQ query will not Rebind but Grid which have collection as Itemsource will rebind correctly.

What could be a reason? any idea?

Thanks...!!!
Snehal
Top achievements
Rank 1
 answered on 19 Jul 2010
5 answers
1.0K+ views
Hi,
In our application we have a requirement in which we want to show a tree hierarchy in expanded state, we should not able to collapse it and no expander be shown.
How can we do it using RadTreeView ?

Regards,
Balaram Barange


Tina Stancheva
Telerik team
 answered on 19 Jul 2010
1 answer
95 views
Hello!
Assuming that I have 6 different SeriesMapping in a chart but in the chart's legend I want to show only 4 of them how should I do this??
I've tried to set their LegendLabel to null but this only puts the default "Series x" label in Legend which is not the desired behavior.

Thank you! 
Roxana
RoxanaC
Top achievements
Rank 1
 answered on 19 Jul 2010
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
Rating
SplashScreen
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
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?