Telerik Forums
UI for WPF Forum
1 answer
131 views
Hi there,

when I insert decimal values in datagrid I get diferent results if pressed ',' or '.'

Eg. value 7,25

When I insert 7,25 with ',' the final result is 725

but

When I insert 7,25 with '.' the final result is 7,25

I want that was indiferent press ',' or '.' the final result was always the same!

I check every char insert on the grid but  I CanĀ“t assign olther value to a routed event that is already in use !

 void RadGridView1_KeyDown(object sender, KeyEventArgs e) 
        { 
            if (e.Key == Key.Decimal) 
            { 
                e.Handled = true; 
                e.Source = "2"; // ==> error 
            } 
            if (e.Key == Key.OemComma) 
            { 
                e.Handled = true; 
            } 
            if (e.Key == Key.OemPeriod) 
            { 
                e.Handled = true; 
            } 
        } 




it's possible when the user press ',' change the value to '.' ?

Any ideias?

Thanks,
Jose Oliveira



Pavel Pavlov
Telerik team
 answered on 19 Apr 2010
2 answers
271 views
Hello,

I am required to create an interface that has forms within side RadPanes and a WebBrowser control (another others) in the main DocumentHost window.  For some reason only a few of the controls within the DocumentHost render at runtime.  Also, the controls that do display are not maintaining their position correctly.

See attached image.

How do I accomplish the desired interface?  OR  What am I doing wrong?

<telerik:RadDocking.DocumentHost> 
                <telerik:RadSplitContainer> 
                    <telerik:RadPaneGroup> 
                        <telerik:RadPane Header="Browser" CanFloat="False">  
                            <Grid x:Name="grdBrowser" Margin="0">  
                                <StackPanel HorizontalAlignment="Stretch" Margin="6" Name="stackPanel1" VerticalAlignment="Stretch">  
                                    <StackPanel Name="stackPanel2" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Stretch">  
                                            <Button x:Name="btnWebPrev" HorizontalAlignment="Left" Height="34" Style="{DynamicResource stylePreviousButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebNext" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleNextButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <TextBox Height="23" x:Name="txtWebURL" Width="519" /> 
                                            <Button x:Name="btnWebSearch" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleSearchButton}" VerticalAlignment="Top" Width="34" Cursor="Hand" Click="btnWebSearch_Click"/>  
                                            <Button x:Name="btnWebStop" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleStopButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebRefresh" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleRefreshButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>  
                                            <Button x:Name="btnWebAddSource" HorizontalAlignment="Left" Height="34" Style="{DynamicResource styleAddSourceButton}" VerticalAlignment="Top" Width="34" Cursor="Hand"/>                                                         
                                    </StackPanel> 
                                    <WebBrowser Height="603" x:Name="webBrowser" /> 
                                    <StackPanel Name="stackPanel3" Orientation="Horizontal">  
                                        <Label Content="Label" Height="28" Name="lblStatus" /> 
                                    </StackPanel> 
                                </StackPanel> 
                            </Grid> 
                        </telerik:RadPane> 
                    </telerik:RadPaneGroup> 
                </telerik:RadSplitContainer> 
            </telerik:RadDocking.DocumentHost> 

Thank you and best regards,
Mike

Konstantina
Telerik team
 answered on 19 Apr 2010
2 answers
188 views
When using the GridView. If the first thing I click on in the grid is the left panel where the selection/insertion indicator is and hit the Insert Button it doesn't work until I click for a 2nd time. After that it works every time.  Do you have  a workaround for this as it is a bit clunky usabilitywise?
Michael Fooks
Top achievements
Rank 1
 answered on 19 Apr 2010
3 answers
365 views
How to create transparent window background and only visible part would be controls displayed (regions)
Pana
Telerik team
 answered on 16 Apr 2010
0 answers
102 views
Please delete this post as I have posted an other one.
AnnS
Top achievements
Rank 1
 asked on 16 Apr 2010
2 answers
99 views
Hello

I am filling a the items of the RadComboBox in the code behind.

            foreach (LJSDataSet.LJ_DBRow row in dbNew.LJ_DB.Rows)  
            {  
                StackPanel pan = new StackPanel();  
                TextBlock tb1 = new TextBlock();  
                TextBlock tb2 = new TextBlock();  
 
                tb1.Width = 130;  
                tb1.Text = row.DBNAME;  
 
                tb2.Width = 90;  
                tb2.Text = row.DBSERV;  
 
                pan.Orientation = Orientation.Horizontal;  
                pan.Children.Add(tb1);  
                pan.Children.Add(tb2);  
 
                this.comboDB.Items.Add(pan);  
            } 

When I compile the project, the combobox items are displayed as expected. But the SeletedItem always shows the type name
System.Windows.Contols.StackPanel.

How can I avoid this?

Thank you in advance.
Valeri Hristov
Telerik team
 answered on 16 Apr 2010
0 answers
70 views
It turned out the old style cause the problem.It's solved now.
Art Now
Top achievements
Rank 1
 asked on 16 Apr 2010
2 answers
324 views
I have a few grids, for which user can sort, filter, group and reorder columns. Also user can choose what are all columns he/she need to view in grid. All sort, filter, grouping and reordering are done by default, and i did visibility functionality by providing interface like add/remove columns, where user can choose hidden columns to show and visible columns to hide. After this selection i am setting IsVisible property of Grid.Columns in a loop.
Now I need to store all these settings per user basis in database and should load with the same state whenever he returns. Can I have any sample code to achieve this?
Siva
Top achievements
Rank 1
 answered on 16 Apr 2010
4 answers
321 views
I've got a RadDatePicker, and I'd like to be able to set the font of the days within the calendar, but can't find an obvious way of doing so.

Here's some code I tried:

        <telerik:RadDatePicker Grid.Row="4" Grid.Column="1" Name="DatePlanned"  
                               SelectedDate="{Binding SelectedDatePlanned, Mode=TwoWay}" > 
            <telerik:RadDatePicker.MonthViewStyle> 
                <Style> 
                    <Setter Property="Control.FontSize" Value="16" /> 
                </Style> 
            </telerik:RadDatePicker.MonthViewStyle> 
        </telerik:RadDatePicker> 

How can I accomplish this?
Kaloyan
Telerik team
 answered on 16 Apr 2010
1 answer
67 views
Hi, I'm getting this weird build error problem when I try to add a RadGridView in xaml, I've worked with other controls, and this is the first time it happens. Here's a screenshot, let me know if that is enough info:

http://www.telerik.com/community/forums/new-thread.aspx?forumId=284

Thanks!
Vlad
Telerik team
 answered on 16 Apr 2010
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?