Telerik Forums
UI for WPF Forum
3 answers
123 views
It appears that only the first visible day on my timeline view is being constrained to my 6am to 6pm. The other days always show midnight to midnight. Bug?

Rod Yager
Ivo
Telerik team
 answered on 21 Jan 2013
3 answers
748 views
Hi,

In my WPF MVVM application I have a view with RadTabControl with 4 different TabItems.
I use the tabs to display 4 different categories of items

Visibility Property of each TabItem is bound to a property in my ViewModel.

Now if let say Tab1 and Tab4 are visible and Tab2 and Tab3 hidden I got gaps like this:

[ Tab 1 ] __________________ [ Tab 4] .

How to make  all tab headers to move to the left like this:

[ Tab 1 ] [ Tab 4] __________________  .


(see pseudo-code below)
<telerik:RadTabControl>
    <telerik:RadTabItem Visibility="{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab1Visible}">
        <telerik:RadTabItem.Header>
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Tab1"/>
                </TextBlock.Text>
            </TextBlock>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
 
    <telerik:RadTabItem Visibility="{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab2Visible}">
        <telerik:RadTabItem.Header>
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Tab2"/>
                </TextBlock.Text>
            </TextBlock>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
     
    <telerik:RadTabItem Visibility="{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab3Visible}">
        <telerik:RadTabItem.Header>
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Tab3"/>
                </TextBlock.Text>
            </TextBlock>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
 
    <telerik:RadTabItem Visibility="{Binding Converter={StaticResource boolToVisibilityConverter}, Path=IsTab4Visible}">
        <telerik:RadTabItem.Header>
            <TextBlock>
                <TextBlock.Text>
                    <Binding Path="Tab4"/>
                </TextBlock.Text>
            </TextBlock>
        </telerik:RadTabItem.Header>
    </telerik:RadTabItem>
</telerik:RadTabControl>
Pavel R. Pavlov
Telerik team
 answered on 21 Jan 2013
2 answers
433 views
Hi,

how do you do the slide in of the Option-Menu in your Dashboard-Example?

Thanks
best Regards
WW
ITA
Top achievements
Rank 1
 answered on 21 Jan 2013
1 answer
192 views
Dear all,
Recently I use radgridview and gridViewComboBoxColumn to achieve the goal that users could be insert or update database by dropping down the combobox. How can I get the selected-value to operate the database? My codes are listed as below. May you give me some hints? Thank you.

XAML Code:

<telerik:RadGridView x:Name="gv1"

                             Grid.Row="1"

                             Margin="5"

                             AlternationCount="2"

                             AutoGenerateColumns="False"

                             FontSize="{Binding Source={x:Static local:MySettings.Default},

                                                Path=FontSize,

                                                Mode=OneWay}"

                             IsFilteringAllowed="False"

                             SelectionUnit="FullRow"

                             ShowGroupPanel="False"

                             VirtualizingStackPanel.IsVirtualizing="True"

                             VirtualizingStackPanel.VirtualizationMode="Recycling">

            <telerik:RadGridView.Columns>

                <telerik:GridViewDataColumn DataMemberBinding="{Binding opc_id}"

                                            Header="opc_id"

                                            IsReadOnly="False" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding ip_address}"

                                            Header="ip_address"

                                            IsReadOnly="False" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding hmi_user}"

                                            Header="hmi_user"

                                            IsReadOnly="False" />

                <telerik:GridViewDataColumn DataMemberBinding="{Binding description}"

                                            Header="description"

                                            IsReadOnly="False" />

 

                <telerik:GridViewComboBoxColumn DataMemberBinding="{Binding entry_area}"

                                                DisplayMemberPath="description"

                                                Header="entry_area"

                                                IsReadOnly="False"

                                                SelectedValueMemberPath="Id"

                                                UniqueName="entry_area" />

 

            </telerik:RadGridView.Columns>

        </telerik:RadGridView>"

 

 

VB.NET CODE:

 

