Telerik Forums
UI for WPF Forum
5 answers
181 views
I'm using a RadWindow but when I do ShowDialog no background is displayed.  What do I need to do to make the ModalBackground show?  Does't work for ShowDialog or Alert.
Dani
Telerik team
 answered on 02 Mar 2011
2 answers
137 views
Hi,

I wanted to implement the OnItemDataBound event feature in RadGridView control.


Please, let me know if there is any solution to this issue.

Regards,
Hirak
hirak
Top achievements
Rank 1
 answered on 02 Mar 2011
1 answer
194 views
Hello,

Our application uses gridviews to display hierarchical data using two separate data tables that share a key for lookup purposes.

The application previously used WinControls RadGridView and joined the two tables using a GridViewRelation. 

                this.Grid.BeginUpdate();
                this.Grid.MasterTemplate.Reset();
                Grid.DataSource = datatables[0];
                if (AddDetails)
                {
                    GridViewTemplate template = new GridViewTemplate();
                    template.DataSource = datatables[1];
                    Grid.Templates.Add(template);

                    GridViewRelation relation = new GridViewRelation(Grid.MasterTemplate);
                    relation.ChildTemplate = template;
                    relation.RelationName = "Details";
                    relation.ParentColumnNames.Add(PC);
                    relation.ChildColumnNames.Add(CC);
                    Grid.Relations.Add(relation);
                }







Once loaded, the lookup was very fast, i.e. I could expand any row to view the child data more or less
instantly.


However when I switched over to the WPF gridview, performance for the same input became
unacceptably slow, for example it takes
approximately 2 seconds every time to expand a row to view the child data.

The WPF xaml looks like so:
   <Grid>
        <telerik:RadGridView x:Name="BugGrid"
                             IsFilteringAllowed="True"
                             IsReadOnly="True"
                             CanUserInsertRows="False"
                             TabIndex="1"
                             AutoGenerateColumns="False"
                             DataLoading="DataLoading"
                             RowHeight="32"
                             MaxColumnWidth="200"
                             EnableRowVirtualization="True"
                             EnableColumnVirtualization="True"
                             DataLoadMode="Asynchronous"
                            
                             >
                             
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding asdfas}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding Blah}"/>
                <telerik:GridViewDataColumn DataMemberBinding="{Binding PC}" IsVisible="False"/>
            </telerik:RadGridView.Columns>
            
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition x:Name="Details">
                    <telerik:GridViewTableDefinition.Relation>
                        <telerik:TableRelation>
                            <telerik:TableRelation.FieldNames>
                                <telerik:FieldDescriptorNamePair 
                                    ParentFieldDescriptorName="PC" 
                                    ChildFieldDescriptorName="CC"/>
                            </telerik:TableRelation.FieldNames>
                        </telerik:TableRelation>
                    </telerik:GridViewTableDefinition.Relation>
                </telerik:GridViewTableDefinition>
            </telerik:RadGridView.ChildTableDefinitions>
        </telerik:RadGridView>
    </Grid>

In the code behind I define the properties of the child table in DataLoading
        private void DataLoading(object sender, GridViewDataLoadingEventArgs e)
        {       
            GridViewDataControl dataControl = (GridViewDataControl) sender;
            if (dataControl.ParentRow != null)
            {
                dataControl.AutoGenerateColumns = false;
                dataControl.ShowGroupPanel = false;
                dataControl.IsFilteringAllowed = false;
                dataControl.CanUserFreezeColumns = false;
                dataControl.IsReadOnly = true;
                GridViewDataColumn column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("CC");
                column.IsVisible = false;
                column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("Name");
                dataControl.Columns.Add(column);
                column = new GridViewDataColumn();
                column.DataMemberBinding = new Binding("Value");
                dataControl.Columns.Add(column);
            }


I set the data source of the child table definition to the be the data table with the details.

I've been able to determine that it's the looking up of the appropriate child data from
the data table that is the very slow part (e.g. if the details data table is blank,
the rows expand instantly) but why is it SO much slower than the old WinControls grid, which also worked with the same data using a similar Relationship.

More importantly, how can I speed it up?
Yordanka
Telerik team
 answered on 02 Mar 2011
1 answer
119 views
There are separate WPF 3.5 & 4.0 installers, but I can't seem to install both at the same time.
Milan
Telerik team
 answered on 02 Mar 2011
3 answers
1.3K+ views
The visual for the RadRadioButton shows up as a toggle button with the toggle state based on whether it is checked. Is it possible to show the radio button as a traditional radio button instead? I'd like to do this because the traditional button conveys that the selection is exclusive whereas the current visual does not.
Tina Stancheva
Telerik team
 answered on 01 Mar 2011
4 answers
226 views
I have 2 GridViewComboBoxColumns in my GridView.
The second GridViewComboBoxColumn's ItemsSource is a property of the selected item in the first GridViewComboBoxColumn.

How do I accomplish this in XAML?

Thanks!
newbie
Top achievements
Rank 1
 answered on 01 Mar 2011
6 answers
199 views
So I have a RadGridView, with 10 items in it... CollapseAllHierarchyItems only seems to collapse half of them. I tried running a loop and invoking CollapseHierarchyItem on each member of Items, and that only does about half of them as well.

If I run this loop twice, going back to the main thread in between, it works. Any ideas?
Jerome
Top achievements
Rank 1
 answered on 01 Mar 2011
1 answer
69 views
How can I select row after clicing on control that is placed in it?
Ivan Ivanov
Telerik team
 answered on 01 Mar 2011
2 answers
159 views
Hi there, 

We want to use RadTreeListView to bind into Workflow Foundation's ModelItem.
The example shown in this sample code is using TreeView to display WF ModelItem. But in our requirement, we need additional columns to display information in the node. That's why we plan to use RadTreeListView. However, we haven't been able to bind it properly to ModelItem.

So, do you have any idea how to bind ModelItem to RadTreeListView?
Here is the simplified structure of ModelItem that we want to bind
  1. ModelItem has collection of ModelProperty
  2. The Value property of ModelProperty object is another ModelItem
  3. So, we want to bind to ModelItem (let's say MI), and then MI's children will be collection of ModelProperty.Value (which is also a type of ModelItem)

Thanks and best regards, 

Arinto
Maya
Telerik team
 answered on 01 Mar 2011
1 answer
194 views
Hi,

How can I move the arrow from right side to left side? I think the arrow stays on the right side defaultly.

Thanks!

James H.
Tina Stancheva
Telerik team
 answered on 01 Mar 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
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?