Telerik Forums
UI for WPF Forum
10 answers
271 views
I want to get selected span ID, i m getting selected span text using
radRichTextBox1.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text;
.But need a method from which i could get selected span ID.

Regards
Faheem Khatri
Ivailo Karamanolev
Telerik team
 answered on 25 Jul 2011
1 answer
129 views
Hi,

Just wanted to mention that the formatting on the Localization help page is a little funky:

http://www.telerik.com/help/wpf/radtimebar-localization.html

This also spreads across to related product lines (for example, Silverlight).

Kind regards,
Dave.
Evgenia
Telerik team
 answered on 25 Jul 2011
1 answer
226 views
Hi,

I'm implementing keyboard navigation in an application.  When I tab into a RadRichTextBox and press tab again to skip to the next control a tab character gets added to the RadRichTextBox instead.  Now I understand that the tab command in the Rich Text Editor means something other than to skip to the next control but I was wondering if it would be possible to 1) disable this behaviour and skip to the next control or 2) is there another keyboard command that would "tab out" of the Rich Text Box and skip to the next control?

Thanks,

-- Joel
Iva Toteva
Telerik team
 answered on 25 Jul 2011
2 answers
390 views
Hi,

I have an application that when the user close the window, I'd like to do some time consuming task (update database). At the same time, I want to show busy indicator. When the task is done, close the window as per normal. Here's the sample code
public partial class MainWindow
    {
        public MainWindow()
        {
            InitializeComponent();
            Closing += MainWindowClosing;
        }
 
        void MainWindowClosing(object sender, CancelEventArgs e)
        {
            e.Cancel = true;
            busyIndicator.IsBusy = true;
            var worker = new BackgroundWorker();
            worker.DoWork += (s, args) => Thread.Sleep(TimeSpan.FromSeconds(3));//just for testing
            worker.RunWorkerCompleted += (s, args) =>
                                             {
                                                 busyIndicator.IsBusy = false;
                                                 e.Cancel = false;
                                             };
            worker.RunWorkerAsync();
 
        }
    }

but it's not working. The "e.Cancel = false" doesn't close the window. Can anyone help? Where did I do wrong?

Thanks!
Konstantina
Telerik team
 answered on 25 Jul 2011
1 answer
224 views
I am trying to create a chart very similar to the Live Data chart in the examples.  When my timer runs the data is updated but not shown on the chart.  However, if I break into the timer event and look at some values in the debugger and then eventually tell the app to start running again then I sometimes will see some of the data drawn on the chart but it still does not update in real time.

We are using the latest WPF controls.

PS:  Apparently we can longer attach files?

A sample project can be found here:   sample project
Ves
Telerik team
 answered on 25 Jul 2011
3 answers
143 views
I have a RadGridView that is part of a datatemplate that I am creating at runtime via c#. All is good if I AutoGenerate the columns. If I try to create the GridViewDataColumns I have no way of adding them. Seems the Columns property is not exposed as a dependency property. Can you please look into this and suggest a work around or possible solution? In my example, RadGridView.Columns does not appear to be accessible.
FrameworkElementFactory radGridView = new FrameworkElementFactory(typeof(RadGridView));
radGridView.SetValue(RadGridView.ShowGroupPanelProperty,false);
radGridView.SetValue(RadGridView.ShowInsertRowProperty, false);
 
Telerik.Windows.Controls.GridViewColumnCollection colCollection = new Telerik.Windows.Controls.GridViewColumnCollection();
 
GridViewDataColumn dc = new GridViewDataColumn();
dc.Header = "test"
 
colCollection.Add(dc);
radGridView.SetValue(RadGridView.Columns,colCollection);

Ivan Ivanov
Telerik team
 answered on 25 Jul 2011
1 answer
129 views
How could I make the RadRadioButton show as the tranditional radio button? I don't want to use the RadioButton since I need to use the ICommand feature
Dani
Telerik team
 answered on 25 Jul 2011
3 answers
331 views
I'd like to have the footer cells' content be horizontally centered within the cells.  How can this be achieved?

I've tried the following:

<telerik:GridViewDataColumn DataMemberBinding="{Binding HubAssemblyNumber}"
                            FooterCellStyle="{StaticResource GridViewFooterCellStyle1}">
    <telerik:GridViewDataColumn.Header>
        <TextBlock Style="{StaticResource centeredHeaderTextBoxStyle}">
            <TextBlock.Inlines>
                <Run>Assembly</Run>
                <LineBreak />
                <Run>Number</Run>
            </TextBlock.Inlines>
        </TextBlock>
    </telerik:GridViewDataColumn.Header>
    <telerik:GridViewDataColumn.AggregateFunctions>
        <telerik:CountFunction Caption="Count: "
                                ResultFormatString="{StaticResource commaFormat}" />
    </telerik:GridViewDataColumn.AggregateFunctions>
 
    <telerik:GridViewDataColumn.Footer>
        <telerik:AggregateResultsList ItemsSource="{Binding}"
                                        HorizontalAlignment="Center"
                                        HorizontalContentAlignment="Center" >
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <TextBlock HorizontalAlignment="Center"
                                Text="{Binding FormattedValue}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
            <ItemsControl.ItemsPanel>
                <ItemsPanelTemplate>
                    <Grid HorizontalAlignment="Center" />
                </ItemsPanelTemplate>
            </ItemsControl.ItemsPanel>
        </telerik:AggregateResultsList>
    </telerik:GridViewDataColumn.Footer>
 
</telerik:GridViewDataColumn>

And I've tried it both with and without a custom footer style:

<Style x:Key="GridViewFooterCellStyle1"
        TargetType="{x:Type telerik:GridViewFooterCell}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type telerik:GridViewFooterCell}">
                <Border x:Name="PART_FooterCellBorder"
                    <ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}"
                                        Content="{TemplateBinding Content}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" />
                </Border>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
    <Setter Property="HorizontalContentAlignment"
            Value="Center" />
    <Setter Property="HorizontalAlignment"
            Value="Stretch" />
</Style>

Moreover, I've tweaked the various Horizontal[Content]Alignment properties.  But so far my fiddling hasn't yielded the desired behavior.

I appreciate the help.  Thanks!
Miles
Top achievements
Rank 1
 answered on 25 Jul 2011
1 answer
100 views
Hi,

we updated from Q1 to Q2 .dlls and experienced a major problem with the grids.
Here the description:
We have a Grid with bound Itemssource etc. A very normal scenario.

When the user tabs through the RadRibbon, the Gridview seems to break the binding.

This can be best seen in the sample projects I will attach. To see the issue:
UPDATE: Where can I attach .zip files???

On the main tab enter a value in the textbox -> updates all the values in the grid as intended.
Now, switch to the empty tab, and then switch back and enter values again -> does not work anymore

With the Q1 .dlls it works, for the Q2 it does not.

Maya
Telerik team
 answered on 25 Jul 2011
1 answer
174 views
I'm investigating RadControls for WPF at the moment, and I'm having a bit of trouble with the behavior of a modal RadWindow.
With normal modal WPF windows, if you click on the owner window, you get an alert noise and the child modal window flashes to draw your attention.  With RadWindow I only get the alert noise.

I couldn't find this behavior built in to RadWindow, so I was wondering if there's some event on either the owner or child windows I could listen to and manually trigger an animation?

Thanks.
Konstantina
Telerik team
 answered on 25 Jul 2011
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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?