Telerik Forums
UI for WPF Forum
4 answers
358 views

I want to set the two first Buttons of the RadGridView ControlPanelItems to the left. Is this possible and how. The image describes what I want to do. Below you will find also my source code. 

 

 

01.<telerik:RadGridView.ControlPanelItems>
02. 
03.    <telerik:ControlPanelItem>
04.        <telerik:ControlPanelItem.ButtonContent>
05.            <telerik:RadButton Name="EnlargeFontSize" Click="EnlargeFontSize_OnClick">
06.                <DockPanel>
07.                    <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontWeight="Bold" FontSize="16"/>
08.                    <TextBlock TextAlignment="Center"/>
09.                </DockPanel>
10.            </telerik:RadButton>
11.        </telerik:ControlPanelItem.ButtonContent>
12.    </telerik:ControlPanelItem>
13. 
14.    <telerik:ControlPanelItem>
15.        <telerik:ControlPanelItem.ButtonContent>
16.            <telerik:RadButton Name="ReduceFontSize" Click="ReduceFontSize_OnClick" >
17.                <DockPanel>
18.                    <TextBlock Text="" FontFamily="Segoe MDL2 Assets" FontWeight="Bold" FontSize="16"/>
19.                    <TextBlock TextAlignment="Center"/>
20.                </DockPanel>
21.            </telerik:RadButton>
22.        </telerik:ControlPanelItem.ButtonContent>
23.    </telerik:ControlPanelItem>
24. 
25.    <telerik:ControlPanelItem>
26.        <telerik:ControlPanelItem.ButtonContent>
27.            <telerik:RadButton Click="ResetView_Click" HorizontalContentAlignment="Stretch">
28.                <DockPanel>
29.                    <TextBlock Text="" FontFamily="Segoe UI Symbol" Foreground="Red"/>
30.                    <TextBlock Text="Anpassung Zurücksetzen" TextAlignment="Center"/>
31.                </DockPanel>
32.            </telerik:RadButton>
33.        </telerik:ControlPanelItem.ButtonContent>
34.    </telerik:ControlPanelItem>
35. 
36.</telerik:RadGridView.ControlPanelItems>

Dilyan Traykov
Telerik team
 answered on 11 Oct 2016
6 answers
3.0K+ views
Hi,

small question: how can I databind SelectedItems of a gridview to a collection of my viewmodel? I have a gridview with SelectionMode set to Extended:

<telerik:RadGridView Name="patientsGridView" SelectionMode="Extended" ItemsSource="{Binding Patients}" SelectedItem="{Binding SelectedPatient}" AutoGenerateColumns="False" IsReadOnly="True" >           
 
and the viewmodel would contain:

public ObservableCollection<PatientViewModel> SelectedPatients { ... }

But how can I bind the grid's SelectedItems to the viewmodel's SelectedPatients?

Thanks,
Kind regards,
L
Brennan
Top achievements
Rank 1
 answered on 11 Oct 2016
1 answer
163 views

Working with Q1 2012

Hi, I have a radgridview control, with custom columns (not autogenerated), all of them editable. When I click in the "Click Here to add new Item", that row changes into edit mode and the cursor is in the first column (C1). When I press TAB, the focus passes to the next column (C2) but it seems to exit from edit mode. Then I have to press TAB again 4 times to enter again in edit mode, but in C3. If at that moment I press SHIFT+TAB, it goes back to C2 in editmode, and if I press again SHIFT+TAB it goes to C1, also in edit mode, then I can press TAB again and goes to C2 in edit mode, and everything seems to work well. This happens every time I try to add a new row. And some times just the TAB behaviour is too wrong. Instead of passing to the next column of the same row, it passes to the next column of another row, like if radgridview is confused about tab navigation.

 

Apart from that, when I try to validate a cell, the first time I set an error it is shown, but then I rectify and try to put another invalid value and then press TAB and it does not shows any error, but does not let you change TAB.

 

I would appreciate some workaround to this.

 

Thanks in advance.

 

David.

Stefan Nenchev
Telerik team
 answered on 11 Oct 2016
1 answer
140 views

Hi,
I have a strange problem with docking control:
as you see in following code I have a unpinned RadPane(there are 4 tabs inside the RadPane). I hover mouse over RadPane and it appears.
when I click in TAB1 and click the Button and click TAB2, RadPane hides itself.
please help me to fix it.
thanks.

