Telerik Forums
UI for WPF Forum
2 answers
93 views
Hi. I'am using 2010 Q3 WPF controls with Visual Studio 2010. I Have RadSplitContainer with RadPanes. I want RadPane Headers to be non resizable when application window width gets smaller then headers total width. I want to get same behavior as the Visual Studio tabs headers behavior. When application window width is smaller then tabitems headers total width most right Header is hiding and when application window width  increasing tabitem header is again visible. Is it possible to do the same behavior for RadPane Headers. Also in Visual Studio selected Tab is set to first position (if it was not in first position and there is not enough space because of the window width decreasing)

Thank you,
Regards Armen  
Armen
Top achievements
Rank 1
 answered on 04 Feb 2011
1 answer
739 views
how to put selected row cell into edit mode with single click or selection.
Currently, I have to click twice to have it in the edit mode.
First click selects it, second puts it in the edit mode.

Thanks
Veselin Vasilev
Telerik team
 answered on 04 Feb 2011
2 answers
408 views
hi,
I have a dataset object which contains 2 datatable (relation). How do i bind this dataset to the radgridview with allowing to insert a new row on both parent and child grid?

thanks

So far this is the code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Data;
 
namespace WpfApplication8
{
    /// <summary>
    /// Interaction logic for Window3.xaml
    /// </summary>
    public partial class Window3 : Window
    {
        public Window3()
        {
            InitializeComponent();
 
            this.DataContext = this;
 
            //RadGridView1.DataMember = CarsSet.Tables["Car"].TableName;
        }
 
 
        public DataSet CarsSet
        {
            get
            {
                DataSet carSet = new DataSet();
 
                DataTable car = new DataTable("Car");
                DataTable comp = new DataTable("Complaint");
 
                DataColumn col = new DataColumn("AllWheelDrive");
                car.Columns.Add(col);
                col = new DataColumn("Doors");
                car.Columns.Add(col);
                col = new DataColumn("Make");
                car.Columns.Add(col);
                col = new DataColumn("Model");
                car.Columns.Add(col);
                col = new DataColumn("ModelYear");
                car.Columns.Add(col);
 
                col = new DataColumn("Doors");
                comp.Columns.Add(col);
                col = new DataColumn("DateOfComplaint");
                comp.Columns.Add(col);
                col = new DataColumn("Complaint");
                comp.Columns.Add(col);
                col = new DataColumn("Resolved");
                comp.Columns.Add(col);
 
                DataRow row = car.NewRow();
                row["Doors"] = "test1";
                row["Make"] = "test2";
                row["Model"] = "test3";
                row["ModelYear"] = "test4";
 
                car.Rows.Add(row);
 
                row = comp.NewRow();
                row["Doors"] = "test1";
                row["DateOfComplaint"] = "test4";
                row["Complaint"] = "test2";
                row["Resolved"] = "test3";
 
 
                comp.Rows.Add(row);
 
                carSet.Tables.Add(car);
                carSet.Tables.Add(comp);
 
                carSet.Relations.Add(new DataRelation("link", carSet.Tables["Car"].Columns["Doors"], carSet.Tables["Complaint"].Columns["Doors"]));
                return carSet;
            }
 
 
        }
    }
}

<
Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"  x:Class="WpfApplication8.Window3"
        Title="Window3" Height="300" Width="600">
    <Grid>
        <telerik:RadGridView x:Name="RadGridView1" CanUserFreezeColumns="False" GridLinesVisibility="Horizontal"
                             ShowInsertRow="true" DataMember="Car"
                             ItemsSource="{Binding CarsSet}"  
                             AutoGenerateColumns="False">
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding AllWheelDrive}" Header="Order Date" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Doors}" Header="Employee" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Make}" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Model}" Header="Ship Country" />
                <telerik:GridViewDataColumn DataMemberBinding="{Binding ModelYear}" Header="Ship City" />
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView x:Name="RadGridView1"
                                         DataMember="Complaint"
                                         CanUserFreezeColumns="False"
                                         ShowInsertRow="true" CanUserInsertRows="True"
                                         AutoGenerateColumns="False" ItemsSource="{Binding Complaint}" 
                                         ShowGroupPanel="False">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding DateOfComplaint}" Header="Product ID" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Complaint}" Header="Unit Price" />
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Resolved}" Header="Quantity" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>
        </telerik:RadGridView>
    </Grid>
</Window>


Milan
Telerik team
 answered on 04 Feb 2011
3 answers
81 views
I noticed that a window with a RadDocking control behaves in a strange fashion in relation to the Windows task bar:

Whereas every other window of whatever application when dragged towards the task bar is behind it, a window with the RadDocking control - if it is activated - is above the task bar. If other windows are behind the active window with a RadDockingControl, they get placed above the task bar as well, but only in this case.

How do I fix this behavior so that a window with a RadDocking control is always behind the Windows task bar like every other standard window?

I use Windows 7.
George
Telerik team
 answered on 04 Feb 2011
3 answers
398 views
Hi,
I need to capture which one the user clicked on mousedoubleclick event of radgridview..

I need to differentiate if the user clicked on the cell or on the border of the grid.. How can i achive this?

thanks
Maya
Telerik team
 answered on 04 Feb 2011
