listview

Listview commandButtons inside an asp:updatePanel not working correctly

Hi, As the topic describes, i have a listview inside of an updatePanel which is causing me some problems. Each item in the listview has an edit command button, which works perfectly fine when not using the updatePanel. When using the updatePanel however, only the button in the very first item works. The other buttons fire an asyncPost...

Getting jQuery datepicker to attach to a TextBox within a ListView

I am using the jQuery Datepicker without any problem for TextBox controls that are non-templated. However, I am unable to get the datepicker to work with a TextBox that is in an EditItemTemplate of a ListView control. My latest attempt is to get a handle on this textbox by CSS class name "DateControl", any ideas? <asp:ListVIew id="lvTes...

Android ListView with alternate color and on focus color

I need to set alternate color in list view rows but when i do that it removes/ disables the on focus default yellow background I tried with backgroundColor rowView.setBackgroundColor(SOME COLOR); also with backgrounddrwable. rowView.setBackgroundColor(R.drawable.view_odd_row_bg); <?xml version="1.0" encoding="utf-8"?> <selector ...

RadioButton and EditText inside ListView problem

I want to implement RadioButton and EditText inside a row of a ListView. I am using an ArrayAdapter to populate the List. But the problem is that when i am selecting a RadioButton and scroll down the list and scroll up again the Radiobutton which had been selected is unselected. Same with the content of the EditText. The text getting rem...

how to change the layout margin for an Android ListView Programmatically

Hi, I have defined an List View in xml as below <ListView android:id="@+id/mylist" android:layout_width="fill_parent" android:layout_height="wrap_content" android:cacheColorHint="#00000000" android:layout_weight="1" android:layout_marginTop="95dip"/> And i need to re-defin...

List View doesn't render items in Details view

VariableBox = gcnew ListView(); VariableBox->Font = ScriptEditorOptions->FontSelection->Font; VariableBox->Dock = DockStyle::Fill; VariableBox->BorderStyle = BorderStyle::Fixed3D; VariableBox->BackColor = ScriptEditorOptions->BCDialog->Color; VariableBox->ForeColor = ScriptEditorOptions->FCDialog->Color; VariableBox->DoubleClick += gcnew...

C# Prevent ItemChecked event on a ListView from Interering with SubItemClicked?

I am using a in-place editable listview control for a project. The editable listview adds a 'SubItemClicked' event so that each 'cell' can be edited. lstSD2.SubItemClicked += new ListViewEx.SubItemEventHandler(lstSD2_SubItemClicked); I also have the listview checkboxes enabled with a 'ItemChecked' event. The problem is that once t...

Failed to load viewstate

OK have just started getting this error and I'm not sure why. I have a hosting page which has listview and a panel with a usercontrol. The listview loads up records with a linkbutton. You click the link button to edit that particular record - which gets loaded up in the formview (within the usercontrol) which goes to edit mode. After...

How to make divider part of each item in listview in android?

I wanted to change the divider height dynamically. From whatever I have searched it seems that it is possible through setting divider as part of each item in listview. But I am not very clear with this. So, can someone be more specific as how can one make the divider as part of item in listview? ...

How to find the data key on CheckedChanged event of checkbox in ListView in ASP.NET?

I am using a list view inside that in item template i am using a label and a checkbox. I want that whenever user clicks on the check box the value should be updated in a table.i am using a datakeys in listview.on the basis of datakey value should be updated in the table. Query is: string updateQuery = "UPDATE [TABLE] SET [COLUMN] = " + ...

Change default onListItemClick Behavior of ListView

Is there any way i can make my listactivity (rather listview) highlight the List Item when it is clicked (pressed) upon? (...and remain highlighted) The default behavior, simply highlights the item for a moment, and it gradually fades to black... Currently, the highlighting only happens when we use the DPad... It'd be ideal if atleast ...

iphone cannot rotate views in TabBar controller

Hello, I am working on an application that consists of a TabBar controller. Within on of its tab, I have a subclass of UITableViewController, within this list I have a Core-plot graph in the first cell and some other data in the 4 following cells. When I return YES in the shouldAutorotateToInterfaceOrientation method, I would expect the...

Change scrollbar color in Android

Is it possible to change the color or appearance of the scrollbar in a ScrollView or ListView? ...

I have a ListView using a custom ArrayList adapter - what's the best way to implement filtering ? Anyone have a example code to study ?

Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advice and/or sample code on the best way to implement filtering in a ListView ? ...

How to set widths of columns in Listview in WPF?

Hello, I have a listview and I need to have width of first column automatic (so the width is properly measurized) and second column that will take the rest of space in the head of listview. How can I do that? My XAML looks like this right now: <ListView HorizontalAlignment="Stretch" ItemsSource="{Binding ListViewItemsSource}" ...

Win32: List View Group Header Text Color

In Windows, a List View can have its items grouped, as in the following picture: My application employs a white-on-black GUI. Most of the controls (buttons, edit fields, check-boxes etc.) I have created myself, but I am kind of fond of the Windows List View control, so I want to use it. To this end, I set the background colour to blac...

On ASP.NET ListView with LinqDataSource, display the data when the search button clicked.

Hi all, I have a ListView setup with LinqDataSource and a button that triggers search function. To avoid display data on page_load, I set ListView's DataSourceID in the Click event of the search button, bind it and set result data in LinqDataSource's Selecting event. It works as I expected but It does't look pretty to set DataSourceId i...

Various items in a ListView row - screenshot example

Hi guys, i want to achieve this kinda of row look in my app. I already have a ImageView/TextView layout, but i want that 'positive' little image in the right always being displayed at the exact same place! Thanks! ...

Add to listview from another form

I am wondering how I can update my listview in form1 by entering data via textboxes in form2. My code works fine if i put all the text boxes on the same form etc. I figured I needed some reference to the first form on 2nd but can't get it working. Any tips for putting me in the right direction would be nice, also any tips for any bette...

ListView items won't show focus when touched

I've got a ListView that works just great, except for this minor annoyance. I can use the trackball/dpad to move up and down my list, and the background changes according to which row has focus. But when I touch the row (click or long click), there's no background change letting me know what's been focused. I've tried setting 'focusab...