Telerik Forums
UI for WPF Forum
1 answer
226 views
I would like to make an Expander is expanded or collapsed only if you clicked on the button to the left and not if you click the header.

The thing is possible?
Martin Ivanov
Telerik team
 answered on 04 Jul 2014
1 answer
748 views
I have objects which contain lists of dynamic and unique Child objects.  I would like to pivot the Child objects onto the grid so they display as one row.  I have the grid working but I can't quite get the syntax for the binding.

I have an object model like the following:

public class ParentObject
string Name
long ObjectId
List<Child> Children {get; set]

public class Child
string ChildName
string ChildValue

My grid is defined as:
<telerik:RadGridView  x:Name="myGrid" Grid.Row="0" VerticalContentAlignment="Stretch" AutoGenerateColumns="False">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" />
<telerik:GridViewDataColumn Header="Object Id" DataMemberBinding="{Binding ObjectId}" />
</telerik:RadGridView.Columns>

In the code behind I dynamically add every possible Child.Name to the grid as new columns.
List<Child> allChildren = _dataAccess.GetChildren();
 foreach (Child c in allChildren)
 {
                myGrid.Columns.Add(
                    new GridViewBoundColumnBase 
                    {
                      //DataMemberBinding = new Binding("Children[0].Value"),   //this does display the child value but puts it in every column.  I can't hardcode the 0
                        //DataMemberBinding = new Binding("Children[\"" + c.ChildName.Replace(" ","") + "\"].ChildValue"),   //tried by child Name but it doesn't bind.  To do this I updated my List so it was searchable by Name. 
                        //DataMemberBinding = new Binding("Children.ChildValue"),   Does not work
                        Name = c.Name.Replace(" ", ""),
                        Header = c.Name
                    });
    }
All of the correct columns display, I just need to know if it is possible to do a match on the ParentObject.Children.Name to a column so the grid can display the ChildValue field.
A Linq statement similar to Where(x => x.name = column name) I would think would work if that is possible in a Binding.








Boris
Telerik team
 answered on 04 Jul 2014
2 answers
194 views
Perhaps I am just missing some settings, or maybe this is just how it is at the moment, but I cannot seem to get documents with images to print with any kind of quality.

The image is in the header, I can recreate the document in Word, and copy/paste the image back and forth between Word and RadRichTextBox; the image is crisp and clear in Word and horribly unclear when printed from the RadRichTextBox. If I export the document as a word document and print it form Word that way, the images are unclear as well.

Is there anything I can do?
C
Top achievements
Rank 1
 answered on 03 Jul 2014
1 answer
152 views
Hello Guys,

So i have one parent radgrid and i have one datatemplate which has one other child radgrid inside that template which i have assigned asRowDetailsTemplate of parent grid so every row of my parent radgrid will have one child radgrid.

So now I want to export the data of radgrid so with parent radgrid i want to export child radgrid data also. So i have seen many forums which says that it is possible in the below link http://www.telerik.com/forums/export-hierarchical-radgridview

So when i call export method from parent radgrid with export format as CSV and subexports child grid with export.ToCSV method then it works perfectly for CSV but if i used export format for HTML and subexports child grid with export.ToHtml method then it is not working correctly  disturbs my parent radgrid data so after all child radgrid my parent radgrid full data comes in one cell so one full row data comes in one cell instead of getting the value in different cell.

I have attached the image for the same and have marked the box as green for parent data coming correctly and red for the other parent data after child grid which is not coming correctly.

I would really appreciate if someone could help me out with this.

Thanks in advance.
Ivan Ivanov
Telerik team
 answered on 03 Jul 2014
1 answer
117 views
Hello Guys,

So i have one parent radgrid and i have one datatemplate which has one other child radgrid inside that template which i have assigned asRowDetailsTemplate of parent grid so every row of my parent radgrid will have one child radgrid.

So now I want to export the data of radgrid so with parent radgrid i want to export child radgrid data also. So i have seen many forums which says that it is possible in the below link http://www.telerik.com/forums/export-hierarchical-radgridview

But when i run that application and export then it exports my child radGrid data but it disturbs my parent radgrid data so after all child radgrid my parent radgrid full data comes in one cell so one full row data comes in one cell instead of getting the value in different cell.

I have attached the image for the same and have marked for the data coming differently.

I would really appreciate if someone could help me out with this.

Thanks in advance.

Ivan Ivanov
Telerik team
 answered on 03 Jul 2014
1 answer
137 views
hi there,
Just need some ideas with this OutlookBar control is there any option or technique to bind the OutlookBarItemMinimized template contains Image control where I want the source of it bind to the OutlookBarItem Icon is this possible?
Milena
Telerik team
 answered on 03 Jul 2014
1 answer
125 views
I would like to increase the size of settings pane and display my custom controls in tabs.

I understood how to display custom controls, however I still cant figure out how to resize the settings pane itself.

Can you please explain how this can be done ?
Petar Mladenov
Telerik team
 answered on 03 Jul 2014
3 answers
132 views
Hi,

I have my own DragDropBehavior and I would like to know in the DragCompleted over which special slots tghe appointment as been released.

Thank's
Alain
Kalin
Telerik team
 answered on 03 Jul 2014
1 answer
266 views
Hi,

We are considering using Telerik UI for WPF but would like to know if it is possible to customise which columns are present in the grid and the ability to save the preference (so each user running the system can have their own view of the grid only showing information/columns they are interested in)

Many thanks,

Mike
Boris
Telerik team
 answered on 03 Jul 2014
1 answer
120 views
Hi,

I have a bound GridView with calculated row totals, when we edit a cell and mouse click out the cell saves and total calculation works fine.
When we edit a cell and 'enter' out the total is calculated but the grid becomes sort of read only.
I say sort of because the only key that any cell will accept is the space key, letters/numbers are being blocked.

The code behind I am using to fire the row total update is here, the actual viewModel is simply do a linqesque query across some of the columns (this works fine).
I had to add boolean called refresh into the mix because otherwise when I called Rebind() inside the CellEditEnded it went into a infinite loop, so refresh just forces the rebind to happen once each edit.

private void dgDisplay_CellEditEnded(object sender, GridViewCellEditEndedEventArgs e)
{
    refresh = true;
    _viewModel.UpdateAllowedDisplayunits();
             
    this.dgProducts.Rebind();
    dgProducts.IsEnabled = true;
}

private void dgProducts_SelectedCellsChanged(object sender, Telerik.Windows.Controls.GridView.GridViewSelectedCellsChangedEventArgs e)
{
    refresh = false;          
}


This all works if you click out of the edited cell, but as soon as you hit the enter key it blocks key inputs to the grid cell, except for the space key which it allows?

Any ideas would be gratefully accepted

craig
Dimitrina
Telerik team
 answered on 03 Jul 2014
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
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?