grid

Change the MenuItem icon in angular ui.gird

戏子无情 提交于 2019-12-03 21:39:39
How to toggle the customizing_column_menu icons in angular ui.grid like shown below I didn't found any best solution to change menuItems dynamically, Here is what I did for workaround Code $scope.gridOptions = { rowHeight: 75, columnDefs: [{ field: 'name', enableColumnMenu: false }, { field: 'gender', enableHiding: false, suppressRemoveSort: true, sort: { direction: uiGridConstants.ASC } }, { field: 'All Details', cellTemplate: '<p ng-show="grid.appScope.company"><label><b>Company:</b></label><span>{{row.entity.company}}</span></p><p ng-show="grid.appScope.email"><label><b>email:</b></label>

Kendo grid: How to check all checkboxes of selected rows?

十年热恋 提交于 2019-12-03 20:49:26
I am using the Telerik Kendo grid with MVC and C#. I have a grid, populated with some data and have added a checkbox column - used so that the user can select all. Now, when I check the "selectAll" checkbox, all checkboxes are checked (one for each row), as they should be. What I want to do: I want to be able to double-click on a row and have the chechbox check change - if it is unchecked, a dbl-click will check it and visa versa. Also, as the Kendo grid allows the user to select many (mousedown, drag and mouseup - like when selecting icons on the desktop), I'd like to have it so that when the

Mosaic Grid gallery with dynamic sized images [closed]

ⅰ亾dé卋堺 提交于 2019-12-03 18:18:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I have just received the following design for a project, for an image grid gallery, with dynamic width & height images (user submitted images). (Screenshot at the end of post) I have tried jQuery Masonry, Tympanus Automatic Image Montage and CSS-Tricks Seemless Responsive Photo Grid, but each has their

Cascading ComboBoxes in ExtJS EditorGridPanel

我是研究僧i 提交于 2019-12-03 17:10:28
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 localy). The filter value is the countryComboBox value. There is always a value in countryComboBox, because I add a default = 1 when creating a new record, so this isn't a problem. I don't know which listener would be appropriate here. I need to catch the moment

read data from database and show it in GridView in android

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:42:27
how we can read data from database and show them in grid in android? i see codes like this : public class DataAdapter extends BaseAdapter { Context mContext; private String [] id = {"S001","S002","S003","S004","S005","S006","S007"}; private String [] name={"Rohit","Rahul","Ravi","Amit","Arun","Anil","Kashif"}; private LayoutInflater mInflater; public DataAdapter(Context c) { mContext=c; mInflater = LayoutInflater.from(c); } public int getCount() { return id.length; } public Object getItem(int position) { return position; } public long getItemId(int position) { return position; } public View

how to get grid children by its row and column in wpf?

可紊 提交于 2019-12-03 16:32:11
<Grid x:Name="LayoutRoot" HorizontalAlignment="Center" VerticalAlignment="Center" > <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <Button Width="150" Height="50" x:Name="Btn1" Content="Button1" Grid.Row="0" Grid.Column="0"/> <Button Width="150" Height="50" x:Name="Btn2" Content="Button2" Grid.Row="0" Grid.Column="1"/> <Button Width="150" Height="50" x:Name="Btn3" Content="Button3" Grid.Row="2" Grid.Column="0"/> <Button

extjs4 grid - changing column editor per row basis

旧时模样 提交于 2019-12-03 16:23:33
ExtJS4 grid anticipates appropriate editor (cellEditor or rowEditor) per column. If a column's header field is dateField - date selector will be applied on every row in that column. What I need is an editor with different field editors per row, not per column. The Extjs3 solution is provided here - unfortunately doesn't fit in Extjs4 case. (please check that link to see explanatory images, cause I can't post images yet) There's also a single column solution called property grid , but again - it supports only one column and is very deviated from the standard Ext.grid component I have tried

Kendo UI Grid Export to Excel / PDF not working on IE9

痞子三分冷 提交于 2019-12-03 16:18:14
I´m having problem to export Kendo UI Grid to excel and pdf in IE9. Everythig works fine using Chrome but in IE9 nothing happens. Here is my grid. Is there something wrong or missing? $("#gridDetalhes").kendoGrid({ dataSource: { data: myJsonList }, excel: { allPages: true, fileName: "SGD_Detalhes.xlsx" }, toolbar: ["excel", "pdf"], columns: [ { field: "DataInicio", width: "135px", title: "Início", type: "date", template: '#= kendo.toString(DataInicio,"dd/MM/yyyy HH:mm:ss") #' }, { field: "DataFim", width: "135px", title: "Fim", type: "date", template: '#= kendo.toString(DataFim,"dd/MM/yyyy HH

How can I control the Perl version used when submitting grid jobs?

蓝咒 提交于 2019-12-03 16:10:18
I'm working with SGE (Sun Grid Engine) to submit jobs to a grid. I also use perlbrew to manage my installed Perl versions. I wrote some short sh scripts that I use to run a perl script which requires a specific Perl version (5.12.2), which look something like this: #!/bin/bash #$-S /bin/bash source /home/dave/.bash_profile /home/dave/perl5/perlbrew/bin/perlbrew switch perl-5.12.2 /home/dave/scripts/proc_12.pl --in=/home/dave/in/in.store --dir=/home/dave/in/dir2 --params=/home/dave/in/params.p Now, when I submit a single job everything works fine, but when I submit many, I start getting

Remove rotation effect when drawing a square grid of MxM nodes in networkx using grid_2d_graph

别等时光非礼了梦想. 提交于 2019-12-03 15:27:35
I need to generate a regular graph (also known as lattice network) which has 100x100 nodes. I started off with drawing a 10x10 graph with the following code: import numpy from numpy import * import networkx as nx from networkx import * import matplotlib.pyplot as plt G=nx.grid_2d_graph(10,10) nx.draw(G) plt.axis('off') plt.show() but what I get is this: Is there any way of getting rid of this sort of rotation effect the output has? My final network must look like a chess table, just like this (please ignore the lables): Also, I need to give each node its ID, ranging from 0 to 9999 (in the case