items

MySQL - Saving items

Hello, This is a follow up from my last question: http://stackoverflow.com/questions/2046610/mysql-best-method-to-saving-and-loading-items Anyways, I've looked at some other examples and sources, and most of them have the same method of saving items. Firstly, they delete all the rows that's already inserted into the database containing...

how to save sortable items in mvc

i have been working on my carousel items. i need to have a sortable list views in order for me to choose the appropriate format of details in the actual site. i was able to do the sortable items using this command in jquery $(function() { $("#subsortsortable tbody.content").sortable(); $("#subsortsortable tbody.content").disab...

Show listView.Items in a ComboBox

hi all, how can show the listView.Items on Form2 in a ComboBox on Form1 and i want to use all data (subitems) from the selected Item how can i do that? please make it easy to understand :) thank you in advance ...

how to use hash table to avoid duplicate entries in a listview when items are added to it?

what is the way to avoid the redundancy in the listview when the items are added to it.. im using winforms c#.net.. i mean how can i compare between the items in listview1 and items in listview2 so that while adding the items from one listview to another it could not enter the items that are already entered in the target listview.. im ab...

best way to find similar items in python

I have 1M numbers:N[], and 1 single number n, now I want to find in those 1M numbers that are similar to that single number, say an area of [n-10, n+10]. what's the best way in python to do this? Do I have to sort the 1M number and do an iteration? Thanks ...

Custom property value problem.

My projects involve a number of usercontrols that are actually full blown applications. These usercontrols are designed to be placed onto tab controls. The apps area used by 2 different office locations, so one of the common items found on the controls is a combobox that lists the ID's for each of the 2 offices ('P' and 'G'). I wanted t...

PHP find array keys

In PHP I have an array that looks like this: $array[0]['width'] = '100'; $array[0]['height'] = '200'; $array[2]['width'] = '150'; $array[2]['height'] = '250'; I don't know how many items there are in the array. Some items can be deleted which explains the missing [1] key. I want to add a new item after this, like this: $array[]['w...

Excel VBA Userform Combobox problem

I'm having difficulties with a Combobox in a userform in an Excel document. The combobox either doesn't appear in the userform, or the combobox remains blank, and when I enter any character in it, the list of items appears, but 2 or 3 times, instead of just once. When I select an item, the chosen item doesn't appear in the box. It seem...

PHP Menu Items Count then add under more button

Hello, I use the bellow code to load the main menu elements from some CMS, the present code is perfect except that it loads ALL the main items on a single line of menu - which will make the width of it unusable in any centered design (under 1000px).. I want to change this script so after 15 main elements will add a "MORE" button under w...

wxPython - Save Items in ListCtrl

Hello everyone. My question is if we can save the items on ListCtrl so everytime someone opens the application, the items are there and if the user removes it, it also removes from the configuration. I know that I can use wx.Config and I'm trying to accomplish using that but I don't know how to read it in a way to accomplish what I want....

C# - adding new groups with items and subitems to a listview

Hello there. The following code adds a new item, and a new group with the text "Default". If i keep clicking the button, it will just keep adding new items to that particular group. ListViewItem item = new ListViewItem(""); item.SubItems.Add(""); csslistview.Items.Add(item); What i'm trying to do, is to add a new group and fill it wi...

ItemsControl that loads items one by one asynchronously.

Hey Guys, I am creating a custom DataGrid by deriving the traditional tookit based WPF DataGrid. I want a functionality in the grid to load items one by one asynchronously, wherein as soon as ItemsSource is changed i.e. a new collection is Set to the ItemsSource property or the bound collection is Changed dues to items that rae added, m...

Binding Listbox Items

Hi, I have a user with it's roles, it's an entitycollection. I have a ListBox that has all possible roles, and I have them like checkboxes, but I want to bind the IsChecked property of each one to check if the user has the role. Something like IsChecked={Binding Roles.Contains} ...

Searchable item enabled?

Hi, How do programmatically see in android that a searchable item (search provider) is enabled or not? This would be good to know so you could tell your users with a message that they should activate it in order to see related search suggestions. Best regards, Anders Tieto ...

c# windows forms link button to listview

Hi, I am using c# windows forms. I have multiple buttons linked to a listview which when a button is pressed, a new item is added to the listview. The column headers in the listview are 'Name' and 'Amount'. When a different button is pressed, a different item is added to the listview. The thing i need help with is as follows: When the s...

sql query to return items based on text and group ID

I am not sure how to best describe what I am trying to do (or search for it for that matter) but I am going to try. I have a pre-existing query (stored procedure) that returns items based on 3 specific ID's. What I want to do is to be able to reduce the results even further based upon a column within the results having the exact same st...

SharePoint form-based authentication problem with itemDeleting event?

Hi! I have a SharePoint site (I'm the farm administrator with full control over the farm and site) and I used Windows authentication. I had a event receiver feature installed which manage add/update/delete for my lists to have custom behavior. Everything worked ok on Windows Authentication. But... now I am using form-based authenticati...

Retrieve DTE2 ProjectItems

How can I retrieve a file (ProjectItem) from the _applicationObject given its full path, filename, or any other property obtainable via Item.Properties.Item("PropertyName")? Surely I don't have to loop through each item in the project until I find a match? ...

How to re-use controls from ItemsControl in the StackPanel

I am working on a drag & drop. I need to move a control, that originally in the ItemsControl to a StackPanel. I keep getting "Specified Visual is already a child of another Visual". I've already took the item out of the ItemsSource of the ItemsControl. After control is removed from the ItemsControl, the Parents, or TemplatedParents o...

Custom Items in Lists in C# forms?

I'm a bit new to the C#-form app developing and I want know, what's the best way around at making a control that holds a list of horizontal items. In which each of these items are horizontally ruled to it's parent control, contain a thumbnail to the left and a large text block to the right of image and a smaller text block underneath tha...