grid

ContentPresenter Visibility binding inside Grid not working?

≡放荡痞女 提交于 2019-12-05 12:49:38
I have a following grid: <Grid> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> ... <ContentPresenter Grid.Row="1" Content="{Binding Path=PredictiveWorkspace}" Visibility="{Binding Path=ShowPredictiveWorkspace, Converter={StaticResource boolToVisibility}}"/> <ContentPresenter Grid.Row="1" Content="{Binding Path=M2Workspace}" Visibility="{Binding Path=ShowStandardWorkspace, Converter={StaticResource boolToVisibility}}"/> ... </Grid> Those two ContentPresenters has the same Grid.Row definded because only one

Susy 2: Fixed width sidebar with fluid main content area

百般思念 提交于 2019-12-05 12:12:44
Using Susy 2 (release candidate), I'm trying to figure out how to create a simple fluid layout with a fixed width sidebar - either left position or right - I'm happy using the first and last keywords. Can anyone give me any pointers on how to do this within Susy 2? Thank you! There are a few ways to mix fixed/fluid layouts, depending on your own specific case. Isolate the sidebar. Float isolation is a cool a way of keeping floats independent from each other. .side { @include span(3 static isolate); } .main { @include full; padding-left: span(3 static wide); } // or... .main { margin-left: span

jQuery image Grid System

故事扮演 提交于 2019-12-05 10:46:50
I have one question about image grid system. I created this DEMO from codepen.io In this demo you can see : <div class="photo-row"> <div class="photo-item"> <!--Posted image here <img src="image/abc.jpg"/>--> </div> </div> This DEMO is working fine but. My question is how can I use my grid system like in this css: <div class="photo"> <div class="photo-row"> <a href="#"><img src="abc.jpg"/></a> </div> <div class="photo-row"> <a href="#"><img src="abc.jpg"/></a> </div> </div> I created second demo for this: second DEMO . In the second demo you can see the grid system not working like first DEMO

PBS and specify nodes to use

心不动则不痛 提交于 2019-12-05 10:39:21
when you submit jobs to a PBS server, is it possible to specify the nodes that we want to use in a list? Thanks David Johnson Yes. When you use qsub, use the -l option to specify the node names. e.g. qsub -l nodes=b2005+b1803+b1813 There's more examples in this TORQUE/PBS manual page . 来源: https://stackoverflow.com/questions/1731171/pbs-and-specify-nodes-to-use

WPF Binding: How to databind to Grid?

左心房为你撑大大i 提交于 2019-12-05 10:22:57
I have created a class Account . Next, I have created another class ReorderWindowController which has a field/property SelectedAccount of type Account . Finally, I have written ReorderWindow WPF window xaml file: <Window ... <Window.Resources> <contollers:ReorderWindowController x:Key="WindowController" /> <DataTemplate DataType="{x:Type entities:Account}"> <Grid Width="140" Height="50" Margin="5"> <TextBlock Text="Some awesome text" /> <TextBlock Text="{Binding Name}" /> <TextBlock Text="Even more awesome text" /> </Grid> </DataTemplate> </Window.Resources> <Grid> <Grid Name="AccountGrid"

Put resizable Expander to expand from right to left

て烟熏妆下的殇ゞ 提交于 2019-12-05 10:20:26
I would like to have the Expander from question below (see the accepted answer) which is a perfect solution for me. I just want to have it on the right side. Combine expander and grid (resizable expander) To have it expanded from right to left I changed the settings for an analoguous behavior. (I emphasized elements to see better what's going on): <Expander Grid.Column="1" Header="Test" ExpandDirection="Left" BorderThickness="10" BorderBrush="Black" HorizontalAlignment="Right" > <Expander.Content> <Grid > <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"

Extjs grid column header, add dropdown menu item to specific columns

拟墨画扇 提交于 2019-12-05 10:02:56
I'm trying to add a button to the column header drop-down menus in my grid. However, I only want to add it to columns with certain itemId. So far I've got it working to add the button to all columns, see code below. I dont see where I could check each column's itemId though, it doesn't seem to iterate through the columns. Is there any workaround for this? Thank you! items:[{ region:'center', xtype:'grid', columns:{ items: COLUMNS, //defined in index.php }, store:'Items', selType: 'checkboxmodel', listeners: { afterrender: function() { var menu = Ext.ComponentQuery.query('grid')[0].headerCt

Why is the button in my ExtJS grid appearing as “[object Object]”?

一笑奈何 提交于 2019-12-05 09:40:52
In an ExtJS grid I have a column in which when the content of a cell is a certain value, a button should be displayed. I define the column which will contain the button like this, which calls a rendering function : { header: 'Payment Type', width: 120, sortable: true, renderer: renderPaymentType, dataIndex: 'paymentType' }] in the rendering function, I return either text or the button itself: function renderPaymentType(val) { if(val!='creditInform') { return val; } else { return new Ext.Button({ text: val, width: 50, handler: function() { alert('pressed'); } }); } } This basically works,

Scroll to selection in an ExtJS Grid

无人久伴 提交于 2019-12-05 09:09:14
Hey, i need to be able to scroll my ExtJS grid to the current selection but have no idea how to do this. I came across a reference in a forum to an ensureVisible method but can find no information. Can anyone make any suggestions? Thanks This also seems to work: grid.getView().focusRow(rowIdx); Unfortunately ensureVisible() was removed from ExtJS 4. The most straight-forward solution I found is to use scrollIntoView(). In my case, this was after selecting the row based on a value I loaded. var rowIndex = store.find('fieldName', value); grid.getSelectionModel().select(rowIndex); Ext.fly(grid

How to update a Dojo Grid cell value using a TooltipDialog (and DropDownButton)

梦想与她 提交于 2019-12-05 09:05:56
问题 I have a dojo grid which is using some editable dijit form fields. All is well, until I try ot implement an country (multi) select cell as an Tooltip Dialog; i.e., show a drop down button which opens the tooltip dialog populated with a checkbox array to select one or more country. Once checked and clicked OK, the cell should update with a list of selected countries. Obviously I'll take care of updating the server via the store later on. I've implemented a country select tooltip dialog which