grid

WPF Grid not showing scroll bars

南楼画角 提交于 2019-12-03 04:24:48
In .NET 3.5 I have a Grid in a Window. I am populating this Grid with Buttons. When the buttons fill the grid and go out of view the Grid does not show the scroll bar. I have set the Grids vertical scroll to be visible but its still not showing. <Window x:Name="Window" x:Class="MergeToCheck.CheckList" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend

Spacing between child controls in WPF Grid

白昼怎懂夜的黑 提交于 2019-12-03 04:04:23
问题 I have a set of Key/Value pairs I want to display on a WPF Window. I'm using a grid to lay them out like so: <Grid Margin="4"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Label Grid.Row="0" Grid.Column="0">Code</Label> <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding Code}"/> <Label Grid.Row="1" Grid.Column="0">Name</Label>

ExtJS 4 Change grid store on the fly

假如想象 提交于 2019-12-03 03:41:18
问题 Is it posible to change grid's store in ExtJS 4? For example, i have two models: User = Ext.define('User',{ extend: 'Ext.data.Model', [...], hasMany: 'Product' }); Product = Ext.define('Product',{ extend: 'Ext.data.Model', [...] }); and two grids. The first grid is linked with Store which uses User model and loads nested json data from backend, like { users: [{ id: 1, products: [ {id: 1}, {id: 2} ] }, { id: 2, products: [ {id: 3}, {id: 4}, {id: 5} ] }] } All i want to get is when you click on

problem with legend while plotting data from two data.frame

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having a little trouble with getting ggplot2 to work as I want. Basically, I'd like to compare actual observations vs. approximated by putting them in one single plot. For example, > library(ggplot2) > df.actual <- data.frame(x = 1:100, y = (1:100) * 2) > df.approx <- data.frame(x = 1:150, y = (1:150) * 2 + 5 + rnorm(150, mean = 3) ) > ggplot() + geom_point(aes(x, y), data = df.actual) + geom_line(aes(x,y), data = df.approx) My problem is that I can't display a legend. I read somewhere that ggplot2's legend is not very flexible(?).

How to disable action column item for a single row?

痞子三分冷 提交于 2019-12-03 02:54:05
Consider this JSON sample : [{id:1,editable:true},{id:2,editable:false}] These records are about to be loaded in a store, then displayed inside a grid panel. This grid has an action column item for edition purposes. I'm looking for a way to disable the "edit" button only for the second row without performing computation after rendering. I'd like to use a built in feature which works like the renderer property rather than to loop through the store to update each row once the grid has been rendered. Does ExtJS 4.1.1 provides this kind of feature? You can use set the isDisabled config (at least

Is there a working implementation of CSS3 Grid Layout for Webkit?

霸气de小男生 提交于 2019-12-03 02:35:13
CSS Grid Layout, Editor’s Draft, 21 November 2011 I am in the midst of producing a prototype that will be shown to client on selected devices and browsers. I am not worried about cross-browser compatibility at this time. IE10 Developer Preview has the following: display: -ms-grid; -ms-grid-columns: ; -ms-grid-rows: ; -ms-grid-column: ; -ms-grid-row: ; -ms-grid-row-align: stretch; columns: ; column-fill: auto; column-gap: ; Mozilla eludes to having similar to above (I haven’t tested whether it works, yet). However, Webkit appear to have a very different implementation: display: -webkit-box;

jqGrid - Inline edit - Detect dirty / changed cells

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: is there an example of using jqgrid's getChangedCells method to determine if data has changed? I grepped getChangedCells in the downloadable demos for jqgrid, and could only find the function definition, not example usages of getChangedCells. What I want to do is save the edits that a user's made if the user clicks on another row. But, I only want to submit the save if the row is dirty. Thanks in advance, --Nate 回答1: There are no safe dirty flag on the row. You can use the fact that at the beginning of row editing (at the start of the inline

How can I use grid to edit a ggplot2 object to add math expressions to facet labels?

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need to put Greek letters into facet labels using facet_wrap() in ggplot2. I found a Link describing the same for facet_grid(). I applied this for my data, using the following code: levels ( parameters ) <- c ( expression ( alpha ), expression ( beta )) p + facet_grid (.~ parameters , labeller = label_parsed ) This works great and does exactly what I want. However, I need to use facet_wrap() instead (to get separate y-axes for both paramters, and also to plot even more parameters in different columns and rows). I tried the

Google App Script: Auto Refresh after form submission

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I have an app script gadget embedded in a google site. What the app script does is get objects from scriptdb and display it on the screen. There also is an add button clicking on which you get a form to enter information and add objects. What I am trying to do is that after an object is saved, I repopulate the object and display them so the newly created object can be seen without manually refreshing the page. I have a function called update() that is called after an object is saved and this function takes care of the "auto refresh". In

Kendo UI Grid Update button not firing

匿名 (未验证) 提交于 2019-12-03 01:44:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am developing a KendoUI Grid with Inline editable option in javascript and can't make Update button to fire click event and post the data to server side update event. Clicking on Update button won't even update the grid on client. Hope someone can help me point out what I am doing wrong here. This is not a duplicate to this as I have tired the jfiddle link in the answer and it is not working too. kendo UI grid update function wont fire <div id="grid"></div> @section Scripts{ <script type="text/javascript"> $(function () { var dataSource =