Telerik Forums
UI for WPF Forum
1 answer
249 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
201 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
89 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
355 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
107 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
75 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
207 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
305 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
97 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
145 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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?