Telerik Forums
UI for WPF Forum
2 answers
196 views

We are beginning to use Telerik WPF UI for a Windows Forms application.  We have a RadGridView bound to a RadEntityFrameworkDataSource which gets
data from the database using Entity Framework.  The data for the grid come from a View in the database.  The data appears fine initially but 
we change data in the tables programmatically.  How do we force the datagrid to retrieve the latest changes from the database? 

Thanks
Sathya
Uwe
Top achievements
Rank 1
 answered on 21 Mar 2017
1 answer
227 views

Hello,

I want to achieve this : (see attached file for mockup)

           GR01      GR02      GR03     ... ... ...
ErgoLimit1 |    1    |    3    |    5    |
ErgoLimit2 |    3    |    2    |    1    |

 

This is basically a grid with row headers.

My ItemsSource is an ObservableCollection of :

1.public class MyDataSourceLine
2.{
3.    public string GroupName { get; set; }
4.    public int ErgoLimit1Value { get; set; }
5.    public int ErgoLimit2Value { get; set; }
6.}

 

I tried using RadGridView but does not look like a good fit  as there are no way (correct me if i'm wrong) to set row headers.

Cells must be editable (at least for the rows ErgoLimit1 and ErgoLimit2)

Columns are not fixed : every MyDataSourceLine should add a column.

Appreciate help on this as I spent already a lot of time trying to figure out how do to this, in vain :(

If it's not possible with RadGridView, i can change to another telerik control.

Thanks in advance !

Dilyan Traykov
Telerik team
 answered on 21 Mar 2017
1 answer
163 views

How to keep the appointment creation dialog box open when validating the entries. So if I leave the subject (or start, end time) blank, I will like to show a message box and KEEP THE APPOINTMENT DIALOG OPEN.

 

All the events I have created on radschedulerview, fire after the appointment dialog closes.

 

Events like  

radScheduler1_AppointmentCreating

radScheduler1_AppointmentSaving

    'radScheduler1_AppointmentCreated', 

 

all fire AFTER the dialog closes. I need to not close the appointment dialog when the subject etc are left blank.

 

Thanks

 

Help!

 

Robin

Yana
Telerik team
 answered on 21 Mar 2017
1 answer
124 views

Hi - I'm looking for the source code/project for 'ChartView Live Data' - see attached pic. I can run the code in the 'UI for WPF' tool but I cannot find the same example in the xaml-sdk. It is available in the Windows version but not the WPF version.

The UI for WPF shows the code files but when trying to create a project I'm getting many errors because of the 'QuickStart' code... Does anyone have the VS project code for this or know where I can download it? ty much

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Mar 2017
1 answer
444 views

At the moment, validation only appears when you hover over the cell that didn't pass validation. Is there a way to show the validation without the mouse hovering? 

 

http://i.imgur.com/zvWqKn6.png

 

 

Dilyan Traykov
Telerik team
 answered on 21 Mar 2017
3 answers
104 views
Hi,

We would like to change the format of this display from Degrees Minutes and seconds to Degrees Minutes and decimals of a minute.

i.e. 51 21 30.00 N would become 51 21.500 N

Without rebuilding the assembly how can this be accomplished?

Regards

John
  
Petar Mladenov
Telerik team
 answered on 21 Mar 2017
2 answers
652 views

Hi,

I have some problems in building a radGridView with radiobutton inside in XAML. You can see the attached image to have an idea of what I'm doing.

I have a grid that contains a list of "container" (they could be one, 2 or more). So every row has a plate(with an id) and 2 radio button (ground - Upper). I retrieve the value of these radiobutton from the DB. Radio button Ground is selected when the variable IsUtiInDoubleStakerHold == 0. If IsUtiInDoubleStakerHold == 1radiobutton Upper has to be selected; if radiobutton Ground is selected, radiobutton Upper cannot be selected and vice versa. For every row I need to select a radio button, and then I have to save the value eventually modified. How can I do this? Actually with this code if I do a choice of a value in the first row, then when I make a selection on the second row, I lost the value of the radiobutton selected in the first row (I can't see anymore the selection done before).

How can i solve this problem? 

After that, how can I maintain the value changed in every row? (I hope to save everything in the object  public ObservableCollection<ItuForYard> ItusSameGroupList)

The xaml RadGridView is defined in this way:

01.<StackPanel Grid.Row="3" >
02.<telerik:RadGridView
03.     SelectedItem="{Binding SelectedItu, Mode=TwoWay}"
04.      ShowColumnSortIndexes="False"
05.          ItemsSource="{Binding ItusSameGroupList, Mode=TwoWay}"                           
06.      Visibility="{Binding GridItusSameGroupVisibility}"
07.       Margin="0,10,0,10" >
08.  <telerik:RadGridView.Columns>
09.       <telerik:GridViewDataColumn t:I18N.Translate="ITU Id"
                                            DataMemberBinding="{Binding UtiId}" Width="0" IsVisible="False" />
10.       <telerik:GridViewDataColumn t:I18N.Translate="ITU Plate"
                                            DataMemberBinding="{Binding UtiPlate}"       Width="4*" />
11.      <telerik:GridViewDataColumn t:I18N.Translate="Ground" Width="3*">
12.         <telerik:GridViewDataColumn.CellTemplate>
13.             <DataTemplate>
14.                <RadioButton GroupName="GroundUpper" Content="{Binding RadioButtonGround}"  
               HorizontalAlignment="Center"
IsChecked="{Binding RadioButtonGroundIsChecked,                                                                           Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                IsEnabled="{Binding IsGroundUpperRadioButtonEnabled}" />
18.             </DataTemplate>
19.        </telerik:GridViewDataColumn.CellTemplate>
20.     </telerik:GridViewDataColumn>
21.     <telerik:GridViewDataColumn t:I18N.Translate="Upper"
                                DataMemberBinding="{Binding IsUtiInDoubleStakerHold}" Width="3*">
22.       <telerik:GridViewDataColumn.CellTemplate>
23.          <DataTemplate>
24.             <RadioButton GroupName="GroundUpper" Content="{Binding RadioButtonUpper}"
25.         HorizontalAlignment="Center"
26.          IsChecked="{Binding RadioButtonUpperIsChecked, Mode=TwoWay,    
               UpdateSourceTrigger=PropertyChanged}"
27.          IsEnabled="{Binding IsGroundUpperRadioButtonEnabled}" />
28.          </DataTemplate>
29.      </telerik:GridViewDataColumn.CellTemplate>
30.    </telerik:GridViewDataColumn>
31.  </telerik:RadGridView.Columns>
32.</telerik:RadGridView>
33.</StackPanel>

 

In the cs file:

public bool IsGroundUpperRadioButtonEnabled => SelectedItu != null &&
                                                        SelectedItu.IsUtiInDoubleStakerHold != 2;
        public Visibility GridItusSameGroupVisibility => SelectedItu != null ? Visibility.Visible : Visibility.Collapsed;
        public bool RadioButtonGroundIsChecked => SelectedItu != null && SelectedItu.IsUtiInDoubleStakerHold == 0;
        public bool RadioButtonUpperIsChecked => SelectedItu != null && SelectedItu.IsUtiInDoubleStakerHold == 1;

 public ObservableCollection<ItuForYard> ItusSameGroupList { get; set; } = new ObservableCollection<ItuForYard>();

 

Then I populate the list of container with the result from the DB

 ItusSameGroupList = new ObservableCollection<ItuForYard>(ituResponse.Result);

Stefan Nenchev
Telerik team
 answered on 21 Mar 2017
1 answer
100 views
In my WPF application, I want to customize the content(or list of actions) of RadRibbonDropDownButton just at the end of QuickAcesstoolbar. If I use a simple RadRibbonView class for my Ribbon control and use DropDownOpened event to capture the event and write my code there, it is working fine. Everytime I click on the RadRibbonDropDownButton icon, the event is triggered and everything is perfect.
But the problem arises as I am using a class CustomRibbonView : RadRibbonView [CustomRibbonView is derived from RadRibbonView]. I HAVE NOT written any specific code for Quick Aceess Toolbar in this class [Am I missing a trick here?]. Now in the MainWindow.xaml.cs file in RibbonBar.Load event I have suscribed to DropDownOpened event. Please refer below:-

Now when the application is loaded for first time and I click on the RadRibbonDropDownButton icon in QAToolBar, ther suscribed event is fired and everything is fine. If I click on the first item i.e. "Show Below The Ribbon" and the toolbar goes below the ribbon as expected. But now if I click on the RadRibbonDropDownButton icon again, the event DropDownOpened is not fired and it is not fired anytime after. 
Could not figure it out.
Tanya
Telerik team
 answered on 20 Mar 2017
1 answer
293 views

RadRibbonView how can I merge it with the Windows top bar like Excel?

 

See images below for example

Martin
Telerik team
 answered on 20 Mar 2017
1 answer
88 views

How does on transform the yaxis?

I need to center the y axis on a certain x value?

You can email directly at stevensrf@mail.com if you have answers , or better yet link me to source that does this.

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Mar 2017
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?