grid

ExtJS Grid PagingToolbar refresh on store remove

I've setup a ExtJS Grid, while using the PagingToolbar (with PagingMemoryProxy on an ArrayStore). I have removed items from the store of the grid, but the PagingToolbar will not show that the items have been removed. Any suggestions on how to do this? ...

ExtJS grid - how to focus on added row?

Hello guys. I have a grid(gridpanel) and data in it which I read from json query. After I added new bussines object(row) - I send him in json format to server, write to DB, and reload all grid. How I can focus on currently added row(b/o) after that? I will be very cool if I return added id at the json answer and grid take it and focus o...

Grid like styling with jquery Treeview

Hi, in my project i have hierarchical data and i want to display it in following format i have just downloaded jquery treeview and tried it on a small ul. i want to know if i can make such a display with jquery treeview. if not please suggest some other controls. i m using asp.NET mvc 2 RTM with C# ...

Why do InvalidateRow and InvalidateColum suddenly not work?

Suddenly InvalidateRow and InvalidateColum are not working anymore for my TStringGrid. I think happen about 7 days ago, but only today I realized that it is actually happens. I haven't installed any 3rd party controls in these 7 days. InvalidateGrid works. In some circumstances (it seems to be random) InvalidateRow and InvalidateColum se...

css layout height issue with grid like layout

So I have a large form and have grouped the like elements in fieldsets but all the fieldsets have different heights. I float the fieldsets to the left so any extra fieldsets will be pushed underneath (think the next row when reaching the edge of the screen). How do I get all the field sets to have the same height as the tallest fieldse...

Cascading ComboBoxes in ExtJS EditorGridPanel

I have a working EditorGrid panel, where two columns have ComboBox editors. Both ComboBoxes are loaded remotely from database (countryStore and cityStore). I would like to limit the cityComboBox to show only cities in the selected country. I need to reload the cityStore with a filter from database (there are too many cities to filter lo...

WPF Grid saving position and also being collapsible

There have been many situation where I need to have a resizable area. It seems that using a grid and a gridsplitter to resize the columns is a good idea. However, with this I am unable to do one major thing. That is collapse one of the columns after resizing the grid. Also, saving the position of the grid splitter requires me to have atl...

How can I ensure that WPF UserControl elements are visible outside the bounds of the control?

I have a UserControl containing interactive elements within a grid. The user can move and resize these elements, often causing them to fall outside the bounds of my control. When elements do fall outside, I don't want them to clip. I want them to be visible no matter what. Unfortunately, setting ClipToBounds to FALSE did not solve th...

Fade in/out the background color of wxpython grid cell

I've got a wxpython grid, and I'm changing the background color of a cell to show that something has happened to it. I'd like to fade the color change in/out (like JavaScript in the browser) for a smoother look. Is this possible to do? Right now, I'm just changing the background color, and then changing it back after a 1.5-second inter...

mark specific dataset in filtered grid

i'm just struggling through the following situation - there's a datasource added to a grid in axapta 2009, filtered by a querybuildrange. i want to mark a specific dataset by x++ via datasource_DS.findrecord( specificRecord ) this works as intended, removing the filter, but not having the filter active! a workaround to remove the fi...

Loading Remote values for Editor - Extjs

In a Extjs application, I want to load different values for a combobox editor of a column in editor grid panel. The values would typically come from a server call. How to do this? ...

Init grid row height doesn't work

Hi, this is my simple try-it application that create a grid with 2 rows. The 1st row's height is bound to a properties. The value I assigned to it only works at run-time. I tried to make it also work when design-time but I failed to do that (I used this thread to write my app). Please help me to see what I miss. Thank you! [Edit] The ...

Grid from text to 2d array

import java.io.*; import java.util.*; import java.awt.*; public class FileInputExample2 { static public void main(String[] args) throws IOException { int t; BufferedReader filein; filein = new BufferedReader (new FileReader("GridDATA.txt")); int intGrid [] [] = new int [10] [10]; String inputLine = filein.read...

How can I get a wxFrame to refresh without having to manually resize it in wxPython?

I have a simple frame in a wxPython script that isn't refreshing like I'd like it to. Basically the frame starts out blank. The user can then select different datasets to view in a grid form. When the dataset has been chosen, the script creates a grid and puts it in a sizer in the frame. The problem is that the frame shows the grid in a...

How can I fill N x M grid efficiently with Perl?

I have a Perl script, which parses datafile and writes 5 output files filled with 1100 x 1300 grid. The script works, but in my opinion, it's clumsy and probably non-efficient. The script is also inherited code, which I have modified a little to make it more readable. Still, it's a mess. At the moment, the script reads the datafile(~4Mb...

2D grid water/liquid simulation (platformer tile based).

Hello. I have a grid based game (platformer) where I've based everything on tiles. I have tiles that are solid and liquid. I'm trying to find of a good way to make water tiles simulate water in a rough way. At the moment I have the current system: When a water tile is added above another water tile, it adds 1 to the water tile below. ...

Silverlight Custom Gird with Fixed Header and Column, required refactoring

Hi All, I’m trying to build the custom grid with fixed Header and Column in Silverlight. I don’t know whether SL has built in functionality to build this or not because I’m very new to SL. Please take a look the following codes. I don’t think that this is the right way to build this. If you don’t mind, please refactor my codes and pleas...

DevExpress WPF grid bound to List<String> using MVVM

Hi All, I am trying to do something that should be simple, but think I am just not seeing the answer. I have a List with several strings. I would like to bind it to a DevExpress DXGrid. It appears that the grid is showing the correct number of row, but not displaying my text. I am using the MVVm patern and have seperated my ViewMode...

Creating a dynamic grid control

Hi all. While working in WPF i have the need for a Dynamic Grid. By this i mean a grid that contains only one kind of object, has a template for that object etc. But unlike a similar ItemsControl like a Listbox, i want the grid to be given a Maximum Columns property. This should act as a delimiter which will then calculate the number of ...

Find ALL paths in a grid between 2 nodes

I'm trying to find all the paths between 2 nodes in a grid, and the path has to go through all the node from start to end. Example (Start = S, End = E) 0 0 0 0 S 0 0 0 E The answer for the above is 2 paths: (ignore the '.''s) 0-0-0 |.......| 0 S-0 | 0-0-E 0-0-0 |......| 0 S 0 |...|...| 0-0 E I thought of using recursing, but g...