Telerik Forums
UI for WPF Forum
3 answers
172 views
Hi,

I have a RadNumericUpDown control on which I set the Width to 70, but then the text disappears. If the Width is 80, the text is visible properly.
Pana
Telerik team
 answered on 07 Dec 2009
1 answer
87 views
With Ms ListView I can do like this

int _selIndex = dataGrid.SelectedIndex;  
 
MyCollection _data1 = (MyCollection)dataGrid.Items[_selIndex - 1];  
MyCollection _data2 = (MyCollection)dataGrid.Items[_selIndex];  
MyCollection _data3 = (MyCollection)dataGrid.Items[_selIndex + 1]; 

But I can't figure out how to do this with RadGridView.

Vlad
Telerik team
 answered on 07 Dec 2009
4 answers
350 views
I have a custom cell editor. when the Cell tries to validate (CellValidating event) the NewValue property is always null.
How can I get the NewValue to be set for validation?

<t:GridViewDataColumn DataMemberBinding="{Binding grade}" Header="Grade" EditTriggers="CellClick"
                        <t:GridViewDataColumn.CellEditTemplate> 
                            <DataTemplate> 
                                <ComboBox IsEditable="True" Text="{Binding grade, UpdateSourceTrigger=LostFocus, Mode=TwoWay}"/> 
                            </DataTemplate> 
                        </t:GridViewDataColumn.CellEditTemplate> 
                    </t:GridViewDataColumn> 

Nedyalko Nikolov
Telerik team
 answered on 07 Dec 2009
2 answers
120 views
Hi Every one,

I try to find a way to change the content of a cell programmaticaly.
I found this thread:http://www.telerik.com/community/forums/wpf/gridview/change-the-cell-content-at-runtime.aspx

But it doesn't work for me.

my gridview is link to a dataset. when I modify manually the value of the cell through the interface everything is fine. But if I modify it by code, nothing change.

I don't know if a dataset implement INotifyPropertyChanged but how can I have the value change by code.
I also try with using beginedit function and commitedit but still not work

.
Thank you
private void gridMain_MouseDoubleClick(object sender, MouseButtonEventArgs e)  
        {  
 
            GridViewCell currentCell = (GridViewCell) gridMain.CurrentCell;  
 
            if (currentCell.DataColumn.DisplayIndex > 17)  
            {  
                  
                if (currentCell.Foreground == Brushes.Red)  
                {  
                    currentCell.Foreground = Brushes.Black;  
                    currentCell.Value = currentCell.Value.ToString().Replace("*""");  
                }  
                else 
                {  
                    currentCell.Foreground = Brushes.Red;  
                    currentCell.Value = currentCell.Value.ToString() + "*";  
                                                             
                      
                }  
      
            }  
              
        } 
regis
Top achievements
Rank 1
 answered on 04 Dec 2009
1 answer
141 views
Hi..
Do you have any examples of binding a combo box to a grid with multiple columns.  Specially - I'm trying to set the ItemSource of the combo box to 3 columns of values in code.

How do I also set the ComboBox's Item source

var query = from c in this.DataContext.Customers
      orderby c.Name
      select c;



this.cmbCustomers.ItemSource =  query.ToList()        <-- This doesn't work... 

thanks again

Pavel Pavlov
Telerik team
 answered on 04 Dec 2009
0 answers
232 views
Does anyone know why you would get an error such as this when it is obvious that the cast should work?

[A]Telerik.Windows.Controls.RadGridView cannot be cast to [B]Telerik.Windows.Controls.RadGridView. Type A originates from 'Telerik.Windows.Controls.GridView, Version=2009.3.1127.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'LoadNeither' at location 'D:\Users\Tommy\Documents\Visual Studio 2010\Projects\MyCards.LightSpeed3\bin\Debug\plugins\Telerik.Windows.Controls.GridView.dll'. Type B originates from 'Telerik.Windows.Controls.GridView, Version=2009.3.1127.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' in the context 'Default' at location 'D:\Users\Tommy\Documents\Visual Studio 2010\Projects\MyCards.LightSpeed3\bin\Debug\Telerik.Windows.Controls.GridView.dll'.  Error at object 'Telerik.Windows.Controls.RadGridView' in markup file 'MyCards.Material;component/takeoffmanager.xaml'.

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

Wait I just found it but I will finish this post in case someone else finds it useful.
 I have some DLLs that are dynamically loaded (as plugins) This error occurs when you have copies of the same DLL in the Load paths.  To solve this I simply set Copy Local property of the Reference to False in the Plugin Project.
(you will have to do this every time you update references to new versions of DLLs in your project. I hope VS 2010 allows easier updating of References in Projects or even Solution Wide Reference Updating. If not maybe a JustCode feature)



MiddleTommy
Top achievements
Rank 1
 asked on 04 Dec 2009
1 answer
117 views
Dear Teleric team,

I am using Animating Expander control on my page whose name is Doctor Dashboard.
Inside Animating Expander, I have put a stack panel which further contains another reference control Patient Banner.

I want to name PatientBanner so that i may access this control in my Doctor Dashboard page.

I am unable to name it, coz animation expander cannot accept any name, niether can the stack panel in which the reference control for Patient Banner can accept any name.

My XAML code is as follows.

Pls tell me any naming option or any other alternative.

Urgent.


<

 

ReferenceControls:AnimatingExpanderControl InitialExpandedLength="180" Margin="0" Style="{StaticResource AnimatingExpanderControlStyle}" ExpandDirection="Up" Title="Patient Info" Background="White" Grid.Row="0" >

 

 

 

<!--<Viewbox Stretch="Uniform">-->

 

 

 

<StackPanel Orientation="Vertical" >

 

 

 

<ReferenceControls:PatientBanner x:Name="test"/>

 

 

 

</StackPanel>

 

 

 

<!--</Viewbox>-->

 

 

 

</ReferenceControls:AnimatingExpanderControl>

 


Valentin.Stoychev
Telerik team
 answered on 04 Dec 2009
1 answer
126 views
whitch property represent the EmptyDataText in RadGridView control?

Vlad
Telerik team
 answered on 04 Dec 2009
0 answers
367 views
As we are internally using StyleCop for analyzing our C# code and improving readability and code maintainability, when using the Source Code of RadControls for WPF you should have StyleCop installed on your machine.

The "Microsoft.StyleCop.Targets was not found" error states that you either do not have StyleCop installed or not completely installed on your computer.


Our source code project requires this Visual Studio add-in. You should install the latest StyleCop version and try the Source Code project once again.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 04 Dec 2009
6 answers
480 views

I am evaluating the DataGrid you offer and I am trying to determine if it is possible to have multiple column headers on the grid.  In other words the user can stack columns on top of other columns when reordering.  Thank you

 

Keith Williams

Pavel Pavlov
Telerik team
 answered on 04 Dec 2009
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
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?