Telerik Forums
UI for WPF Forum
1 answer
144 views

Hi,

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" >
                    <telerik:GridViewColumn.CellStyle>
                        <Style TargetType="{x:Type telerik:GridViewCell}" BasedOn="{StaticResource GridViewCellStyle}">
                            <Setter Property="ContentTemplate">
                                <Setter.Value>
                                    <DataTemplate>
                                        <StackPanel Orientation="Horizontal">
                                            <CheckBox x:Name="checkBox"/>
                                            <TextBlock x:Name="textBlockA" Text="AAAAAAA"/>
                                            <TextBlock x:Name="textBlockB" Text="BBBBBBB"/>
                                        </StackPanel>
                                        <DataTemplate.Triggers>
                                            <DataTrigger Binding="{Binding ElementName=checkBox,Path=IsChecked}" Value="false">
                                                <Setter TargetName="textBlockB" Property="Visibility" Value="Collapsed"/>
                                            </DataTrigger>
                                        </DataTemplate.Triggers>
                                    </DataTemplate>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </telerik:GridViewColumn.CellStyle>
                </telerik:GridViewDataColumn>

    I use your demo do a test about gridviewcolumn width, As the attach video show. 

 When I check the checkBox in column style,the column with stretch automatically, 

 when I unchecked, the column width  do not get shorter. Is there any method make the column get shorter When I unchecked in the NameColumn

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
0 answers
60 views

Hi,

I'm using the Outlook Template from Telerik.

What I've done is that I've swapped the current grid with my own item source which list the categories the 1. grid.

What I want to do is upon selecting a row, I want upon choosing a row from the 1.grid to send categoryID parameter to viewmodel, and viewmodel is going to run the sample function which retrieves the data from the database. 

My function is retrieving the data just fine. I just need to find out how to make selected row in grid 1, call on this retrieve data function and update the gridview 2 with new items. If I decide to choose another row in grid 1, it would call on the retrieve data function again with new categoryID as parameter

How can I achieve this?

Khoa
Top achievements
Rank 1
 asked on 26 Oct 2018
5 answers
670 views

Hello

I am in vb.net with wpf, I have an existing radgridview with custom validationDiffProperty. I am using telerik v 2017.3.1018.45

My goal is to add a radgriview row with radcombox (see attach image). I know how to add a radcombobox column in a radgridview, but I don't know how to add a "radcombobox row" in a radgriview.

Could you please help me ?

Regards

Jean-Christophe

 

 

 

Dinko | Tech Support Engineer
Telerik team
 answered on 26 Oct 2018
1 answer
100 views
How can I increase a custom Shape area to below? Connection point and connection line should remain in the same position.
Martin Ivanov
Telerik team
 answered on 26 Oct 2018
1 answer
80 views

I have a timebar used to selecting time range. However sometimes when the interval is short and located far to the right, the text showing the selected time is cut off, like this: https://i.gyazo.com/179cc9d932da3bcfa08fe38558cbb0ca.png

How can I prevent this? For example make the label right aligned instead of left aligned if it's too far to the right.

Martin Ivanov
Telerik team
 answered on 26 Oct 2018
16 answers
2.8K+ views
Hi,

I'm trying to find out if you guys make the source code available for download for the WPF Controls Examples. I would do the clickonce app that you guys link to in your help (i.e. http://demos.telerik.com/wpf) but it requires SQL Server Express '08. I don't have that installed nor do I want to install it just to get to your demos...What's my alternative?

Thanks
Martin Ivanov
Telerik team
 answered on 26 Oct 2018
1 answer
133 views

I'm needing the datetimepicker to allow the user to select an option for each second over the day, but when i'm down to just 15 minutes the boxes get too small for being able to see the text. 

I've scrolled view documentation and the forum and can't find any solution.

Vladimir Stoyanov
Telerik team
 answered on 25 Oct 2018
3 answers
1.7K+ views
None of the solutions presented in the following threads works:

https://www.telerik.com/forums/how-to-disable-the-user-input

https://www.telerik.com/forums/disable-input-field-force-user-choose-date-by-click-on-calendar

https://www.telerik.com/forums/how-to-disable-input

The objective in unable the user to type a text and allow him to choose a date only by clicking button.
Dilyan Traykov
Telerik team
 answered on 25 Oct 2018
2 answers
878 views

Hi,

I have a grid with 4 columns. On selecting/changing value for 3rd column(i.e.: NewFamily) I want to programmatically set some value for the combobox in 4th column (selected value as well as list)

Here is the xaml:
        <telerik:RadGridView Grid.Row="0"  x:Name="PartFamilyGrid" AutoGenerateColumns="False" 
                             ColumnWidth="*" MinHeight="150"
                             RowIndicatorVisibility="Collapsed" SelectionChanged="PartFamilyGrid_SelectionChanged"
                             >  
                <telerik1:StyleManager.Theme>
                    <telerik1:VisualStudio2013Theme/>
                </telerik1:StyleManager.Theme>
                <telerik:RadGridView.Columns>
                
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Family}"    IsReadOnly="True" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Part}"      IsReadOnly="True" />

                <telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <telerik:RadComboBox ItemsSource ="{Binding NewFamily}" SelectionChanged="NewFamilySelected" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.Header>New Family</telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>

                <telerik:GridViewDataColumn>
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <telerik:RadComboBox ItemsSource ="{Binding NewPart}" SelectionChanged="NewPartSelected" />
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                    <telerik:GridViewDataColumn.Header>New Part</telerik:GridViewDataColumn.Header>
                </telerik:GridViewDataColumn>
                
                
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>

Items of this RadGridView are objects of this class
    public class PartFamilyGridItem : INotifyPropertyChanged
        {
        public string Family
            {
            get; set;
            }
        public string Part
            {
            get; set;
            }
        public List<string> NewFamily
            {
            get; set;
            }
        public List<string> NewPart
            {
            get; set;
            }

        public event PropertyChangedEventHandler PropertyChanged;
        }

In the SelectionChanged event (NewFamilySelected) for the RadComboBox in 3rd column i want to handle this task. But I am not sure how to do it.
Do I need to get the row of the RadComboBox (from 3rd col) for which value is modified, select the RadComboBox from 4th col and finally change the selectedValue?

 

A similar issue is handled here https://www.telerik.com/forums/change-the-cell-content-at-runtime#MtiwER8x9USdCWTtLyu5_A

but I am not getting how to handle it for combobox

maria
Top achievements
Rank 1
 answered on 25 Oct 2018
7 answers
847 views
Hi,
I just started to investigate the gridView control and got stuck in to a problem:
Is it possible to change a specific cell content in a grid view?
I want to with something like this:

radGridView.Rows[radGridView.SelectedRow].Cols["Col_Name"].value =   
MY_NEW_VALUE; 
maria
Top achievements
Rank 1
 answered on 25 Oct 2018
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
ProgressBar
Sparkline
LayoutControl
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
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?