Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Grouping Repeater Transformations View modes: 
User avatar
Certified Developer 10
Certified Developer 10
varinder-kudosweb - 11/30/2013 6:46:30 PM
   
Grouping Repeater Transformations
--My last post got deleted or something?!--

Anyway, here goes again.

Im working an event timeline layout like below:
User image

This is whats been done so far:

-> Created a document-type specificaly representing dates
-> Added a repater webpart to list those dates
-> Added a nested transformation to show events related to current date in the transformation

User image

Now, there are a bunch of places where it says "No event found" - How can i group them to say something like "<StartDate> - <EndDate> No events currently scheduled"

Oh and btw, whats the best way of approaching this?

Thanks fellas,
Varinder

User avatar
Certified Developer 8
Certified Developer 8
richard - 12/3/2013 7:45:34 PM
   
RE:Grouping Repeater Transformations
Nesting repeaters is definitely not the best approach - it is extremely inefficient.

Hierarchical transformations could help. I would however tend to create my own webpart and do the looping logic in the code behind.



User avatar
Certified Developer 10
Certified Developer 10
varinder-kudosweb - 12/4/2013 2:44:21 PM
   
RE:Grouping Repeater Transformations
Thanks for the input man.

You're right, nested repeater approach did felt a bit slugish. Wonder if there is an "interface" to check performace? as in, how long did the sql query took or how many queries were made?

I'll go with the custom-webpart-way and post the outcome here.

Oh and btw ( hope im not asking too much ) - are there any detailed articles outlining approaches to develop kentico webparts?

Well, i did found this
but its quiet high level .

Thanks,
Varinder

User avatar
Member
Member
kentico_sandroj - 12/4/2013 6:11:12 PM
   
RE:Grouping Repeater Transformations
Hi Varinder,

You could use the SQL debug to check the performance impact. As for developing the Web part, that is the only documentation we have for starting from scratch. Perhaps cloning and modifying a Web part may be another approach. Our KBs and FAQs also have some useful information.

Please let me know if you have any questions.

Best Regards,
Sandro

User avatar
Certified Developer 10
Certified Developer 10
varinder-kudosweb - 12/4/2013 9:33:46 PM
   
RE:Grouping Repeater Transformations
Hi Sandroj,

SQL debug is super awesome!

Regarding my current issue, I'll try user-control-thingie

Thanks
Varinder

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/5/2013 8:58:15 AM
   
RE:Grouping Repeater Transformations
As Richard mentioned, I'd use a Hierarchical Viewer and transformations before I'd create my own webpart or user control. The Hierarchical viewer already has all this functionality built in and your user control or webpart may not be upgradable when that time comes. Best to stick with the out of the box tools in my opinion.