Telerik Forums
UI for WPF Forum
2 answers
135 views
I have a NumericUpDown control inside a cell of a GridView.  When you type a number then hit the up or down the NumericUpDown control increments or decrements repeatedly based on the up or down key.
Boyan
Telerik team
 answered on 26 Nov 2009
3 answers
1.0K+ views
Hi guys,

I've set up some columns which are of Decimal data type with a data format string which converts these decimals values to a percentage between 0 - 100% ie. DataFormatString = "{0.0.00\\%}". The problem I am having is a few of these rows do not need to have the data format string on them, they should be left as they are. I've had a look at conditional formatting with Converters with the ContentStringFormat but can't get this to work (I believe because the data type is decimal?). I am using the decimal type because this helps with validation (only numerics). Otherwise, what's the best method to implement this?

Thanks!

Tim.

This is the code I used for the converter:

XAML

<

 

telerikGrid:RadGridView.Resources>

 

 

 

<Client:ValueConverter x:Key="ValueConverter"/>

 

 

 

<Style TargetType="{x:Type telerik:GridViewCell }">

 

 

 

<Setter Property="ContentStringFormat" Value="{Binding Path=Period,Converter={StaticResource ValueConverter}}"/>

 

 

 

</Style>

 

 

 

</telerikGrid:RadGridView.Resources>

 


Binding Path=Period is a <BindingList> of Decimals so 'object value' returns an array of objects, which I have to extract. Basically my goal is to overwrite (or bypass) the DataFormatString in the GridViewDataColumn for a few rows - if this is possible.

Converter Class

public

 

object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)

 

{

 

//if (a[0] > 100)

 

 

return "{0:0.00}";

 

 

//return Binding.DoNothing;

 

}


Tsvyatko
Telerik team
 answered on 26 Nov 2009
3 answers
130 views
Hello.
I evaluate GridView and try to use custom row layout as it showed in GridView/CustomRowLayout.
I created ControlTemplate and placed GridViewCell for every column. But these cells is not editable, have gray background color and do not use expected representation (for example boolean property is diplayed as True/False string instead of checkbox).
How to display cells as they are displayed without any custom row layout?
Kalin Milanov
Telerik team
 answered on 26 Nov 2009
1 answer
139 views
Hi,
How Can I set a image in to specific cell on all selected rows.
i tried something like this:
foreach (MyObject obj in MyGrid.SelectedItems) 
System.Windows.Controls.Image image = new System.Windows.Controls.Image(); 
        image.Source = new BitmapImage(new Uri(@"[...]")); 
        ((MyObject)MyGrid.SelectedItem).myImageimage

the problem with this code is that the last row is the only row effected.
Milan
Telerik team
 answered on 26 Nov 2009
1 answer
175 views
Hi! Is there a way to remove the header? I just want ContentTemplate. And, how can override the MouseDoubleClick event? T don't want the resize animation. I just want to catch, wich item have been selected.

Thank.

Daniel
Tihomir Petkov
Telerik team
 answered on 25 Nov 2009
1 answer
81 views
hello all,

i upgraded to q3 version. however, since then, i am having problems with scrolling. though i have set scrolling to realtime, it does not behave so. also the form hangs or freezes very often and whenever its refreshed. 
is this a known behaviour?

since i was having troubles with q3, i downgraded to q2 - 2009.2.813.35
i am trying to align group totals to left hand side. i am pasting part of the code here. however, i still donot get group totals on the left hand side. i know that q3 has fixed this issue but becoz of above mentioned issues, i am unable to use them. 

please can u let me know if i am doing ath wrong in the code below.

 <Window.Resources>
        <Style x:Key="GridViewGroupRowStyle1" TargetType="GridView:GridViewGroupRow">
            <Setter Property="HorizontalAlignment" Value="Left"/>
           
        </Style>
    </Window.Resources>
        
      
        <telerik:RadGridView x:Name="WipGrid" 
                             MultipleSelect="True" 
                             
                             CanUserReorderColumns="True"
                             CanUserResizeColumns="True"
                             CanUserSortColumns="True"
                             ValidationMode="Cell"   
                             MouseDoubleClick="WipGrid_MouseDoubleClick"
                             Grouping="WipGrid_Grouping"
                             ScrollMode="RealTime" GroupRowStyle="{StaticResource GridViewGroupRowStyle1}" >
Kalin Milanov
Telerik team
 answered on 25 Nov 2009
1 answer
57 views
The GroupFooters appear not to be correctly updating their width all the time.
ie.  Grab the ColumnHeader sizing thumb and drag it narrower, and the GroupFooter doesn't change to match.  Dragging it wider however, appears to work.

I've tested with last release 2009.3.1103.35 and 2009.3.1120.35

There was nothing special in my XAML, just showing columns automatically.

<telerik:RadGridView xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"   
            ShowGroupFooters="True" 
            x:Name="uxRadGridView">  
</telerik:RadGridView> 
 
Kalin Milanov
Telerik team
 answered on 25 Nov 2009
1 answer
107 views

The grid is 2009 Q2.
Grid.ItemSource = dataTable.

 

private

 

void btnAdd_Click(object sender, RoutedEventArgs e)

 

{

     Grid.BeginInsert();
}

Is it because the dataTable has a few primary keys?

How do I resolve this?

Thanks

Nedyalko Nikolov
Telerik team
 answered on 25 Nov 2009
2 answers
122 views
Hi
          In RadCaraouselPanel if we are taking Buttons instead of images as given in your example,
 in this case RadCarouselPanel does not scroll on clicking on items(which are buttons here)

Please reply as soon as possible

Thanks in advance
Regards
Shreya
Shreya Goyal
Top achievements
Rank 1
 answered on 25 Nov 2009
5 answers
204 views
Hello,
  I want to set the color of the axis to black for print and I got styling axis infomation from the online help:
http://www.telerik.com/help/wpf/chart-customize-axis-appearance-through-style.html,
but it doesn't work when I put it in my code
and the application can't find Axis2D
from chart (xmlns:chart="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting").
  Any response as soon as possible is appreciated!
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 24 Nov 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?