grid

Can I get a horizontal scrollbar at the top and the bottom of a grid, when using Ext JS?

五迷三道 提交于 2019-12-11 17:57:57
问题 Is there any way to get a horizontal scrollbar both at the top and at the bottom of a grid? Here's what I'm talking about: 回答1: create an extra container (maybe as docked top) and override http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.panel.Table-method-syncHorizontalScroll func on your grid panel. 来源: https://stackoverflow.com/questions/18317360/can-i-get-a-horizontal-scrollbar-at-the-top-and-the-bottom-of-a-grid-when-using

Binding a kendo ui grid to a json file without generating the grid in code

泄露秘密 提交于 2019-12-11 17:46:16
问题 I'm trying to bind a kendo ui grid to a json file with no luck. All the examples I found were when creating the grid in code. I need to do it declaratively. Is it the same to put the dataSource separately in the scope as I did, or inside the "options"? If I set the "myDataSrc" to a simple array in code, the binding works. But as a " kendo.data.DataSource" from a file, it does not. <div kendo-grid k-options="options" k-data-source="myDataSrc"></div> $scope.myDataSrc = new kendo.data.DataSource

Updating data in Vaadin's grid

烈酒焚心 提交于 2019-12-11 16:49:54
问题 Hello everyone my problem is that my grid doesn't update data. I've a Thread that get new values from a database but when I assign the new DataProvider from the collection that get new values, the grid doesn't change anything. For example, the Grid contains the orders from clients, every 30 seconds a Thread search if there are new orders available, then y get all the orders in an ArrayList and set the new ArrayList in the grid’s DataProvider but the Grid continues having the same values as

WPF Listview Columnheader Click Event

泄露秘密 提交于 2019-12-11 16:26:35
问题 I have a ListView (GridView) in WPF and I'm trying to implement sorting according to http://msdn.microsoft.com/en-us/library/ms745786.aspx. In my case, the celltemplate for one of the columns contains an Expander. Now when I click the expander header, the GridViewColumnHeader.Click event fires. How do I prevent this from happening? 回答1: If nothing needs to happen, cancel it with e.Cancel = true . I have something like that in a project of mine, where I don't want the user to reorder the

Gridview Expand code

◇◆丶佛笑我妖孽 提交于 2019-12-11 16:12:59
问题 I am making an app in which I want to set images onto gridview and on itemclick I want to show the description of an image via textview. I have already done the setting of images onto gridview, but now I want to do the second part of it. Following Images shows the visualization of The layout : Before : After : Basically, I want to Add a new layout in between of 2 rows of gridview below the clicked image. I have done a lot of research and also seen many libraries and StackOverflow answers but

Databinding within Cell templated Devexpress:GridControl not working

依然范特西╮ 提交于 2019-12-11 16:01:38
问题 I try to bind a List property SubscribedSymbols within a class object StrategySubscription as part of List to comboboxes in each cells of a specific column in a Devexpress GridControl but cannot get the data binding to work. The auto column generator works and populates values onto the grid. So, I am sure the data exists. I attached the xaml code and data object as well as a screenshot of the current output. Can you please help to get the data binding to work correctly? I want the collection

Grid on Image to compute the average color

陌路散爱 提交于 2019-12-11 15:20:14
问题 Hi I have done edge detection on an image and now I want to compute the average color of the pixels in the image. For that first I need to convert the image into a 10x10 grid where each grid element represent individual block. For each block I need to compute the average color. Is there a way to do that? Any help appreciated. Currently I can draw a grid on the image but I cannot do computations from that. import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread(

kendoui grid custom group header with columns

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:39:32
问题 Does anyone know if there is a way to create a custom group header template that will allow columns to be shown with aggregate data by column in that group? The grid component uses colspan and I want to control the entire rending of the group header template. Example of modified HTML showing desired UI 回答1: With the current implementation of Kendo UI Grid only the aggregates from the grouped column can be displayed in the groupHeaderTemplate. You can also check this post: http://www.telerik

Binding ColumnDefinitions in Silverlight

隐身守侯 提交于 2019-12-11 14:33:53
问题 I have two separate Silverlight usercontrols containing grids and i want these to share a set of columndefinitions. The columndefinitions must be created dynamically. How can i do this? 回答1: You can just add them in code if that is sufficient: private void CreateColumnDefinitions(Grid grid) { grid.ColumnDefinitions.Add( new ColumnDefinition() { Width = new GridLength(10, GridUnitType.Star) }); grid.ColumnDefinitions.Add( new ColumnDefinition() { Width = new GridLength(5, GridUnitType.Star) })

kendo grid cancel edit on nested datasource

江枫思渺然 提交于 2019-12-11 14:27:53
问题 I have viewmodel with nested json datasource. Here is my DEMO (use second contact "personal contact" for testing) [{ person_id:1, person_name:"John", contact: [ {email:"john@domain.com"} ] }] I am binding videmodel to grid with contacts detail template: + person => contact 1 => contact 2 Grid is editable using custom popup editor template, where I can edit person and contacts all in one form. Available personal contacts are presented using listview with form above it (click on the row binds