Telerik Forums
UI for WPF Forum
16 answers
503 views

Hi,

I try drag & drop function from gridview1 to gridview2 in wpf application. but i don't know
please help me..

Thanks.

Yoan
Telerik team
 answered on 14 Aug 2013
8 answers
506 views
Hi,

Is it possible to change the background color for special weekdays (for example saturday and sunday) in timeline-view-modus?
Or (as alternative) is it possible to change the column width or visibility for special weekdays. In my scenario I must differentiate between working days and weekend days.

Thanks in advance,

Best regards,
Stefan
Yana
Telerik team
 answered on 14 Aug 2013
1 answer
120 views
I am trying to create a couple connectors automatically when a shape is dragged onto the diagram. I am formatting them to be green and red and have a label that says True and False, that's not an issue. I basically want the True connector to attach to the "Right" connecter at the source and NOT connect to a target but just have the connector go out to the right by 20 pixels or something. This is simply creating a "stub" for the user to route to their next target. 

For this post, we can only talk about the True connector. The problem I'm having is that I want to set the connectors EndPoint just to the right of the "Right" Connector by 20 pixels BUT the connectors AbsolutePosition is returning 0,0. I'm using the ShapeDeserialized event which might be the problem, as the shape is probably not actually on the grid yet.

Here is the line of code I'm talking about:
    tc.EndPoint = new Point(e.Shape.Connectors["Right"].AbsolutePosition.X + 20, e.Shape.Connectors["Right"].AbsolutePosition.Y);

Any suggestions are appreciated.

private void diagram_ShapeDeserialized_1(object sender, Telerik.Windows.Controls.Diagrams.ShapeSerializationRoutedEventArgs e)
{
     
    if(e.Shape.OutgoingLinks.Count() == 0)
    {
        CreateTrueConnection(e);
        CreateFalseConnection(e);
    }
 
    if (e.Shape is IFlowchartStepUI)           
        ((IFlowchartStepUI)e.Shape).LoadStep(_stepsData, e.Shape.Id);
                 
}
 
private void CreateTrueConnection(Telerik.Windows.Controls.Diagrams.ShapeSerializationRoutedEventArgs e)
{
    RadDiagramConnection tc = new RadDiagramConnection();
    tc.Stroke = Brushes.Green;
    tc.StrokeThickness = 2;
 
    // Add the "True" Label
    var lbltrue = new System.Windows.Controls.Label();
    lbltrue.Style = this.FindResource("TrueLabelStyle") as Style;
    lbltrue.Content = "True";
    tc.Content = lbltrue;
 
    //tc.Position = new Point(750, 150);
    tc.SourceConnectorPosition = Telerik.Windows.Diagrams.Core.ConnectorPosition.Right;
    //tc.TargetConnectorPosition = Telerik.Windows.Diagrams.Core.ConnectorPosition.Auto;
    //tc.SourceCapSize = new System.Windows.Size(7, 7);
    //tc.TargetCapSize = new System.Windows.Size(7, 7);
    tc.ConnectionType = Telerik.Windows.Diagrams.Core.ConnectionType.Polyline;
    //tc.StartPoint = new Point(750, 150);
    Console.WriteLine(e.Shape.Connectors["Right"].AbsolutePosition.X.ToString());
    Console.WriteLine(e.Shape.Connectors["Right"].AbsolutePosition.Y.ToString());
    tc.EndPoint = new Point(e.Shape.Connectors["Right"].AbsolutePosition.X + 20, e.Shape.Connectors["Right"].AbsolutePosition.Y);
    tc.TargetCapType = Telerik.Windows.Diagrams.Core.CapType.Arrow2Filled;           
    tc.Source = e.Shape;
    this.diagram.AddConnection(tc);
}
Zarko
Telerik team
 answered on 14 Aug 2013
3 answers
586 views
Hi,
I'm using dynamically generated data for PropertyGrid, bound to property definitions.
What I want to do is to manually add a button control in the PropertyGrid.
How can I manually add a control in code-behind?
Maya
Telerik team
 answered on 14 Aug 2013
0 answers
226 views

hi

i'm using Radgridview , My scenario is i have totals in one row  i need to enter some numbers in next row cells ,when ever i entered number ,based on that number it  calculate % of above totals and the calculated figure should be displayed in next row ..... how to implement this cell triggers using C# plz help me

If you see below attachment u can understand .. if i enter 10 in cell then the calculated total figure should to next row cells

thanks in advance 

Pranavi
Top achievements
Rank 1
 asked on 14 Aug 2013
3 answers
225 views
Hi,

I am trying to create email sender using RichTextBox to allow user write email text with Mail Merge.  I have few extra fields like Mail To and Subject where I want user to be able to enter Mail Merge fields.  In other word, I want to have one RadRichTextBoxRibbonUI

control, but several RichTextBox controls.  For example, when my focus is in Subject field, I should be able to add a Mail Merge to that control. When my focus is in main body, all mail merge fields should go there.  Of course, when I scan through items, both should change.

If someone can attach a sample program, it would be best.

Thank you in advance.

Michael

Boby
Telerik team
 answered on 14 Aug 2013
1 answer
268 views
We're seeing an issue where if a user frantically resizes a windows containing a grid with editable controls within in then the repainting isn't working correctly.

What happens is that some of the edit boxes within the row vanish. If you continue to resize the windows such that you cover up the problematic row and then uncover it they boxes will reappear. This only seems to affect edit boxes, as opposed to labels, for example.

We're using version 2012.2.912.40 of the controls. I've rebuilt the application to use the 2013.2.0724 version and still see the problem
Yordanka
Telerik team
 answered on 14 Aug 2013
0 answers
100 views
Hello,

I have a RadGridView and i need to implement a functionality that allows me to paste the selection from excel to my gridview depending on the name of the header.

the problem that i have is that the user can write the columns in excel as he wants, is not necesary for him to write his data Columns in the same order of the RadGridView Columns. Once the user paste his data in the radgridview the data must be pasted in the right column depending on the title of the column from excel.

Thanks in advance.
Diego
Top achievements
Rank 1
 asked on 14 Aug 2013
0 answers
93 views

Hi,

I'm using version 2013.2.611.45, i have a similar problem, My grid contains both horizontal and vertical scroll bars, so when the page is loaded only few columns are visible and the scroll is available for browsing others columns, when the OnRowLoaded event is fired, the e.Row.Cells contains only the visible part of cells, and i cannot access to others. Can you please look at this problem ??
Thanks.
Youness
Top achievements
Rank 1
 asked on 13 Aug 2013
11 answers
161 views
Hi, we just updated our WPF project from RadControls for WPF v2012.2.725.40 to v2012.3.112.9.40.  Now we have a problem in one of our forms where the RadGridView RowLoaded event is fired when row.Cells is empty.  In the previous version of the RadControls for WPF, the cells count would reflect the number of columns in the grid.  Is there another handler we should have been using?  Our goal is to change the text of a RadButton in one of the columns (which is contained in a telerik:GridViewColumn.CellTemplate) based on the value of a property in the bound object, so after each row is loaded we check that property and adjust the button text in cell[5].  After our Q3 update it appears the cells are not loaded when RowLoaded is called.   Thank you in advance
private void grid_RowLoaded(object sender, RowLoadedEventArgs e)
{
    if (e.Row is GridViewRow && !(e.Row is GridViewNewRow))
    {
        // at this point e.Row.Cells.Count is 0
    }
}

Shaun
Youness
Top achievements
Rank 1
 answered on 13 Aug 2013
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
InlineAIAssistant
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?