Telerik Forums
UI for WPF Forum
1 answer
161 views
Hi I am trying to create teleric propertygrid-based user control that contains a multiline textbox, but I can't configure data-bindig.
exactly i can't call set for property
public UserControl1()
   {
       InitializeComponent();
       this.DataContext = this;
       Rad.Item = new object() { };
   }
   public string longStringVal_
   {
       get
       {
           return (string)GetValue(longStringVal);
       }
       set
       {
           SetValue(longStringVal, value);
       }
   }
public static readonly DependencyProperty longStringVal =
   DependencyProperty.Register(
       "longStringVal_",
       typeof(string),
       typeof(TextBox)
   );

<Grid>
    <telerik:RadPropertyGrid x:Name="Rad" >
        <telerik:RadPropertyGrid.PropertyDefinitions>
            <telerik:PropertyDefinition DisplayName="LongStr" OrderIndex="-1" >
                <telerik:PropertyDefinition.EditorTemplate>
                    <DataTemplate>
                        <TextBox MinLines="3" MaxLines="3" 
                                 TextWrapping="Wrap"
                                 VerticalScrollBarVisibility="Visible"
                                 AcceptsReturn="true"
                                 x:Name="longStringValue"
                                 Text="{Binding Path = longStringVal_, Mode=TwoWay}"                                    
                                 />
                    </DataTemplate>
                </telerik:PropertyDefinition.EditorTemplate>
            </telerik:PropertyDefinition>
          </telerik:RadPropertyGrid.PropertyDefinitions>
    </telerik:RadPropertyGrid>
</Grid>
Any help is much appreciated!

Ivan Ivanov
Telerik team
 answered on 18 Jun 2013
2 answers
109 views
I am using an editable RadGridView to present a collection of items of a class, which overrides the GetHashCode method in a way that hash codes are not unique. The problem is that in such a case changing property values from code is not reflected in grid cells. The problem is gone when hash codes are unique. 

I found a forum post from 2011 which says that GridView does not support items with non-unique hash codes.
My question is: Has it been fixed already? Is it planned to be fixed?
I perceive it as a bug, having in mind a rule that equal items have the same hashes, but equal hashes don't determine that objects are the same. I think that the grid should handle items with the same hash code properly.

---------------------------------------------------------------------------------------------------------

Some more details about my problem:

I simplified my class to the following one:
public class Entry : PropertyChangedBase
{
    private string name;
 
    public string Name
    {
        get
        {
            return this.name;
        }
        set
        {
            this.name = value;
            this.NotifyOfPropertyChange(() => this.Name);
 
            this.description = "new content of a description cell";
            this.NotifyOfPropertyChange(() => this.Description);
        }
    }
 
    private string description;
 
    public string Description
    {
        get
        {
            return this.description;
        }
        set
        {
            this.description = value;
            this.NotifyOfPropertyChange(() => this.Description);
        }
    }
 
    public override int GetHashCode()
    {
        return 145;
    }
}

So behaviour of this class is the following:
- changing the Name column should also change the Description column
- hashcodes for multiple items may be the same

However, a grid which is bound to a collection of such items doesn't work as expected. After editing a Name column, the Description property gets updated, but the change is not visible in the grid. The Description cell gets updated only when I click on the cell and open its editor.
Paweł Polaczyk
Top achievements
Rank 1
 answered on 18 Jun 2013
1 answer
126 views
I use version: 2012_3_1129

There is an issue with docking control on 2 monitors. I have RadPane docked at the bottom and I turn on "Auto hide" option, so this pane hides.
The issue occurs when I my application window is wider than my first monitor and more than 50% is on the first monitor. In this case when I want to show my pane (docked bottom) which is hidden than it appears only on the first monitor and the part which should be present on the second monitor is not visible (right "x" button is not visible on that pane).
Georgi
Telerik team
 answered on 18 Jun 2013
6 answers
513 views
Hi There,

we dont want to use the below features of RadMaskedNumericInput

if we enter some digits in middle of the numeric value, the right side digits are overriding(in our case it should not override and should not allow the user to type any thing but to change the digit he can select the required digit/range and type to change)

Is it possible to change this behavior by overriding any thing ?

Regards,
Srinivas.


Ravi
Top achievements
Rank 1
 answered on 18 Jun 2013
1 answer
148 views
Hi all,
i'm trying to custom style my ScheduleView after migrating from Scheduler, its suppose to look the same as the Scheduler did(pictures attached).
I tried taking an already made Theme from your Themes.Implicit folder but i can't find the right parts to change, i need pointers to the right parts(their names/their styles names) in order to modify it properly(the file is huge and i can't find anything in there).

Best Regards,
Jonathan Bacalo
Masha
Telerik team
 answered on 18 Jun 2013
0 answers
98 views
Hi everyone,

I want to fill programmatically a WPF RadGridView control cell by cell.
How can I do it ?
I do not want to bind the RadGridView to a data source.

Any help will be greatly appreciated.
Pascal GUERY
Top achievements
Rank 1
 asked on 17 Jun 2013
1 answer
96 views
MS Word currently have this.
  • final
  • final:show markup
  • origal
  • original:showmarkup


i want to perform changes without seeing the markup first. is it also possible in radrichtextbox ?
Boby
Telerik team
 answered on 17 Jun 2013
1 answer
131 views
Hi,

I'm implemented NumericUpDown in ScrollViewer after changing value with mouse wheel ScrollViewer Scrolled.

Thanks.
Kalin
Telerik team
 answered on 17 Jun 2013
1 answer
150 views
By default the color is red:
http://www.telerik.com/help/wpf/media/raddiagram-features-align-snaptoitems.png

How can I change it? Which style is responsible?
Petar Mladenov
Telerik team
 answered on 17 Jun 2013
2 answers
284 views
I have a gridview that is built from a collection of records. I set the datatype of each column, and I can confirm that the datatype is correct in the gridview itself (by checking in debug). That being said, when I sort on certain numeric type columns - the grid is treating it as a string. Am I missing some kind of property? Here is my code. 

var columns = mainViewModel.Records.First()
                .Properties
                .Select((x, i) => new { Name = x.Name, DataType = x.DataType, Index = i })
                .ToArray();
 
 
            foreach (var column in columns)
            {
                var binding = new Binding(string.Format("Properties[{0}].Value", column.Index));
 
                GridViewDataColumn col = new GridViewDataColumn();
                 
                col.UniqueName = column.Name;
                col.Header = column.Name;
                col.DataMemberBinding = binding;                                   
                col.DataType = column.DataType;               
                col.IsSortable = true;               
 
                fleetGrid.Columns.Add(col);
            }
Michael
Top achievements
Rank 1
 answered on 17 Jun 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
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?