1 answer
297 views
Hi,

i have the following scenario (RadDocking with three panes and on the third pane is a PRISM region) :

<Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    <Telerik:RadDocking Name="Docking" UI:PaRadDockingExtensions.IsEnabled="True"
                        ItemContainerStyle="{DynamicResource PaNewRadDockPaneStyle}" AllowUnsafeMode="True" >
            <Telerik:RadDocking.DocumentHost >
            <Telerik:RadSplitContainer Orientation="Vertical">
                <Telerik:RadPaneGroup Name="MapGroup">
                    <Telerik:RadPane Header="Pane1" Telerik:RadDocking.SerializationTag="C1">
                            <AlapModul:CikkInputView DataContext="{Binding}" />
                        </Telerik:RadPane>
                    <Telerik:RadPane Header="Pane2" Telerik:RadDocking.SerializationTag="C2" >
                        <AlapModul:CikkKiegeszitoInputView DataContext="{Binding}" />
                        </Telerik:RadPane>
                    <Telerik:RadPane Header="Pane3" Telerik:RadDocking.SerializationTag="C3" >
                        <ContentControl cal:RegionManager.RegionName="{Binding MERegionName}" DataContext="{Binding}"/>
                    </Telerik:RadPane>
                </Telerik:RadPaneGroup>
            </Telerik:RadSplitContainer>
        </Telerik:RadDocking.DocumentHost>
    </Telerik:RadDocking>

At runtime, when I begin drag the pane with the PRISM region, I got the following error:

An exception occurred while creating a region with name 'cc4ebccf-36cf-410c-b390-318f6e905d1b'. The exception was: System.InvalidOperationException: ContentControl's Content property is not empty.
    This control is being associated with a region, but the control is already bound to something else.
    If you did not explicitly set the control's Content property,
    this exception may be caused by a change in the value of the inherited RegionManager attached property.
   at Microsoft.Practices.Composite.Presentation.Regions.ContentControlRegionAdapter.Adapt(IRegion region, ContentControl regionTarget) in E:\Projects\PrismLib\Source\Main\CAB\Composite.Presentation\Regions\ContentControlRegionAdapter.cs:line 58
   at Microsoft.Practices.Composite.Presentation.Regions.RegionAdapterBase`1.Initialize(T regionTarget, String regionName) in E:\Projects\PrismLib\Source\Main\CAB\Composite.Presentation\Regions\RegionAdapterBase.cs:line 65
   at Microsoft.Practices.Composite.Presentation.Regions.RegionAdapterBase`1.Microsoft.Practices.Composite.Regions.IRegionAdapter.Initialize(Object regionTarget, String regionName) in E:\Projects\PrismLib\Source\Main\CAB\Composite.Presentation\Regions\RegionAdapterBase.cs:line 82
   at Microsoft.Practices.Composite.Presentation.Regions.Behaviors.DelayedRegionCreationBehavior.CreateRegion(DependencyObject targetElement, String regionName) in E:\Projects\PrismLib\Source\Main\CAB\Composite.Presentation\Regions\Behaviors\DelayedRegionCreationBehavior.cs:line 137.

Any idea what I do wrong?

Thanks,

Balazs
George
Telerik team
 answered on 04 Feb 2011
2 answers
217 views
Hi,

Is there an easy or effecient way to check if the user changes any data on the grid? comparing the old row with the new row..

thanks


ronald
Top achievements
Rank 1
 answered on 04 Feb 2011
1 answer
160 views
Hello Telerik Team,
                                I have one clarification about rad colorpicker.we are using rad controls in our latest project.

My doupt is how to binding radcolor picker?
what is color picker input value?

our aim is stored the values of color picker input .Then display values in datagrid with corresponding color. 

give me more suggestion.
Petar Mladenov
Telerik team
 answered on 04 Feb 2011
1 answer
179 views
how I can display a modal window in XBAP synchronously so that the process does not continue until you close the window?

Thanks
Konstantina
Telerik team
 answered on 04 Feb 2011
1 answer
332 views

Hello,
I have some problems using Radcombobox.
The list with the data is Alignment to right. 
if I choose an item from the list is longer than the width of Radcombobox
the text in Radcombobox has been cut to the right and no to the left.
i have attaced sample code here.
Thanks

<

 

 

Border Grid.Row="2" Style="{StaticResource BorderCombo_Details}" Width="140" HorizontalAlignment="Right" Grid.Column="3" VerticalAlignment="Top">
<telerikInput:RadComboBox IsReadOnly="True" KeyUp="OnKeyUpClear" FlowDirection="RightToLeft" HorizontalAlignment="Right" x:Name="cmbVolStatus" TabIndex="4"
SelectionChanged="cmbVolStatus_SelectionChanged"
Style="{StaticResource RadComboBox_Details}"
SelectedValue="{Binding Source={StaticResource VolunteersVS},
Path=VD_VolStatusID, Mode=TwoWay,
ValidatesOnDataErrors=True,
NotifyOnValidationError=True}"
Validation.Error="Validation_Error"
SelectedValuePath="VS_ID"
DisplayMemberPath="VS_Desc"/>
</Border>

 


Konstantina
Telerik team
 answered on 04 Feb 2011
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
DataPager
PersistenceFramework
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?