Telerik Forums
UI for WPF Forum
1 answer
84 views
I am working on a project where I need a different control type (date picker, combo box, textbox) for each cell on the same column.

Example:

Attributes Value
Name Textbox
DOB Date Picker
Origin Combo Box (List of Countries)

If it is possible, any sample code would be appreciated.

Thanks.

Vlad
Telerik team
 answered on 22 Dec 2009
3 answers
130 views
When I do this: RadGridView.ItemsSource = null;
A first chance exception of type 'System.ArgumentException' occurred.What can I do?
Message:
    "Invalid property or field - 'tip' for type: Object"
StackTrace:
   at Telerik.Windows.Data.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance)
   at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName)
   at Telerik.Windows.Data.Expressions.ExpressionFactory.MakeMemberAccess(Expression instance, String memberName, Boolean liftMemberAccessToNull)
   at Telerik.Windows.Data.Expressions.PropertyAccessExpressionBuilder.CreateMemberAccessExpression()
   at Telerik.Windows.Data.Expressions.MemberAccessExpressionBuilderBase.CreateLambdaExpression()
   at Telerik.Windows.Data.SortDescriptorCollectionExpressionBuilder.Sort()
   at Telerik.Windows.Data.SortDescriptorCollection.Sort(IQueryable queryable)
   at Telerik.Windows.Data.QueryableExtensions.Sort(IQueryable source, SortDescriptorCollection sortDescriptors)
   at Telerik.Windows.Data.QueryableCollectionView.CreateView()
   at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView()
   at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList()
Vlad
Telerik team
 answered on 22 Dec 2009
1 answer
449 views
Hello,

I need a context menu on my radgrid view, but i need it to operate on the current data context of the cell (I.e. each operation on the context menu will be on the current context of the cell (or row).

I used this code:
            <telerik:RadGridView.Resources>
                <ContextMenu x:Key="MyContextMenu" Opened="ContextMenu_Opened_1">
                    <MenuItem Header="Update Order" Click="Update_Click"/>
                    <MenuItem Header="Cancel Order" Click="Cancel_Click"/>
                </ContextMenu>
            </telerik:RadGridView.Resources>

But i didn't know how to implement Update_Click to operate on the appropriate DataContext

Thanks,
Ofer
Vlad
Telerik team
 answered on 22 Dec 2009
4 answers
381 views

Hi Guys,

When I drag the nodes in the treeview, it displays "Infinity is not a valid value for the property Width". What caused this error?

Thanks,

Lauren Nickerson
Top achievements
Rank 1
 answered on 21 Dec 2009
3 answers
145 views
I am trying to achieve a very simple 2 pane docking layout. I want both panes to fill the space available with a splitter between them. If I hide one pane I want the other to fill the remaining space. Here is my markup:

    <Grid> 
         
        <telerik:RadDocking Name="radDocking1" > 
             
            <telerik:RadSplitContainer Name="LeftContainer" InitialPosition="DockedLeft" > 
                 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Task List"
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
                 
            </telerik:RadSplitContainer> 
 
            <telerik:RadSplitContainer Name="RightContainer" InitialPosition="DockedRight"
 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Map"
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
            </telerik:RadSplitContainer> 
 
        </telerik:RadDocking> 
    </Grid> 
 


What seems to be blocking this is the DocumentHost. Even when I remove the document host by following the posted instructions - using blend to grab the style sheet and setting visibility to collapsed I still can't get my 2 panes to fill the space.

Any ideas anyone?

Cheers

Steve
Steve Chadbourne
Top achievements
Rank 1
 answered on 21 Dec 2009
2 answers
171 views
Hi, I have a problem, when I select a row of my RadGriView Q3 and this hase a ScrollBar, If I do Double Click in the arrow of the scrollbar, this executes the event "MousDoubleClik" of my RadGrid, I need to block this event in the scroll bar, help me


Regards!!
Felipe
Top achievements
Rank 1
 answered on 21 Dec 2009
18 answers
1.1K+ views
I managed to make RadGridView show multiple related tables (LINQ to SQL) by approach used in FirstLook sample (create GridViewTableDefinition and TableRelation). If I add two table definitions it works OK (besides showing empty table if no related record exists).
I'd like to know if there exists a way, to show each of related tables in separate tab of RadTabControl. If I define HierarchyChildTemplate/DataTemplate with RadTabControl where each tab containins GridViewDataControl, I get two tab-controls instead of one, first one showing first relation on all tabs and second tab-control showing second related table on all tabs. Is there a Way to show child-table per tab-item (or expander or something alike)?

Thanks.
Branko
Nedyalko Nikolov
Telerik team
 answered on 21 Dec 2009
1 answer
107 views
Hi,

I'm new in using your nice controls. Great job guys!

Now to my problem:
My application needs the functionality to drag & drop tree nodes between two treeviews which are placed in separate grid columns.
Drag and Drop does not work. If I try to drag an item, the mouse cursor does not change and I have no idea why.

The definition of the first treeview is:
<telerik:RadTreeView IsOptionElementsEnabled="True"
                                   ItemsOptionListType="CheckList"
                                   IsLineEnabled="True"
                                   IsTriStateMode="True"
                                   LoadOnDemand="oTreeViewSource_LoadOnDemand"
                                   ItemPrepared="oTreeViewSource_ItemPrepared"
                                   IsDragDropEnabled="True"
                                   IsDragTooltipEnabled="False"
                                   AllowDrop="True"
                                   Margin="6"
                                   SelectionMode="Multiple"
                                   Name="oTreeViewSource" />

and the definition of the second is:
<telerik:RadTreeView IsDragDropEnabled="True"
                                   AllowDrop="True"
                                   Name="oTreeViewTarget"
                                   Margin="6"></telerik:RadTreeView>

The items in the first treeview were added like this:
            RadTreeViewItem oTreeViewTargetItem = new RadTreeViewItem();
            oTreeViewTargetItem.Header = "New item";
            nIndex = oTreeViewSource.Items.Add(oTreeViewTargetItem);

Does anyone has an idea what is wrong?

Thanks
Dieter
Miroslav
Telerik team
 answered on 21 Dec 2009
1 answer
136 views
I want to change the items in my TileView's items source at runtime. The item's are being shown correctly after I've populated the Itemssource for the first time. When changing the source the items move over each other.

Example code:

public Window1()  
      {  
         InitializeComponent();  
         RadTileView1.ItemsSource = new ObservableCollection<Test> {   
            new Test() { Description = "11" },   
            new Test() { Description = "22" } ,  
            new Test() { Description = "33" } ,  
            new Test() { Description = "44" } ,  
            new Test() { Description = "55" } ,  
            new Test() { Description = "66" }   
         };  
      }  
 
     private void button1_Click(object sender, RoutedEventArgs e)  
      {  
         ObservableCollection<Test> col = (ObservableCollection<Test>)RadTileView1.ItemsSource;  
         col.Clear();  
         col.Add(new Test() { Description = "aa" });  
         col.Add(new Test() { Description = "bb" });  
         col.Add(new Test() { Description = "cc" });  
         col.Add(new Test() { Description = "dd" });  
}  
 
 

Regards,
Michael
Valentin.Stoychev
Telerik team
 answered on 21 Dec 2009
13 answers
258 views
I've created a dialog box in XAML using a RadWindow, and I've just put the XAML into my main page, so it shows up in the design view in Visual Studio, hiding everything underneath it. Do you have any tips for a better way to do this?

Steve
Miroslav Nedyalkov
Telerik team
 answered on 21 Dec 2009
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
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?