grid

How do you set the duration for UICollectionView Animations?

可紊 提交于 2019-11-28 16:12:34
I have a custom flow layout which is adjusting the attributes for cells when they are being inserted and deleted from the CollectionView with the following two functions, but I'm unable to figure out how you would adjust the default animation duration. - (UICollectionViewLayoutAttributes *)initialLayoutAttributesForAppearingItemAtIndexPath:(NSIndexPath *)itemIndexPath { UICollectionViewLayoutAttributes* attributes = [self layoutAttributesForItemAtIndexPath:itemIndexPath]; // Assign the new layout attributes attributes.transform3D = CATransform3DMakeScale(0.5, 0.5, 0.5); attributes.alpha = 0;

how to get selected row value in the KendoUI

蓝咒 提交于 2019-11-28 15:12:52
问题 I have a kendoUI grid. @(Html.Kendo().Grid<EntityVM>() .Name("EntitesGrid") .HtmlAttributes(new { style = "height:750px;width:100%;scrollbar-face-color: #eff7fc;" }) .Columns(columns => { columns.Bound(e => e.Id).Hidden().IncludeInMenu(false); columns.Bound(e => e.EntityVersionId).Hidden().IncludeInMenu(false); columns.Bound(e => e.Name).Width("70%").Title("Entity Name"); columns.Bound(e => e.EIN).Width("30%"); }) .ToolBar(toolBar => toolBar.Template("<a class='k-button k-button-icontext k

Best dynamic JavaScript/JQuery Grid [closed]

我与影子孤独终老i 提交于 2019-11-28 15:05:43
I'm working with JavaScript, JQuery and HTML. UI Of my project is completely dynamic. I am looking for a dynamic JavaScript/JQuery Grid which supports following features. Can anybody tell me is there any good looking open sources Grid which supports the following features? I should be able to create an instance of the grid at run-time and add to DOM. Supports column templates (textbox, select, checkbox or any inputs or simple text) Supports set new column template or replace existing column template at real-time. Few input control (e.g textbox, checkbox..) present under a column may be enabled

WPF Datagrid view header binding

核能气质少年 提交于 2019-11-28 14:47:56
Actually the issue im facing is slight different than what title says. I try to sumarize the issue below. Class PersonnelViewModel { public SelectedPersonnelItem PersonnelItemViewModel; } Class PersonnelItemViewModel { } Data Context of the View is A whereas the Item source of the data grid is SelectedPersonnelItem which is a B type property in the class A . Now i want to bind the grid column to properties defiend within class A . But its not working as the context of the grid is another class ( B ). How can i solve this issue ? XAML <DataGrid Grid.Row="1" SelectedItem="{Binding

How to debug Extjs store url: path with firebug?

假装没事ソ 提交于 2019-11-28 14:34:11
I am using the browser-layout example for my application. I'm trying to add a tree grid to it. I defined a new class, but when I call my tree grid I can see the grid but no data inside. What I'm trying to do is define the tree grid in a separate file. My main file is the layout-browser.js and I need to add this (and others) in the tabs I have in it. What might I be doing wrong? here is my code: Ext.require([ 'Ext.data.*', 'Ext.grid.*', 'Ext.tree.*' ]); Ext.define('Task', { extend: 'Ext.data.Model', fields: [ { name: 'task', type: 'string' }, { name: 'user', type: 'string' }, { name: 'duration'

Dojo grid nested json

主宰稳场 提交于 2019-11-28 13:04:27
I'd like to have a dojo grid which connects to a server url which outputs the following json : {identifier : "id" items : [ { id: "1", name: "John", university : { name: "XXX", address: "YYY" } }]. Basically I have a nested json. I would like to represent the university name and University address as separate columns in the grid. I tried using the dojox.grid.DataGrid object and creating a gird layout, but do not know how to refer to the nested elments and university.name and university.address don't seem to work. I am using dojo 1.6.1. Does anybody have any pointers? This is the js code I use

Python Tkinter - resize widgets evenly in a window

放肆的年华 提交于 2019-11-28 12:04:38
I have a small test Python app as I am learning both Python and Tkinter and I am trying to figure out how to evenly resize a grid of labels in a window. I would like to make a large grid of different colored squares so I'm using labels with a background color set to make the squares. I would like to resize the squares automatically when the user expands the window out and then have them resize and scale down to all be the same size as the window is decreased in size. Something like this: That resizes and scales evenly like this: In other words: each label should all scale uniformly as the

JavaFX alignment of Label in GridPane

。_饼干妹妹 提交于 2019-11-28 12:04:02
I'm confused as to why setting the Label.setAlignment(Pos.CENTER_RIGHT) does not affect the alignment of a label that is then added into a GridPane? The only way to do it is seemingly through the grid (e.g. ColumnConstraints) or by e.g. adding the Label to a HBox that has right alignment. Why does setting the alignment of the label to CENTER_RIGHT have no effect? I can see the API says: "Specifies how the text and graphic within the Labeled should be aligned when there is empty space within the Labeled." But how do I get empty space in a label? TL:DR version : instead of label.setAlignment(Pos

How to make CSS Grid items take up remaining space?

╄→гoц情女王★ 提交于 2019-11-28 11:57:49
I have a card built with CSS Grid layout. There might be an image to the left, some text to the right top and maybe a button or a link at the right bottom. In the code below, how can I make the green area take up as much space as possible and at the same time make the blue area take up as little space as possible? The green should push the blue area down as far as possible. https://jsfiddle.net/9nxpvs5m/ .grid { display: grid; grid-template-columns: 1fr 3fr; grid-template-areas: "one two" "one three" } .one { background: red; grid-area: one; padding: 50px 0; } .two { background: green; grid

In WPF, has anybody animated a Grid?

青春壹個敷衍的年華 提交于 2019-11-28 11:54:46
I have 2 columns in a Grid. When I click a button, I want the first column to animate to the left from it's current position to 0. So, in effect, it collapses and I'm left with just viewing a single column. Check out this video training link, from Todd Miranda that shows you how to animate the height of a grid control. I think you could easily make it work for your case. Will Shouldn't be too hard. You'd need to create an EventTrigger that has a BeginStoryboard that targets the grid and uses a DoubleAnimation to shrink the column width. The example here has a similar setup. The EventTrigger