repeater

ASP.NET Menu: how to build custom menu

hi all, i have this situation: i have to build a menu with datasource from the db, because i have to filter them among the user that is loged in. i have tried building a menu using repeater, and all this works fine till i realized that i wanted the menu with more than two levels. i have also tried with treeview, but i really don't want ...

Dynamic Navigation

I am building a project in asp.net 4.0. My navigation will be database driven where i return a datatable from the db containing all the pages of my site, some will be top level while others will be children and sometimes children of children n-times. Im thinking of going down the nested repeater route and databinding from code behind, ...

Get the repeater selected item on pageinit

I have a page with a menu like navigation pane (too repeater) and a placeholder in these page. This is my problem : on menu item click i open different control in my placeholder, one at click. When i change them selected item in my menu on page init i load the old control and i load the new control on menu event. How i can get te selec...

jQuery highlighting with ASP:UpdatePanel

I'm currently working with the AJAX:UpdatePanelAnimationExtender and I've implemented it in code behind which is currently working perfectly but I've ran into a problem with using the UpdatePanelAnimationExtender and an ASP:Repeater. I've been messing around with different ways of implementing it but nothing has worked correctly... I've...

Dynamic Button in Repeater Postback

I have a nested Repeater control in the ItemTemplate of another Repeater. I want to dynamically add a delete and update button to certain items in the nested Repeater depending on their data value, in this case whether they're associated with the current user. A click to either button should handled server-side based so the data source...

Using the ASP.NET Repeater Control with List<T> object data

I have an ASP.NET web app that places several string data into an object as properties. The string data is sourced from a JSON feed from Twitter. A collection of my TwitterMessages is held in a Generic List. What I want to do is use an asp:repeater to iterate through my List<T> to display all of the contents of the objects it holds, by...

Wrapping LINQ query to a Repeater

Hi, At the moment I have ResultsCollection = List<MyDataStructure>; which is then analysed with LINQ using something like: var OrderedData = from tc in ResultsCollection ... select new { myLink = g.Key, Count = g.Count(), First = g.First() }; At the moment I have a Repeater that is deifned using: myRepeater.DataSource = ResultsCol...

How to get the bound item from within a ASP.NET repeater.

I have to set a LinkButton's OnClientClick attribute but I don't know what this value is until the LinkButton is bound to. I'm trying to set the value when the repeater binds, but I can't workout how to get the 'boundItem/dataContext' value... <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:LinkButton Text...

What do I miss here so that my asp:Repeater does not work?

I have this class: public class RateResultsSummary { public RateResultsSummary(string labelText, string dataText) { LabelText = labelText; DataText = dataText; } private string _labelText; public string LabelText { get { return _labelText; } set { _labelText = value; } } ...

Building a dynamic editable matrix - ASP.NET

Scenario: I am building a flexible discounting component, whereby discounts can be specified for different types of customers against different types of products (means tested). The discount categories, product types and discount rates are all configurable by the user and ideally I would like the user to be able to view and edit the dis...

How can I ensure a service is started at 9am and stopped 9pm every day?

I have a service that will monitor location changes daily. What I know so far that to start a service at boot, I have to follow the linked tutorial. This way I can get the service started at boot, but to save battery I need it only between 9am-9pm. Question is pretty simple, so I will repeat: How can I ensure a service is started at 9a...

Placing a break in repeater control

Hi, I want to place a break after every third item in my repeater control. How can i do that ? <asp:Repeater ID="rptrExample" runat="server"> <ItemTemplate> <td width="550px"> <p>E <%# DataBinder.Eval(Container, "DataItem.price") %></p> <img alt='<%# DataBinder.Eval(Container, "DataItem.title") %>' src='<%...

android repeater-like functionality

is there any type of 'repeater' type functionality in android? I have a relative layout (inside a row in a listview) and inside that I'd like to have a series of TextViews be displayed one after the other (as if they are child rows in the listview row). The issue is that the number of those "child rows" will vary. is there any way to ...

Asp.Net - ListView inside a Repeater

The DataSource (of my repeater) is a Dictionary<string, IList<User>> I would like the repeater to show all the Key of my dictionary and I would like my ListView to use all the Data inside the Value of my dictionary. It's should generated some kind of container. Container got a name (key of the dictionary) and got many values (Value of ...

ASP.NET Repeater template sub-control visibility before databind

I have a custom control which contains a Repeater control. The Repeater has an ItemTemplate. Inside that item template I have a panel which is going to hide something based on "IsEditable" a boolean property of the custom control. What I would like to do is set the panel's visibility once before the Repeater is databound. I know I could...

How can I persist the data from a repeater after postback?

I have a repeater that displays financial data and prices for various stocks. On this page, I also have an "export" button that needs to take the data ~on the screen~ and convert it into a CSV for the user. The problem is, after I databind my list of "Stock" entities: List<Stock> stocks = GetStocks() rptStockList.DataSource = stocks; ...

how to center a repeater on a page when it has a scrollbar

I have a repeater that I have added a vertical scrollbar to, if there are more than x number of records. If I have less than x, the repeater displayes centered and all is well. If I have more than x, the scrollbar is added but the repeater is all the way to the left. No matter what I do, I cannot get it centered. One of the things I ...

Flex - How To Modify The Verticle Gap In A Repeater

Hi, I Have a VBox, and set the verticleGap = 0. Inside the VBox I have a Repeater. When I run the App, the items listed from the Repeater have a large gap between each line. Is there a way to set the verticleGap on the Repeater, or reduce that space? Thanks ...

How to Conditionally determine Number of Data Items of a Nested Repeater Control!

Hi friends, I can use nested repeater to show my grouped data on a page (according to this: http://goo.gl/sH6g). In my case I have Category-Products structure and want to show each category and its products under it. But here are my problems: How can I limit number of products showing under each category. I want to determine for exampl...

Why are there no LINQ extension methods on RepeaterItemCollection despite the fact that it implements IEnumerable?

Why are there no LINQ extension methods on RepeaterItemCollection despite the fact that it implements IEnumerable? I'm using Linq to objects elsewhere in the same class. However, when I attempt to do so with the RepeaterItemCollection they aren't available. I was under the impression that the LINQ extension methods were available to c...