Private Sub gv1_RowEditEnded(sender As Object, e As Telerik.Windows.Controls.GridViewRowEditEndedEventArgs) Handles gv1.RowEditEnded

        If e.EditAction = GridViewEditAction.Cancel Then

            Exit Sub

        End If

 

        If e.EditOperationType = GridViewEditOperationType.Insert Then

            'Add the new entry to the data base.

 

            Dim opc As New OPC_Profile With {.opc_id = TryCast(e.Row.Cells(0).Content, TextBlock).Text, _

                                 .ip_address = TryCast(e.Row.Cells(1).Content, TextBlock).Text, _

                                 .hmi_user = TryCast(e.Row.Cells(2).Content, TextBlock).Text, _

                                 .description = TryCast(e.Row.Cells(3).Content, TextBlock).Text, _

                                 .entry_area = TryCast(e.Row.Cells(4).Content, LookupElement).ComboBox.Text}

        End If

Yoan
Telerik team
 answered on 21 Jan 2013
5 answers
245 views
Hi,

I would like to bind the visibility property of an annotaiton to a property of my DataContext binded to a checkbox.
It seems that setting the Visibility property of an annotation has no effects.
Is it a bug ? Do i need to remove it from annotation's collection and reinsert it ?

Regards.
Jean-Pierre
Top achievements
Rank 1
 answered on 21 Jan 2013
5 answers
968 views
I've created a DropDownButton which has a sequence of checkboxes and a ok/cancel button pair in the dropdowncontent. The dropdowncontent is not supposed to close unless I click one of the buttons, hit escape, return or click outside the dropdowncontent.

However, the dropdowncontent closes whenever I click the background on the dropdowncontent - which I do occationally because checkboxes are small and hard to hit when in a hurry.

How do I prevent the DropDownContent from disappearing when I click it's background (that is, the grid which holds the entire thing)?

Thanks!
Simon
Top achievements
Rank 1
 answered on 21 Jan 2013
0 answers
69 views

Hello.

I have some custom control (inherits from Control class) and I need to style it as RadWindow (It's need for Mdi window in canvas control). How can I style the control? And how can I save changing theme function on it? Maybe I can use telerik brushes?

Thanks.

Anton
Top achievements
Rank 1
 asked on 20 Jan 2013
0 answers
129 views
I am using version 2012.1.326.35.

I have a RadGridView with a DataTable dt as ItemsSource. The RadGridView appears to render the initial column specification correctly and also recognize the row changes. However, when I update the columns, then I notice that addition and removal of columns are not recognized in the RadGridView.

This is how I refresh my DataTable:

================================================
public void updateData(SomeCustomDataSource data)
dt.Clear();
int num_cols = model.Columns.Length;
for (int i = 0; i < num_cols; i++)
{
SomeCustomColumn c = data.Columns[i];
if (!dt.Columns.Contains(.Name)) // Adding columns not previously existing
{
DataColumn col = CreateDataColumn(c);
dt.Columns.Add(col);
}
}
dt.AcceptChanges();
RefreshGrid(); // Plain old OnPropertyChanged("DataSource");
================================================
I'd like to note that this is just some dummy code. In the actual code I wanted to use, I called dt.Columns.Clear() and re-added every single column on data update. And what happens in that case is that none of the columns changed but when I click on the "click to add new row" row insertion thing, I get a "[Column] does not belong to Table [Table]" ArgumentException, which implies the internal data is not actually refreshed in the RadGridView even though the rows are updated correctly.

Again, if you want my license key in order to provide support, I'd be happy to provide it.
New
Top achievements
Rank 1
 asked on 18 Jan 2013
3 answers
123 views
Hello,

we are using Telerik WPF Controls Version Q2 2011 0920.

We have a scenario where we want to programmatically move TileViewItems from one TileView to another. This is done by removing the item from the RadTileView.Items Collection and adding it to the other in code behind.
The issue is that the header is disappearing if we do that (plain text defined in XAML with HEADER Property) and is doesn't come back if we move the TileViewItem back to the original TileView.

Update: Header-Property is correct after the move but the UI isn't showing anything.

Thanks,

Thomas
Zarko
Telerik team
 answered on 18 Jan 2013
1 answer
121 views

I do not even know where to start with this. I can build a tree that has parents and children, but I cannot figure out how to make it where it is not always symmetric. This is a validation tree so it tells the user error messages. For example, it should look like this:


    Object ID (Main Property)
    - Must start with a number (Description)
    Employee Name (Main Property)
          Employee 1 (SubProperty)
                - Cannot be blank (Description)
          Employee 2 (Subproperty)
                - Cannot be blank (Description)

Any help with this or something that would lead me in the right direction would be helpful. This is my first time working with trees in WPF/C# so please be kind haha.

Tina Stancheva
Telerik team
 answered on 18 Jan 2013
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?