Telerik Forums
UI for WPF Forum
1 answer
211 views
I'm using RadGridView with a GridViewDataColumn defined with custom CellTemplate and CellEditTemplate defined. What I would like to do now is affect something defined in my DataTemplate for the CellTemplate based on whether it's row is selected or not.

More specifically in my example I have a DataTemplate that contains a TextBlock with TextTrimming and TextWrapping set up to show the text as a single line with character ellipsis when there is overflow. What I would like to do is display the text with TextWrapping turned on and without TextTrimming which I could do various ways if I can access the selection state of the parent row for that cell.

<telerik:GridViewDataColumn.CellTemplate>
    <DataTemplate>
        <TextBlock Text="{Binding Note}"
               TextWrapping="NoWrap"
               TextTrimming="CharacterEllipsis" />
    </DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>

What's the best way for me to accomplish this with the RadGridView control? Is there an inherited attached property I can use or will a relative binding work. I would prefer doing this through a defined style with triggers on my TextBlock if possible to avoid writing value converters.
Jeff
Top achievements
Rank 1
 answered on 26 Sep 2012
1 answer
171 views
Can I construct a bar chart, stacked, that looks like the following?

http://www.highcharts.com/demo/bar-negative-stack
Petar Kirov
Telerik team
 answered on 26 Sep 2012
1 answer
125 views
Hey
I think, the tile tells all.
I don't want the enduser be able to enter a negative price. - How can I do this!?

Thx for any tipp!
Tina Stancheva
Telerik team
 answered on 26 Sep 2012
7 answers
214 views
Hello,

I've got a few questions regarding the RadRichTextBox.

1. How can I make the IBeam cursor display only within the editable area of the text box, but not on the scroll bars as well?

2. I see that the rich text box doesn't come with a default Copy/Cut/Paste contextual menu. How would I go about implementing a standard contextual menu with working cut/copy/paste functions, and how would I display it.

If you are kind to answer these questions, please tell me how to solve the problems using C# code, and not XAML.

Thank you!
Vasil
Telerik team
 answered on 26 Sep 2012
5 answers
201 views
Hello there,

I am trying to implement cusom tooltips which can get focus and are interactive (they have a scrollbar for example).
Therefore I registered to the ToolTipOpening event of some WPF Ellipse objects (the ToolTip property is just set to some sensless string to force WPF to fire the event). In the event handler I just open a Popup with a BooleanAnimationUsingKeyFrames animation attatched which closes the popup after some seconds if it doesn't get focus.
This works very well, but when I tried the same with MapPolyLine it didn't - i.e. the event is not firing.

So my question is, if there is any event which is fired when a tooltip is requested.

Best regards,
Markus
Andrey
Telerik team
 answered on 26 Sep 2012
1 answer
130 views
I want to draw a simple ellipse in radmap 
with width and height 
20000,
but incorrectly like 
an elongated oval is drawn Why do this?
Other shape like rectangle has same problem 
too.
I add a simple radmap:

       <telerik:RadMap x:Name="radMap">
            <telerik:RadMap.Provider>
                <telerik:EmptyProvider />
            </telerik:RadMap.Provider>
            <telerik:InformationLayer x:Name="informationLayer">
            </telerik:InformationLayer>
        </telerik:RadMap> In code behind:
            var newShape = new MapEllipse()
            {
                Location = new Location()
                {
                    Latitude = 50,
                    Longitude = -111,
                },
                Fill = new SolidColorBrush(Color.FromArgb (0xFF, 0xF0, 0xB5, 0x85)),
                Width = 20000,
                Height = 20000
            };
            this.informationLayer.Items.Add(newShape);
            radMap.Center = new Location( newShape.Location.Latitude, newShape.Location.Longitude);
Andrey
Telerik team
 answered on 26 Sep 2012
3 answers
212 views
Hi!
I have the following column in a grid. I want the editing mode for the corresponding cells to be activated when the user clicks on cell, which is occupied by my custom control.

How can I do that?

<telerik:GridViewDataColumn>
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
        <my:ReferencesEditor References="{Binding Path=Answer.References}" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
        <my:ReferencesEditor References="{Binding Path=Answer.References}" EditMode="true" />
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>
Vlad
Telerik team
 answered on 26 Sep 2012
1 answer
97 views
Hello,

since Version 2012 Q1 the selected Row Syle is gray instead of orange when the GridView lose the focus.
How can I change this?

Thanks.
Yordanka
Telerik team
 answered on 26 Sep 2012
0 answers
100 views
Hi
I have a Radgrid that one column is a button. I make it in xaml. but when i bind a query to datagrid like: radGridTest.ItemsSource = query; data does not appear but when i bind it to a simple radgrid (which has no button column) every thing goes fine. the way i make the button column is here:
...
                   <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate >
                            <StackPanel Orientation="Horizontal">
                                <Button Width="25" Height="25" Background="Red"/>
                            </StackPanel>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
...
Raman
Top achievements
Rank 1
 asked on 26 Sep 2012
5 answers
335 views
Hello Telerik Team,

is it possible to map more than one series to an Y Axis?

I need to display two units (Temp and Humidity) from various measurement devices in one graph, splitting the series into two Y-Axis.

Is this possible with WPF RadChart? I could only find the example where each series has it's own Y-Axis

best regards

Ulrik
Yavor
Telerik team
 answered on 26 Sep 2012
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
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?