Telerik Forums
UI for WPF Forum
2 answers
289 views
I'm trying to use RadPrompt (and RadAlert/RadConfirmation) in a WPF app using Prism.  I have followed this guide: https://www.telerik.com/support/code-library/integrating-raddialogs-(confirm-alert-prompt)-with-prism's-interactionrequest-using-mvvm .  At the point I raise the interaction request, I can see that the RadWindow.Prompt gets called (and it's Owner is set to the calling Window), but no prompt window shows.  I can't interact with the owner window so that suggests the prompt does exist, it just doesn't appear to have any visual element.  What might I be missing here?
Rob
Top achievements
Rank 1
 answered on 18 Mar 2019
6 answers
185 views

When using AutoCompleteBox with IME, the AutoCompleteBox may "steal" characters from the IME input.

For example, if there is an auto complete entry named "Hello", and we type "HA" in the AutoCompleteBox with an IME, the initial character "H" will be stolen by the AutoCompleteBox, leaving only "A". 

Hillin
Top achievements
Rank 1
 answered on 18 Mar 2019
4 answers
259 views
When i set SelectedItem back to MultiColumnComboBox programmatically, if the selectedItem is below the top items, not in view, the control cannot auto scroll to the right position,so could you expose a ScrollIntoView method. 
Huan jia
Top achievements
Rank 1
Iron
 answered on 18 Mar 2019
2 answers
126 views

Hello, I dont know why, on most controls i cannot create a copy and a new template or style for yours controls to make generic bindable resource template/style

neither using visual studio nor blend for vs. Can you provide all templates and styles for your controls?

Dominik
Top achievements
Rank 2
 answered on 16 Mar 2019
5 answers
168 views

I want DataForm to have a default alignment. However, the default alignment does not appear as sample as shown below. It is not known that the item can also be set from the attribute. I want to know how to change the settings.

 

attached file : MyUI.jpg  /  SampleUI.jpg

 

XAML

<StackPanel>
    <telerik:RadGridView x:Name="gvGridView" ItemsSource="{Binding EtcRegistrationViewModel}" CanUserGroupColumns="False" ShowGroupPanel="False" GroupRenderMode="Flat" RowIndicatorVisibility="Collapsed" />
    <telerik:RadDataPager Source="{Binding Items, ElementName=gvGridView}" DisplayMode="FirstLastPreviousNextNumeric" PageSize="22"/>
</StackPanel>
 
<Grid Margin="16,0,0,0" Grid.Column="1">
    <telerik:RadDataForm x:Name="myRadDataForm" ItemsSource="{Binding EtcRegistrationViewModel}" Width="400"/>
</Grid>

 

ViewModel

public class EtcServiceRegistrationViewModel
{
    private ICollectionView etcRegistrationViewModel = null;
    public ICollectionView EtcRegistrationViewModel
    {
        get
        {
            if (this.etcRegistrationViewModel == null)
            {
                ObservableCollection<EtcServiceRegistrationModel> etcRegistrationModel = new ObservableCollection<EtcServiceRegistrationModel>();
                etcRegistrationModel.Add(new EtcServiceRegistrationModel("123-12-12354", new DateTime(0001, 01, 01), new DateTime(0001, 01, 01), false, new DateTime(2018, 12, 15), new DateTime(9999, 12, 31), true));
                etcRegistrationModel.Add(new EtcServiceRegistrationModel("123-12-12123", new DateTime(2018, 12, 15), new DateTime(9999, 12, 31), true, new DateTime(0001, 01, 01), new DateTime(0001, 01, 01), false));
 
                this.etcRegistrationViewModel = new QueryableCollectionView(etcRegistrationModel);
                 
            }
            return this.etcRegistrationViewModel;
        }
    }
}

 

Model

public class EtcServiceRegistrationModel : ObservableObject, IEditableObject
{
    EtcServiceRegistrationData backupEtcServiceRegistrationData;
    private string consumerNumber;
    private DateTime silverCareStartingDate;
    private DateTime silverCareEndingDate;
    private bool silverCareActive;
    private DateTime homeLeakageStartingDate;
    private DateTime homeLeakageEndingDate;
    private bool homeLeakageActive;
 
    public EtcServiceRegistrationModel()
    {
 
    }
 
    public EtcServiceRegistrationModel(string _consumerNumber, DateTime _silverCareStartingDate, DateTime _silverCareEndingDate, bool _silverCareActive, DateTime _homeLeakageStartingDate, DateTime _homeLeakageEndingDate, bool _homeLeakageActive)
    {
        this.backupEtcServiceRegistrationData = new EtcServiceRegistrationData();
        this.backupEtcServiceRegistrationData.consumerNumber = _consumerNumber;
        this.consumerNumber = _consumerNumber;
        this.backupEtcServiceRegistrationData.silverCareStartingDate = _silverCareStartingDate;
        this.silverCareStartingDate = _silverCareStartingDate;
        this.backupEtcServiceRegistrationData.silverCareEndingDate = _silverCareEndingDate;
        this.silverCareEndingDate = _silverCareEndingDate;
        this.backupEtcServiceRegistrationData.silverCareActive = _silverCareActive;
        this.silverCareActive = _silverCareActive;
        this.backupEtcServiceRegistrationData.homeLeakageStartingDate = _homeLeakageStartingDate;
        this.homeLeakageStartingDate = _homeLeakageStartingDate;
        this.backupEtcServiceRegistrationData.homeLeakageEndingDate = _homeLeakageEndingDate;
        this.homeLeakageEndingDate = _homeLeakageEndingDate;
        this.backupEtcServiceRegistrationData.homeLeakageActive = _homeLeakageActive;
        this.homeLeakageActive = _homeLeakageActive;
    }
 
    public struct EtcServiceRegistrationData
    {
        internal string consumerNumber;
        internal DateTime silverCareStartingDate;
        internal DateTime silverCareEndingDate;
        internal bool silverCareActive;
        internal DateTime homeLeakageStartingDate;
        internal DateTime homeLeakageEndingDate;
        internal bool homeLeakageActive;
    }
 
    public string ConsumerNumber
    {
        get
        {
            return consumerNumber;
        }
        set
        {
            consumerNumber = value;
            RaisePropertyChanged(() => this.ConsumerNumber);
        }
    }
 
    public DateTime SilverCareStartingDate
    {
        get
        {
            return silverCareStartingDate;
        }
        set
        {
            silverCareStartingDate = value;
            RaisePropertyChanged(() => this.SilverCareStartingDate);
        }
    }
 
    public DateTime SilverCareEndingDate
    {
        get
        {
            return silverCareEndingDate;
        }
        set
        {
            silverCareEndingDate = value;
            RaisePropertyChanged(() => this.SilverCareEndingDate);
        }
    }
 
    public bool SilverCareActive
    {
        get
        {
            return silverCareActive;
        }
        set
        {
            silverCareActive = value;
            RaisePropertyChanged(() => this.SilverCareActive);
        }
    }
 
    public DateTime HomeLeakageStartingDate
    {
        get
        {
            return homeLeakageStartingDate;
        }
        set
        {
            homeLeakageStartingDate = value;
            RaisePropertyChanged(() => this.HomeLeakageStartingDate);
        }
    }
 
    public DateTime HomeLeakageEndingDate
    {
        get
        {
            return homeLeakageEndingDate;
        }
        set
        {
            homeLeakageEndingDate = value;
            RaisePropertyChanged(() => this.HomeLeakageEndingDate);
        }
    }
 
    public bool HomeLeakageActive
    {
        get
        {
            return homeLeakageActive;
        }
        set
        {
            homeLeakageActive = value;
            RaisePropertyChanged(() => this.HomeLeakageActive);
        }
    }
 
 
    public void BeginEdit()
    {
 
    }
 
    public void CancelEdit()
    {
        ConsumerNumber = this.backupEtcServiceRegistrationData.consumerNumber;
    }
 
    public void EndEdit()
    {
        this.backupEtcServiceRegistrationData.consumerNumber = ConsumerNumber;
    }
}

 

Vladimir Stoyanov
Telerik team
 answered on 15 Mar 2019
19 answers
758 views
I just downloaded Telerik WPF controls because we're interested in the charting control. What is the difference between RadChart and RadChartView?
gaurav
Top achievements
Rank 1
 answered on 15 Mar 2019
2 answers
224 views

Hello everyone! 

I'm currently not sure how to implement a solution for this problem.  I want a RadGridView which has the ability to select multiple items whether it's shift or ctrl clicks, but I once the items are selected, I want the user to be able to right click and make a selection in a menu.  For instance, if a grid column is just a column to designate colors of each item, the user can select in the menu, change color and a window pops open and then they can select the color.  Once the color is selected, then all the items that the user selected would be changed to that color.  I understand I should use the RadContextMenu, but I'm not certain on how to use it with multiple selections.

Also, how can I make a custom column?  For instance, I could just have a rectangle that would fill up and items cell and be a randomized color?

Thanks!

Jon
Top achievements
Rank 1
 answered on 14 Mar 2019
1 answer
107 views

Hi,

I am quite new to both Telerik and XAML.

I am testing out Telerik controls and trying to create a simple application.

So far it is going ok, I have managed to create the layout I want, however there is a small thing bugging me. The color of the Header changes when a Pane gets focus. I am using Docking to define my application layout, and thus I don't really need this color change. Also, it appears the styles are different from when the RadPane is included in a DocumentHost or not.

My code looks like this:

<Grid>
       
      <Grid.RowDefinitions>
          <RowDefinition Height="Auto" />
          <RowDefinition Height="*" />
      </Grid.RowDefinitions>
 
      <StackPanel Orientation="Horizontal">
          <telerik:RadMenuItem Header="Fil" />
          <telerik:RadMenuItem Header="Om" />
      </StackPanel>
 
      <telerik:RadDocking Grid.Row="1" >
          <telerik:RadDocking.DocumentHost>
              <telerik:RadSplitContainer>
                  <telerik:RadPaneGroup>
                      <telerik:RadPane Header="Applikation" CanUserClose="False" CanFloat="False" CanUserPin="False" ContextMenuTemplate="{x:Null}">
                      </telerik:RadPane>
                  </telerik:RadPaneGroup>
              </telerik:RadSplitContainer>
          </telerik:RadDocking.DocumentHost>
 
          <telerik:RadSplitContainer InitialPosition="DockedLeft">
              <telerik:RadPaneGroup>
                  <telerik:RadPane Header="Menu" CanUserClose="False" CanFloat="False" CanUserPin="False" ContextMenuTemplate="{x:Null}">
                      <telerik:RadTreeView>
                          <telerik:RadTreeViewItem Header="Sport Categories" IsExpanded="True">
                              <telerik:RadTreeViewItem Header="Football" IsExpanded="True">
                                  <telerik:RadTreeViewItem Header="Futsal"/>
                                  <telerik:RadTreeViewItem Header="Soccer"/>
                              </telerik:RadTreeViewItem>
                              <telerik:RadTreeViewItem Header="Tennis"/>
                              <telerik:RadTreeViewItem Header="Cycling"/>
                          </telerik:RadTreeViewItem>
                      </telerik:RadTreeView>
                  </telerik:RadPane>
              </telerik:RadPaneGroup>
          </telerik:RadSplitContainer>
 
          <telerik:RadSplitContainer InitialPosition="DockedBottom">
              <telerik:RadPaneGroup>
                  <telerik:RadPane Header="Output" CanUserClose="False" CanFloat="False" CanUserPin="False" ContextMenuTemplate="{x:Null}"/>
              </telerik:RadPaneGroup>
          </telerik:RadSplitContainer>
      </telerik:RadDocking>
 
  </Grid>

  

So want I want is either to remove the heading color altogether (as seen in the attached screenshot where "Menu" is blue) or change "Applikation" to have the same behavior as "Menu", i.e. is not underlined, but have a solid heading when in focus like the one "Menu" has.

Best regards

Andreas

andreasnauta
Top achievements
Rank 1
 answered on 14 Mar 2019
7 answers
327 views

Hello!

I have two problem,

1:

Is there  some method to  Drag & drop  only in parent gridview self and Hierarchy gridview self?

for eg. 

p1

     sub1

     sub2

     sub3

p2

    sub4

    sub5

    sub6

p3

    sub7
    sub8
    sub9

 

can we Drag & drop only between p1,p2,p3 for order

and Drag & drop only between sub1 sub2 sub3…

 

 2.

Is there  some method to  Drag & drop  only in parent gridview self and gridview in RowDetailsTemplate self?

 

It is a big forever If you can provide a sample! thanks a lot!!

Vladimir Stoyanov
Telerik team
 answered on 14 Mar 2019
1 answer
195 views

Hi,

I am developing a control which contains a GridView. Some of the items can have sub items which are assigned to another GridView which is the HierarchyChildTemplate of the main GridView.
How can I implement a drag and drop functionality between the main GridView and the child GridView and vice versa.

 

Thanks.

 

Best regards

Peter

Vladimir Stoyanov
Telerik team
 answered on 14 Mar 2019
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?