This is a migrated thread and some comments may be shown as answers.

[Solved] Grouped Row with Sparklines

5 Answers 105 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fahad
Top achievements
Rank 1
Fahad asked on 30 Jun 2011, 04:46 PM
Hi Guys, Can anyone of you prepare a sample that shows a grouped row with a sparkline? The grouped row should have aggregation for the sparkline column and should be automatically showing it on the row. I'm not able to visualize on how to customized the grouped data during custom aggregation, if you can provide a sample for that it would be cool!

BTW, I checked your custom summary implementation, it is completely reflection driven which is bad for performance reasons. You could alternatively expose a Func delegate with required parameters and call the func from your code to invoke the operation. That should be the easiest way for it to work and have less performance implications.

Fahad

5 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 01 Jul 2011, 09:00 AM
Hi Fahad,

Could you elaborate a bit more on this scenario? It will be very helpful if you can send us a sample data that you want your Sparklines to be populated with as well us some more details on what do you expect to see by grouping the GridView.

Regards,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fahad
Top achievements
Rank 1
answered on 01 Jul 2011, 07:23 PM
Hi Evgenia, 

It's a pretty simple scenario, let me explain it with your sample browser samples, Just add a column to this below sample with some common groups,

http://localhost:6519/Default.aspx#BulletGraph/FirstLook

If you group it by that new column, the grouped rows should have a summary of the sparkline column, I just need to know how-to write my custom summary that will be a list of objects instead of a property.

BTW I do have a sample that you may use it to check on this, but it is in F#, I use F# for my project and the data generated is a random brownian motion,

http://dl.dropbox.com/u/23500975/Telerik/RiskAnalysis.zip

The generated data might be a bit hard for you to prepare the sample, so best is to do with your sample itself, I just need to know how-to do it, ill check with my code and do the custom aggregation.

-Fahad
0
Vlad
Telerik team
answered on 04 Jul 2011, 07:04 AM
Hello,

 More info about custom aggregates can be found on this demo

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Fahad
Top achievements
Rank 1
answered on 04 Jul 2011, 07:21 AM
Sorry, I already checked it and I'm not able to figure out how to pass the whole array of items and then summarize it, the whole summary logic is based upon reflection and is quite hard to understand. That was the reason I had created this forum, Can you please let me know if you can prepare the sample with a sparkline in the groupfooter or the footer cell?
0
Fahad
Top achievements
Rank 1
answered on 05 Jul 2011, 10:11 AM
I found a way to get this scenario working with a big "workaround", but you have to consider changing your custom summary logic, it is not strongly-typed when you specify your custom summary extension and is certainly way too hard-coded inside your source too, it is just can of worms when you actually try to write custom summary extension. You can certainly use LINQ to generate sequences of arbitary types without knowing the what the column type is.

Hope you guys take this as a feedback and make changes in your future versions.

-Fahad
Tags
GridView
Asked by
Fahad
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Fahad
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or