Telerik Forums
UI for WPF Forum
0 answers
155 views
Hi,
I want to get the checkbox and combobox controls within a RadGridView and want to modify a column in the same row. How it can be achieved?

Problem 1:
Want to save user name in a grid column within same row when I checked the checkbox value to true.
Problem 2:
Want to filter or rebind the combobox when a value is selected in another adjacent combobox as we have in Country and city relation.

Let me know if further explanation is required.

Thanks

Sajid
Top achievements
Rank 1
 asked on 27 Oct 2011
7 answers
305 views
Hi!

I am inserting new rows with the INSERT key. Once a row was inserted, it can be edited by the user.
I want to delete the newly inserted row, if the user cancels the edit mode with the ESC key. 

What is the easiest way to achieve this?

Thanks and regards,

Franziska
Franziska
Top achievements
Rank 1
 answered on 27 Oct 2011
1 answer
131 views
Dear telerik,
I am using radrichtext box. I am trying to set fontsize, font-family through style but it is not working.
<my:RadRichTextBox x:Name="txtChat">
    <my:RadRichTextBox.Resources>
        <Style TargetType="my:RadRichTextBox">
            <Setter Property="FontSize" Value="32"></Setter>
            <Setter Property="Height" Value="100"></Setter>
        </Style>
    </my:RadRichTextBox.Resources>
</my:RadRichTextBox>

Would you please tell me how can I set fontsize and font-family using style.

Regards
Animesh



Animesh Dey
Top achievements
Rank 2
 answered on 27 Oct 2011
4 answers
159 views
Hi,

I expect the SelectionEnd and SelectionStart values to stay within the bounds of the Maximum and Minimum but they don't.  I created a small sample app that demonstrates this behavior.

View:
<Grid>
    <StackPanel>        
        <StackPanel Orientation="Horizontal" Height="50">
            <Label Content="Upper Thumb" />
            <TextBox Width="300" Height="35" Text="{Binding Path=SelectionEnd}" />
        </StackPanel>
        <telerik:RadSlider Name="radSlider"
                           VerticalAlignment="top"
                           Width="25"
                           Height="200"
                           Margin="0 10 5 0"
                           IsSelectionRangeEnabled="True"
                           TickPlacement="None"
                           Minimum="0.0"
                           Maximum="1.0"
                           Orientation="Vertical"
                           SelectionStart="{Binding Path=SelectionStart, Mode=TwoWay, FallbackValue=0.25}"
                           SelectionEnd="{Binding Path=SelectionEnd, Mode=TwoWay, FallbackValue=0.5}"
                           LargeChange="0.05"
                           SmallChange="0.05" />
        <StackPanel Orientation="Horizontal" Height="50">
            <Label Content="Lower Thumb" />
            <TextBox Width="300"  Height="35" Text="{Binding Path=SelectionStart}" />
        </StackPanel>
    </StackPanel>
</Grid>

Code behind:
public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        var vm = new SliderViewModel();
        DataContext = vm;
    }
}

ViewModel:
public class SliderViewModel : INotifyPropertyChanged
{
    public SliderViewModel()
    {
        _selectionStart = 0.25;
        _selectionEnd = 0.5;
    }
    private double _selectionStart;
    public double SelectionStart
    {
        get
        {
            return _selectionStart;
        }
        set
        {
            if (_selectionStart != value)
            {
                _selectionStart = value;
                OnPropertyChanged("SelectionStart");
            }
        }
    }
    private double _selectionEnd;
    public double SelectionEnd
    {
        get
        {
            return _selectionEnd;
        }
        set
        {
            if (_selectionEnd != value)
            {
                _selectionEnd = value;
                OnPropertyChanged("SelectionEnd");
            }
        }
    }
    public event PropertyChangedEventHandler PropertyChanged;
    protected virtual void OnPropertyChanged(String propertyName)
    {
        var handler = PropertyChanged;
        if (handler != null)
        {
            handler(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}

Am I missing a property on the slider that will prevent this behavior or do I have to catch it manually?

Thanks,
Josh
Petar Mladenov
Telerik team
 answered on 27 Oct 2011
1 answer
162 views
Hello

I seem to have found an issue with the ScrollIntoView method of the RadGridView. If we take a well populated grid so that it is necessary to scroll to reach the bottom, with the entries grouped in various groups.
When modifying an item at the bottom of the grid, when the grid refreshes, it scrolls to a point above the selected item, the height above where it should be seems to coincide exactly with the combined height of each of the grouping rows.

Thanks
Nedyalko Nikolov
Telerik team
 answered on 27 Oct 2011
3 answers
784 views
Hi Telerik,

I am working with richtextbox. I am facing problem when I add text from code behind.
1. The richtextbox showing no text.
2. When I try to select text "Object reference not set" occur some time. Other time, after selecting the text become visible.
3. An additional enter is showing at the top of the richtextbox.

<Window x:Class="Imagine.TelerickTest.RichTextBox.WithoutMVVM"
        xmlns:my="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Documents"
        xmlns:radDoc ="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"
        Title="WithoutMVVM" Height="500" Width="500">
    <DockPanel>
        <StackPanel DockPanel.Dock="Top">
            <TextBlock Text="Input"></TextBlock>
            <TextBox x:Name="txtInput" ></TextBox>
        </StackPanel>
        <Button x:Name="btnClick" Content="Click" Click="btnClick_Click" DockPanel.Dock="Top"></Button>
        <my:RadRichTextBox x:Name="txtMessage" LayoutMode="Flow"></my:RadRichTextBox>
    </DockPanel>
</Window>

public WithoutMVVM()
        {
            InitializeComponent();
        }
        private void btnClick_Click(object sender, RoutedEventArgs e)
        {
            var span = new Telerik.Windows.Documents.Model.Span(txtInput.Text);
            var p = new Telerik.Windows.Documents.Model.Paragraph();
            p.Inlines.Add(span);
 
            var section = new Telerik.Windows.Documents.Model.Section();
            section.Blocks.Add(p);
 
            txtMessage.Document.Sections.Add(section);
        }

Regards

Animesh 
Mihail
Telerik team
 answered on 27 Oct 2011
7 answers
332 views
I have setup in my code a RoutedCommand for escape key:

  public static RoutedCommand CloseFormCommand = new RoutedCommand();
  CloseFormCommand.InputGestures.Add(new KeyGesture(Key.Escape));

This works fine when the keyboard focus is on a control like a textbox in the form. But as soon as I click on the Grid and it is set to Edit mode pressing the Escape key will just finish the edit mode and it won't call the command unless I set the cursor back to the textbox by mouse and press the Escape key. How can I fix this problem?
Maya
Telerik team
 answered on 27 Oct 2011
4 answers
237 views
I am using the grid as a read only display of data.

I would like to hide the selection row (highlighted row) in the grid.

I tried CanSelect = false but the grid still displays a highlighted row...

Thanks,

Michel
Michel
Top achievements
Rank 1
 answered on 26 Oct 2011
1 answer
289 views
Hello!
I have a very poor performance when EnableRowVirtualization="True" and no rowHeight is set.
If I set e.g. Row.Height = 90 then everything is okay.

Any Ideas?
Andrew
Top achievements
Rank 1
 answered on 26 Oct 2011
10 answers
359 views
Thank you for the new RadRichTextBox.
I installed the new Q1 for 2011 and tried the Telerik Editor example.
Works fine, but... when I try to open or save documents as .docx (or as richtextformat) I get a messagebox: "Unsupported File format".

Office 2010 (Norwegian) is installed.
Boby
Telerik team
 answered on 26 Oct 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?