listview

PHP equivalent of a ASP.NET Listview/ Gridview

Hi I'm fairly new to PHP and was wondering if there is an equivalent in PHP of an ASP.NET Listview or Gridview with paging and easy formatting? ...

ListView not updating after RaiseCanExecuteChanged is called

I have a ListView that is bound to a collection of view models. The Item template contains a button that is bound to a command on the view model. When I set the property that the ItemsSource of the ListView I call RaiseCanExecuteChanged for each viewmodel. public BindingList<IVehicleViewModel> Vehicles { get { return _vehic...

Is there a way to get the ID of a select button from the EventArgs of a ListView SelectedIndexChanged?

I have two buttons in a list view that adjust the position of that item, basically, moves it up or moves it down. Both buttons have the CommandName="Select" so I need to know if their ID is somewhere in the EventArgs so I can tell if the Up or the Down button was pressed. This is my temporary sol'n, maybe it'll give you a better idea of...

Adding MouseBindings to Items in a databound WPF ListView.

Hello, I'm trying to get a command in my ViewModel executed when the user clicks on a item in a ListView. When I add a ListViewItem in XAML I can just add a MouseBinding to its InputBindings. <ListView> <ListView.View> <GridView> <GridViewColumn Header="Test" /> </GridView> </ListView.View> <ListViewItem Content="Item...

Java - Tokenize Parameter List

I'm trying to create a method which takes a String parameter and then returns a two dimensional String array of parameter names and values. protected final String[][] setParams (String parms) { String[][] params; int i = 0; Pattern p = Pattern.compile(NEED_REGEX_HERE); Matcher m = p.matcher(parms); params = String[m...

How do I get the ActualWidth of the GridViewColumn

I have the following XAML: <GridView x:Key="myGridView"> <GridViewColumn CellTemplate="{StaticResource myTemplate}" /> </GridView> <DataTemplate x:Key="myTemplate"> <ContentPresenter Content="{Binding}" /> </DateTemplate> When I use it, I want the contentpresenter to have the same width as the GridViewColumn. So far, I've ...

Updateable Google Sitemap for ASP.NET 3.5 Web App Project

I am working on an ASP.NET 3.5 Web Application project in C#. I have manually added a Google-friendly sitemap which includes entries for every page in the project - this is not a CMS. <url> <loc>http://www.mysite.com/events.aspx&lt;/loc&gt; <lastmod>2009-11-17T20:45:46Z</lastmod> <changefreq>daily</changefreq> <priorit...

How to make a HTML list appear without the bullets signs using CSS only?

The browser will consider the list existence and arrange them accordingly, however won't show the small icon next to each one of them like the following: Normal list appear like the following: text A text B text C I want them to appear like this text A text B text C ...

How do I get Ajax to work with Telerik DockZone, ListView and DataPager

I'm having a bit of a difficult time trying to figure out exactly how to make a correct Ajax call work with the Telerik DockZone, ListView and DataPager. I'm hoping someone can help out a bit. I am dynamically adding RadDock in code behind to the Zones. Here is code for main page (which I have to restructure soon b/c of lots and lots o...

How to use DisplayMemberPath to show an item in a specific column

I have a ListView with several GridViewColumns (Title, Start, Due). So how can I bind an object with a string Title, datetime Start, and datetime Due. In procedural code I have already stated: lvwFill.ItemsSource = assignments.ListAssignments(); //Returns a List<Assignments> So now my XAML is: <ListView x:Name="lvwFill">...

WPF: Setting ItemSource in XAML vs. code-behind

Since this is WPF, it may look like lots of code, but don't be frightened, the question is really simple! I have the following XAML: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:hax="clr-namespace:hax" x:Class="hax.MainWindow" x:Na...

Object Data Source not filtering my listview?

Hi I'm trying to filter a listview, using a textbox control via an object datasource. However when I add anything nothing happens . I've created something similar before and all the codes pretty much the same. anyone got any ideas' what I'm missing ?? <asp:TextBox ID="namefilter" runat="server" /> <asp:Button ID="button1" runat=...

Keep same selected Item in a ListView when the collection it is bound to is refreshed

I have a ListView that is bound to an ObservableCollection which is itself derived from an IQueryable. When I refresh the collection, after items are added, edited or a button is clicked (to see if the database has new items from other users). The listbox refreshes and selects the first item in the collection. I want to keep the same s...

C# ColumnHeader's free space background color.

Hey, I'm trying to draw custom ColumnHeaders in a FastObjectListView control. So far the code works, but the ColumnHeaders free space ( so the part that does not contain any column headers atm ) still draws as default. private void olvMain_DrawColumnHeader(object sender, DrawListViewColumnHeaderEventArgs e) { e.Graphics...

WPF ListView Nested Tables with Matching Columns

I have a business entity like so: public class Entity { public string Name; public string Description; public Entity Parent; public ObservableCollection<Entity> Children } I would like to bind a ListView to a collection of Enities and get a nested table out of it like this: http://leeontech.wordpress.com/2008/03/11/li...

Selection change event for MFC CListCtrl, caused by mouse/keyboard input only.

hi, i am using an mfc ListCtrl, is there anyway to know if a selection change was caused by mouse/keyboard input rather than a programatic change? i am after the same behaviour as ON_LBN_SELCHANGE for a listbox. thanks ...

Making child ListView scroll

Hello I am trying to make a terminal type app that is wider than the actual android screen. A listview is great except that I don't want the text to wrap. If the text is wider than the screen I want it to print the full text and then the user can scroll over horizontally if they want to see what was printed off the screen. Just FYI this ...

how to list the audio files in a Listview in android

Hi, I am new to this android application development. I have a audio files in a particular directory. I want to list the those audio files in a listView. please tell me how to do this activity. ...

What's the right way to handle data paging for UX and SEO?

I have ListViews and DataPagers in place throughout my site. Most of them are wrapped in an UpdatePanel for better UX. However, when I start using AJAX to improve UX, I lose value in SEO. What's the right way to get the best of both worlds? I see that I can add the QueryStringField parameter to the DataPager, which will automatically r...

Change Selection in a ListView from Orange to Green

How do I do this per selected list item. I tried adding this to android:background <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_focused="true" android:state_pressed="false" android:drawable="@color/android_green" /> <item and...