Telerik Forums
UI for WPF Forum
1 answer
275 views

*** MODERATOR : This should be in WPF GridView - not sure how to move this & don't want to post twice ****

So I found out from support that the the .Columns collection is not populated until the grid is
shown when bound dynamically. I'm not sure I agree with that functionality.  I should have access to these collections right
after the data is bound.  Anyway, I am trying to add an aggregate function after the data is bound.  My ultimate goal is
to be able to go through my columns, and dynamically apply aggregate functions to the column based on the data type.
As stated below, this will always be dynamically bound, I do not want to define my grid columns via XAML pre-bind since this will
be changing based on the dynamic binding.

Any help would be greatly appreciated!

Thanks!

Daryl

 

 

// I have some code that fills the grid dynamically.  
// This is SUPER important as I will be filling this over and over
// again via some other widget which will bind to different SQL queries when the 
// user clicks the "other widget" - say a tree control full of different queries. 
// I DO NOT want to PREDEFINE what my columns are going to be via XAML

// As a sample, lets say in the load event of the form I fill the grid
// with this SQL 
 
DataTable dt = g.DB.SelectDataTable("select * from category");
MyWPFGridView.ItemsSource = dt;
  
  
// I am trying to create a "dynamic" aggregation function on the
// first column but
// I am not seeing it manifest itself in the grid...
// ALSO:  I am seeing this event get called TWICE...why?
  
void Form1_DataLoaded(object sender, EventArgs e) 
  
{
   Debug.WriteLine("Form1_DataLoaded :: Telerik WPFGrid Column Count: " + MyWPFGridView.Columns.Count); 
   CountFunction f = new CountFunction(); 
   f.Caption = "Count"
   MyWPFGridView.Columns[0].AggregateFunctions.Add(f); 
}

 

Milan
Telerik team
 answered on 23 Feb 2011
1 answer
219 views
Hi,
is it possible to set the DropDownContent open direction to right?

Thanks Gianmaria.
Tina Stancheva
Telerik team
 answered on 23 Feb 2011
1 answer
105 views
Hi team,
I have a set of PDF files that I have converted into PNG files to be used in Radbook, by doing so I have lost all the links. Is there is way where I can select a region in radbook and map it to a hyperlink. Any code sample would be helpful.
Thanks
Tina Stancheva
Telerik team
 answered on 23 Feb 2011
10 answers
381 views
I am porting code from RadScheduler to ScheduleView.
I have few questions
1) In my code I was creating DataTemplate and binding it to the AppointmentTemplate.
I do not see this property on the ScheduleView, Can you advise how to bind it at run time?

2) All of my appointments are AllDay how can I adjust "AllDay" height on Month and Day View?

3) I do not see a IsReadOnly property on the ScheduleView anymore, How can I set it?


Best Regards,

Tom
 
Rosi
Telerik team
 answered on 23 Feb 2011
1 answer
122 views
Hi there,

Actually I m using Rad Carousel Control and I noticed something if i have the maximum of 2 images it doesn't show until i scroll down or click the forward button. But if I have like more than 5 Images it shows everything fine. I m trying to fix this but i don't know if someone can tell me what i m missing ill be very appreciate thanks

Maya
Telerik team
 answered on 23 Feb 2011
2 answers
93 views
Hello,
I want to localize the filteroperation with resources files, is it possible?
Thanks,
Sophie
Boutorine
Top achievements
Rank 1
 answered on 23 Feb 2011
2 answers
241 views
Hello.

I hope I've got a simple question.
How can I place one (or two) TabItem(s) at the right side, while the others stay left; for example

Tab1    Tab2    Tab3                            TabHelp

Is this possible?
Thanks a lot,
Tim.
Tim Tos
Top achievements
Rank 1
 answered on 23 Feb 2011
6 answers
388 views
Hello.

I've got a GridView and a textbox.
The GridView has a databound column with integer values (for example: 111, 2222, 33333, 1234).
If the user now types into the textbox for example '2' only the rows with '2222' and '1234' should remain visible - the others are filtered out.

How can this be done? Is it possible to do it all with xaml and databinding?
I've looked at the custom FilterDescriptors but I couldn't wrap my head around it... - but I think I need one.

Thanks a lot!
Greetings and best wishes,
Tim.
Tim Tos
Top achievements
Rank 1
 answered on 23 Feb 2011
3 answers
116 views
I am trying to programmatically change the drag item text for items in my TreeView using the default style.  I know by default it is using the .ToString() method of an object to display.

Thanks
Ryan
Petar Mladenov
Telerik team
 answered on 23 Feb 2011
4 answers
175 views
Hi,

Currently the defalt tooltip when you rollover a color in the color picker is its Hex representation.
Is there a way to customize it?

Thanks,
Gili
Gili Korman Golander
Top achievements
Rank 1
 answered on 23 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
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?