grid

extjs 5 grid's scrollbar does not work in border layout panel

眉间皱痕 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

extjs 5 grid's scrollbar does not work in border layout panel

馋奶兔 提交于 2019-12-24 06:26:09
问题 in border layout panel , the grid's scroll-bar doesn't work correctly even though the store of grid is long enough to make the grid overflow! if my grid is in none border layout panel , the scroll-bar is OK, but when i put the grid in the border layout panel , either there is no scroll-bar ,either there is a invalid scroll-bar! { // what i want is to make this grid to scroll ! the scroll-bar is nested in a border layout panel. xtype: 'grid', title: 'west bottom grid(I am begging for your

Showing date in MM/DD/YY format in a gridview column from .cs page/rowdatabound?

我们两清 提交于 2019-12-24 05:13:13
问题 I am getting a date time field from database with timestamp. My grid has an auto-generated column. I am formatting it in my .cs page dsWorkItems.Tables[0].Rows[count]["Date"] = !string.IsNullOrEmpty(dsWorkItems.Tables[0].Rows[count]["Date"].ToString()) ? ((DateTime)(dsWorkItems.Tables[0].Rows[count]["Date"])).ToShortDateString(): ""; In quick watch I am getting ((DateTime)(dsWorkItems.Tables[0].Rows[count]["Date"])).ToShortDateString() as 9/26/2013 but in grid I am getting 9/26/2013 12:00:00

Grid.IsSharedScopeSize incompatible with * columns in WPF Grid

夙愿已清 提交于 2019-12-24 04:42:08
问题 I am using IsSharedSizeScope in an ItemsControl in WPF to keep the same widths for each row. Unfortunately this isn't compatible with Width='*' columns, which makes the 'A B C' text column spill off the end of the page. <Border BorderBrush="Red" BorderThickness="1"> <StackPanel Grid.IsSharedSizeScope="True"> <Grid HorizontalAlignment="Stretch"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" SharedSizeGroup="G1"/> <ColumnDefinition Width="Auto" SharedSizeGroup="G2" />

Grid column filter not working with two models in magento custom module

烈酒焚心 提交于 2019-12-24 04:08:17
问题 I'm working with custom module for the magento backend, in this filter not working when using filter calback! Can anyone suggest me? Thanks! I have tried some codes like this, Grid.php protected function _prepareCollection() { $collection = Mage::getModel('listings/listings')->getCollection(); $this->setCollection($collection); return parent::_prepareCollection(); } protected function _prepareColumns() { $this->addColumn("item_id", array( "header" => Mage::helper("linkmanagement")->__("ID"),

Sass Susy gallery: element that spans two columns

扶醉桌前 提交于 2019-12-24 03:59:14
问题 I need to make some elements of susy's gallery mixin span two columns, the problem is as shown in the picture it does not push the other elements after it, even though I tried to do that manually. How could this be done. The link to the code https://github.com/iyedg/IGBlogTheme 回答1: Here is the perfect tutorial about gallery with different size items. And the main point is: You can't achieve this with gallery() mixin, but it's possible with span() mixin by something like $susy: ( columns: 12,

ExtJS Grid Row Specific EmptyText?

白昼怎懂夜的黑 提交于 2019-12-24 01:53:57
问题 Our application uses the Ext.grid.Panel to display rows of data. When the user clicks a "New..." button we are adding a new record to the grid store. Everything is working fine. However, on certain fields, of just this new (as of yet) unsynced records, we would like to display specific empty text within certain cells. For example: 'Enter title here' or 'Choose a platform". I know there is an emptyCellText property on Column, but a) its broken, and b) I'd like to have this happen only on new,

Grid creating extra spacing that I don't want

五迷三道 提交于 2019-12-24 01:38:07
问题 I created a somewhat large input form in a WPF application, using nested Grids. I'm using VS2010 and VS2012 Ultimate. Here is the code: <Window x:Class="Gridtest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="16*"/> <ColumnDefinition Width="10*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto"/>

concatenate strings using sass

跟風遠走 提交于 2019-12-24 01:14:48
问题 I would like to write a sass loop like so. fractions: ''; @for $i from 1 through 4 { $fractions : $fractions + 1fr + ''; .grid-#{$i} { grid-template-columns: fractions; display: block; } } I would like the output to be something like, .grid-1 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; } not .grid-1 { grid-template-columns: " 1fr"; } .grid-4 { grid-template-columns: " 1fr 1fr 1fr 1fr"; } I'm looking for a sass utility/function that I can use to remove the

Grid.GetRow and Grid.GetColumn keep returning 0

孤街醉人 提交于 2019-12-24 01:01:52
问题 I have a 10x10 Grid . And in each space I have added a label to which I added a mousedoubleclick event handler. So when I double click the label it's supposed to show the Row and Column number, but I only get 0 for both properties. This is the code... (and yes I have set Grid.SetRow and Grid.SetColumn for each label) private void grid_Checked(object sender, MouseButtonEventArgs e) { MessageBox.Show(Grid.GetRow(e.Source as UIElement).ToString()); } 回答1: Are you sure that everything is hooked