My code:

 <telerik:RadDocking HorizontalAlignment="Stretch">
            <telerik:RadSplitContainer MinWidth="300" InitialPosition="DockedRight">
                <telerik:RadSplitContainer >
                    <telerik:RadPaneGroup  >
                        <telerik:RadPane CanFloat="False" CanUserPin="True" CanDockInDocumentHost="False"
                                         x:Name="pane"
                                         CanUserClose="False" Header="PaneHeader"
                                         IsPinned="False" AutoHideWidth="300">
                            <telerik:RadTabControl>
                                <telerik:RadTabItem Header="TAB1">
                                    <Grid>
                                        <telerik:RadButton Content="Button"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB2" IsSelected="True">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB3">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB4">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                            </telerik:RadTabControl>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

 

 

Nasko
Telerik team
 answered on 11 Oct 2016
1 answer
145 views

Hi,

I have two different collections with items of type A and B where B contains typeA's   Id and vice versa, and I'm displaying these two collections in two different RadGridViews .
Type A contains : IdA , prop1A , IdB
Type B contains : IdB , prop1B , IdA 
What I want to do is to be able to drag an item from one grid to the other by recovering the target type Id from source type and retrieve the target element  from a source By the recovered id  and insert it into the target RadGridView .

Any help would be greatly appreciated!

Stefan Nenchev
Telerik team
 answered on 11 Oct 2016
1 answer
109 views
How can i get access to the section which is currently hovered by the cursor in a "RadRichTextBox" ?
Tanya
Telerik team
 answered on 11 Oct 2016
2 answers
227 views

Hey every one. I have a radRich textbox and I want the text to be rtl. I used

this.radRichTextBox.Document.StyleRepository[dd.RadDocumentDefaultStyles.NormalStyleName].ParagraphProperties.FlowDirection
= FlowDirection.RightToLeft;

although the text inside the texbox is rtl but whenever I use paragraphs the text is not enveloped by the parentheses:

گوگول))

or

)گوگولی(

also there is another problem. In farsi there are punctuations like "،". whenever I use that it goes behind the text. like what happened for . in previous versions of telerik. what should I do?

it should be like this:

،جینگول

but it is like this:

جینگول،

Todor
Telerik team
 answered on 11 Oct 2016
14 answers
560 views
Hi Everyone,

My name is Valeri Hristov and I am the technical lead of the team that is developing the Telerik Gantt control. In order to answer your questions about our plans and release schedule I want to share some details about the development of the control and probably initiate a discussion about the features that you would want to be included in the final version.

Q: You promised Gantt control for Q3 but I cannot see it in the Beta. What is happening?
A: Our initial plans were to release a control that you will be able to play with in Q3. Unfortunately they changed and now we expect to release the first bits near the end of 2011.

Q: What is the release schedule of the new control?
A: We plan to publish a CTP version of the control around the holidays and a Beta version in February. Near Q1 2011 in March we will decide whether to call the Q1 version RTM or Beta 2, depending on how stable it is, does it have all must have features, etc.

Q: What will be included in the CTP?
A: Currently we are aiming at a read-only control (no editing, no drag-drop) that looks like most of the available Gantt controls - a treelist on the left, a timeline on the right that has several types of items with relations between them.

Q: I really need feature "X". Will you include it?
A: We still don't have a final list with features to be included in the first version of the control, so please send us your requests. I cannot promise that we will include all of them, but we will consider every bit of feedback we get. We are very interested in use cases and scenarios that you want to be covered out of the box. We can sign NDAs if your application requirements should not be disclosed in public.

To send us your feedback, please reply to this thread directly, or send us support tickets for RadControls and mention Gantt in the title. Thank you in advance and happy coding!

Cheers,
Valeri Hristov
Telerik
Yana
Telerik team
 answered on 11 Oct 2016
1 answer
892 views

Hi there,

Love the Desktop Alert component and love the font glyph's you guys have supplied as part of the Implicit Styling.

How would I use a font glyph as my icon for a Desktop Alert?

Thanks in advance,

Dave

Martin
Telerik team
 answered on 11 Oct 2016
2 answers
109 views

Hello!

I tried the examples of diagram,and I found that when I set the Opacity Property of a shape,and save the diagram to a xml,the Opacity Property did't saved to the xml file,so when I open the xml in diagram, the Opacity Property of the shape was 100%.

How to solve this bug?

 
Wang
Top achievements
Rank 1
 answered on 11 Oct 2016
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?