repeater

Flex - databinding from a Tree to a Repeater

Hi, I'm trying to make an XML questions editor in flash. Basically I load in the XML into a Tree component - XML like so: <questions> <question id="1" type="radio" text="This is question 1" isBranch="true"> <option id="1.1" correct="false" text="This is option 1" /> <option id="1.2" correct="false" text="This is option 2" /> <opti...

In .aspx, how to pass a value from asp:Repeater to code behind function

So, I want to use jquery to set the text of a button, depending on the value of a property in the current row of a repeater. I need to call a function in the code-behind to map the value to the text the button should have. So, I need to pass to my foo function, the string value of the UserStatus property for the current item in the repe...

Repeater for display sets

I need to display something such as below. Type A Type A Item 1 Type A Item 2 Type A Item 3 Type B Type B Item 1 Type B Item 2 Type B Item 3 Type C Type C Item 1 Type C Item 2 Type C Item 3 All of the data comes from a dataset with columns 'Type' and 'ItemName'. Now an easy solution would be to create a repeater for each 'Ty...

Export to Excel from a Repeater?

Right now I am using this to export a repeater (with multiple nested repeaters) to excel: protected void ExportToExcel(object sender, EventArgs e) { Response.Clear(); Response.Buffer = true; Response.AddHeader("content-disposition", "attachment;filename=finance.xls"); Response.Charset = ""; Response.ContentType = "application/vnd...

ASP.Net: How to add rows to a repeater using DOM/Javascript?

Hi Guys, I know that the asp.net repeater doesnt have a Client side object model, and we are stuck with improving the performance of many pages which have repeater/gridview with the functionality of adding rows to them by server-side code. We have used updatepanels to ajaxify the functionality adding the rows to the repeater/gridview, ...

ASP.NET & JSON: Function to convert GridView and Repeater in a JSON string.

Hi Guys, I need a JavaScript function which will take the Asp.net Repeater as input. The function must then parse through the object and return the data in the the rows of the object as JSON. I can them send the JSON back to the server to be interpreted/parsed and saved to the db. ...

<script>...</script> inside a repeater control code not showing up in the source code on page render

I have a repeater control where the <%#DataBinder.Eval(Container.DataItem, "Display")%> part doesn't show up. The code that the "Display" stores is set as follows: item.Display = "<script type='text/javascript'>AudioPlayer.embed('ffcedea7- 4822-465f-85b6-89924f7b81fa', {soundFile: 'http://s3.amazonaws.com/blah/af8g7fd3-1793 -4b5e-92b7-9...

How to dynamically refresh a .NET databound repeater control

I have a .NET repeater control that is data-bound to a List. As part of the Repeater's ItemCollection, I have a "Remove Button" that effectively removes this current List element. This works, in code-behind I can successfully remove an item from the datasource of the Repeater. My problem is this : when I reset the updated datasource ...

How to know the ordinal position of an ItemTemplate

Need to add styles (class="bBot") to the first ItemTemplate item, how do I know it's the first? <asp:Repeater id="ArticlesRepeater" runat="server"> <HeaderTemplate> <div class="FR boxW380"> <div class="cnt mag"> <div class="FR"> <a href="#">Subscribe</a> &#160;...

How to avoid 'Failed to load viewstate' exception when adding markup to a repeater?

I have a custom control that inherits from Repeater. I need to inject some markup around the items within the repeater. Currently im looping around Repeater.Items (OnPreRender) and adding LiteralControls containing the markup. This works great except for when performing a postback, as it throws the 'Failed to load viewstate' exception. ...

Repeater's SeparatorTemplate with Eval

Hi, is it possible to use Eval or similar syntax in the SeparatorTemplate of a Repeater? Id' like to display some info of the last item in the separator template like this: <table> <asp:Repeater> <ItemTemplate> <tr> <td><%# Eval("DepartureDateTime") %></td> <td><%# Eval("ArrivalDa...

asp.NET: How to access repeater generated elements?

i have a repeater than creates a table: <itemtemplate> <tr id="theTableRow" runat="server"> <td> <asp:LinkButton runat="server" OnClientClick="todo" Text="Do Something" /> </td> </tr> </itemtemplate> Note: the OnClientClick="todo" line. In the final rendered code, i want the todo to...

Using an ASP.NET repeater with an array?

This may be a silly question but I was writing a quick test page and realised that I didn't know how to bind an array or ArrayList of strings, for example, to an ASP.NET Repeater. I experimented a bit. <asp:Repeater ID="rptImages" runat="server"> <HeaderTemplate> <h3>Items</h3> </HeaderTemplate> ...

Create a new tab or window for a web page from ASP.NET

I have a main page that I want to be a sort of dispatch center for the user in my web application. So I want the main page the stay open, but when the user selects certain tasks I can set it up so that a new tab or page is created with the task that they selected. I know how to transfer control to another page, but how can I do somethin...

checkbox select/deselect in repeater when click on text (jquery)

say we have simple asp.net repeater, in a row we have one checkbox, one label (database-id of the record) and not visible (used for postback) and one text (in a tabelcell) now i want to make it like in windows, if you click on the text, the checkbox should be selected or deselected. has somebody a link or solution for this, maybe alre...

Nested Repeaters and SqlDataSource Parameters.

I am using nested repeaters to build a table for reasons I won't discuss here, but what I'm looking to do is have two datasources, one for the top level repeater that will correspond to the rows, and one for the second level repeater that will return cells within a row. What I'm wondering, however, is if I can somehow specify a paramete...

Why is the footer-item not included in Repeater.Items?

I need to get a value from a textbox inside a FooterTemplate in the OnClick event of a button. My first thought was to loop through the items-property on my repeater, but as you can see in this sample, it only includes the actual databound items, not the footer-item. ASPX: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> ...

What's the best way to show multiple checkboxes for multiple records in ASP.NET

The situation is as follows: I have a database with many RSS Categories, that in turn have many RSS Feeds. I want to display them in the following fashion: RSS Category 1 [ ] Rss Feed 1 [ ] Rss Feed 2 [ ] Rss Feed 3 RSS Category 2 [ ] Rss Feed 1 [ ] Rss Feed 2 [ ] Rss Feed 3 Where [ ] represents a checkbox. So each RSS Feed ...

asp:repeater - headers at section change

Hi, is there any way to bring up a subheader row at changes in a field in an databound asp:repeater control e.g. Instead of country | colour | number uk | red | 3 uk | green | 3 france | red 3 Do this: ==UK== colour | number red | 3 green 3 ==FRANCE== colour | number red | 3 Many thanks for any help. ...

Building dynamic links with Repeater control

I am rendering data using Repeater control. Let's say there are 2 fields in the data source: productName and ProductID In the following code: <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <HeaderTemplate> <ul> </HeaderTemplate> <ItemTemplate> <li> <%#Eval("productName")%> <br/> <asp:HyperLink ID="lnkDetails...