Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Basic Repeater View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 5/29/2013 4:41:07 AM
   
Basic Repeater
Hi,

I am new to Kentico as well as ASP.net. Can anyone provide small example how to write basic repeater. Following is my requirement.

I have HTML/CSS3 based drop down which has a list of locations. On click of any of the value I want to display location specific information. Correct me if I am wrong, I realized through docs that I would need to implement a repeater.

I require very simple layout. On dropdown click I need to update location image, location name and location data.

Warm Regards,
Chetan Sharma

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/29/2013 7:13:47 AM
   
RE:Basic Repeater
With a Basic Repeater web part, you typically hook it up to some sort of data source web part (sql, custom query, etc). Once you define the data source, you attach it to the Basic Repeater web part and define your transformations (items). In your Basic Repeater properties you can specify HTML content before and after so you can wrap your results in a <div> or <ul> or whatever you need.

You might start out by looking at the Corporate site example to see how some of the web parts are setup. You could also look at the documentation to get some examples

User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 5/30/2013 2:00:52 AM
   
RE:Basic Repeater
Hi,

Thanks for the help. I am able to write basic repeater with custom table. I have one more question to customize it further. I have a drop down written html/css3. Is it possible to send some value via javascript and fetch that value from custom table and render template?

Like if I select NY. JS should send value 'NY' to custom table . Get data for NY from there and that value I can pass to repeater to display?


User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 5/30/2013 8:42:19 AM
   
RE:Basic Repeater
You could use some JS and REST services to do that I believe. Or you could create a custom web part to do that.

User avatar
Member
Member
Swainy - 5/30/2013 8:50:12 AM
   
RE:Basic Repeater
Hi Chetan,

if you are using Kentico 7.0 take a look at my blog post about the Kentico Web Service class...

https://swainy2k.wordpress.com/2013/05/15/kentico-web-service-class/

You can do exactly this (pass in parameters in jquery and return objects).

If you need anymore help just let me know,

Thanks,

Matt