Login Register

dojox.grid

How to expand grid without scrollbars

[EDITOR NOTE: you can wrap any HTML examples with an <html> tag, and any script with a <javascript> tag.]

I would like to display a grid full sized with no scrollbars as if it were rendered in a simple HTML table.

The noscroll is a good start but for some reason unless I establish the size as an absolute measurement the grid doesn't display. the following code doesn't work without the second to last (style) element.

Any suggestions for displaying a grid without any scrolling, clipping or wasted space?

Looking for a good example on making a grid display a JSON

Hey, I'm having a hard time finding an example of how to make a grid display a JSON object that I am receiving from my server. If anyone knows of any or has experience with this that would be greatly appreciated. Thanks!

Dataset Maintenance using DojoX Grid and QueryReadStore

I used the Dojox Grid and the Dojox QueryReadStore to create a simple dataset maintenance app. This is actually a widget that I named custom.Grid. I wrote a short article on this (here) and plan to make updates on this.

RESOLVED: Stuck with structure: colSpan and rowSpan combined impossible?

I was trying to get a grid structure like the following ...

#########################################
# Preview... # Title................... #
# .......... # CommentCount # ViewCount #
#########################################

... using the code ...


var subrow1 = [
{ name: 'Preview', field: 'preview', width:'80px', rowSpan:2},
{ name: 'Title', field: 'title', colSpan:2}
]

var subrow2 = [
{ name: "CommentCount', field: 'commentCount'},
{ name: 'ViewCount', field: 'viewCount'}
]

var view = {
rows: [
subrow1,
subrow2
]

XmlStore not standart XML

Hello, All. I have xml file with such content:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<root>
<Groups Syst_ID="00a3c77c-0e07-4fee-ba55-2880887895c2" ID="CEC7E3C2-DC78-498C-81DA-250B16A47300" Name="line1"></Groups>
<Groups Syst_ID="00a3c77c-0e07-4fee-ba55-2880887895c2" ID="CEC7E3C2-DC78-498C-81DA-250B16A47301" Name="line2"></Groups>
</root

Grid not showing on 2nd tab of a TabContainer

Hi -
I've searched the archives and haven't quite found the answer to this. I have a tab container with 2 tabs, each tab has a grid on it. Whichever tab I set to be the default tab does properly show the grid, but when I click to the other tab, the grid does not appear. Another developer confirmed he had the same issue, and he fixed it, but couldn't remember how. :-|

I would post the code, but for some reason it doesn't display, even with the code tags. The page is at http://www.stanford.edu/~dianan/hfs/index2.html.

Any help appreciated, thanks.
-Diana

dojo.connect for dojox.grid.publicEvent on dojox.Grid

Dear all,

I want to add a simple event when the user edit a cell of my grid.
What I don't understand is that works:

<div class="partsContainer">
<div class="gridContainer">
<div id="grid" dojoType="dojox.Grid" model="model" structure="structure" autoWidth="true">
<script type="dojo/connect" event="onApplyCellEdit" args="a,b,c">
console.debug("new value"+a);
</script>

But the following code doesn't work (nothing append when I edit a cell):

what is wrong here?.

Hi All,
Can anyone help me in recognising the problem with this code?..

I have copied the code from "dojox\data\demos\demo_QueryReadStore_grid.html". I made very little modification i.e I removed one grid as I needed only one grid. Now my problem is sorting is not happening for any of the categories and I am not able to understand how and where to make a call to the server for paginitaion functionality. Server will just send me an collection..

Thanks in advance.

Dojox Grid in a Dialog Renders Super slow in IE

I'm creating a dialog that contains form elements and a dojox.Grid all elements use stores. For whatever reason even though the grid isn't initially displayed with any content when the grid is included in the dialog the dialog takes a realllly long time to render in IE. In FF it takes no time at all. Any suggestions, comments, ideas on this? I'm absolutely perplexed!

Cell style

Hi,
how can i change the style of one cell (not entire row) of my dojox.Grid.
I would change this style in accordion of the value on this:
Example

if (value==1)
    styleofcell = 'backgrund-color:red';

and so on...

Any Idea?

Syndicate content