grid

DevExpress WPF grid bound to List<String> using MVVM

和自甴很熟 提交于 2019-12-12 03:08:03
问题 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 ViewModel and View. Thanks for the help. Here is the XAML code: <dxg:GridControl Grid.Row="0" DataSource="{Binding Path=ErrorLog}" > <dxg:GridControl.Columns> <dxg:GridColumn

display grid value using webforms in umbraco

两盒软妹~` 提交于 2019-12-12 02:49:11
问题 I am trying to display a document property in my webform template in umbraco, like this: <%@ Master Language="C#" MasterPageFile="~/umbraco/Masterpages/Default.master" AutoEventWireup="true" %> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <umbraco:item field="content" runat="server" /> </asp:Content> But on the content i am getting a json description of the field, not the value, here is the output: { "name": "1 column layout", "sections": [ { "grid": 12, "rows

How to save file and read

此生再无相见时 提交于 2019-12-12 02:45:31
问题 I create a program that place random image in grid layout format. The size of the grid layout is 6 x 6 = 36. Only 10 were filled with images (each image was different) and the rest were empty. alt text http://freeimagehosting.net/uploads/bfb7e85f63.jpg How can I save it to a file and read it again, so it will display the same images with same placement on the grid? Here is the code that I used to save the images: //image file String []arrPic = {"pic1.jpg","pic2.jpg","pic3.jpg","pic4.jpg",

Remote paging grid in extjs

本小妞迷上赌 提交于 2019-12-12 02:39:56
问题 You are my last chance :(. Im trying do work a paging grid with mvc pattern. The grid show the fisrt 21 records, but not refresh when click "next" pagingtoolbar icon. All my codes are detailed below: The Store: Ext.define('CRUDManantiales.store.grid.AbmUsuarios', { extend: 'Ext.data.Store', model: 'CRUDManantiales.model.grid.AbmUsuarios', proxy: { type: 'ajax', url: 'resources/bundles/usuarios/generarJsonTodos.php', reader: { type: 'json', root: 'data', successProperty: 'success',

dhtmlx grid smartrender not work normally after sorting with splitAt mode

北城余情 提交于 2019-12-12 02:36:49
问题 I use split mode and smartrender in dhtmlx grid. After I sort rows, rendered rows disappear and never come out on the right side, like the following picture. after sorting, rows on right side could not be rendered anymore(click here to view the picture) It's strange, rows on the left could be rendered when I scrolling on both sides.But rows on right side could not be rendered. Anyone helps? Thanks! code structure: var grid = new dhtmlXGridObject('#container'); grid.setImagePath("./bower

find closest point to mouse position

血红的双手。 提交于 2019-12-12 01:59:34
问题 I've got a grid of sprites. Now I would like to drag an image on a grid-element. Therefore I need to know which x/y of the grid-element is the closest point to the mouse-position. All the grid-elements are stored in an array. How can I achieve that? 回答1: If all you need is the x,y of the closest grid then all you have to do is. var gridX:int = Math.floor(mouseX / NumberOfColumns); var gridY:int = Math.floor(mouseY / NumberOfRows); This will convert your mouse coordinates to your grid

ExtJS 4.2 How to set grid filter height when header text is wrapped?

纵然是瞬间 提交于 2019-12-12 01:38:08
问题 I have a grid with many columns, each of them has a filter, and some of the columns has a long text in the header: I added a css rule to wrap text in the header: .x-column-header-inner .x-column-header-text { white-space: pre-wrap; } In result I got filters with different height: How to make the same height filters? 回答1: I implemented the search filter with your hint. You can find it here. I didn't have your issue with long column labels. They just cut off using an ellipsis like it is the

Creating a 2D grid for a board game in python

眉间皱痕 提交于 2019-12-12 01:36:23
问题 I'm taking an introductory course to computer science using Python and we were given an exercise to make a board game(dogems). I'm having troubles constructing the board. The program is suppose to take a given argument and, using a function make_board(size), constructs a board of equal rows and columns with numbers along the bottom and letters along the side. A function show_board(board) then displays it. e.g. Board size:4 would give: a . . . b . . . c . . . . 1 2 3 whereas, a board size:5

Java Grid with button + id to each button [closed]

♀尐吖头ヾ 提交于 2019-12-12 01:14:00
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I'd like to make a grid in a JPanel full of buttons, then i want to create them in a loop because i've aproximatly 100 buttons. Each button created must have an id differents see my picture to understand better :s I think I have to create a method like this but I don't know how to proceed : public

Draw three grids of user controls in VB.NET

北慕城南 提交于 2019-12-11 21:14:54
问题 I have one user control of size 25x25 and I want to duplicate it into three separate 10x10 grids which I can change the location of on my form. I'm making a pandemic simulation so the three grids represent the three countries and I will change the colour of the user control depending on the infection status of the grid square. I've been playing around with this for a long time but I cannot get it to work, when I use Me.Controls.Add(UserControl) it overwrites the previous one and I'm left with