Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364249 - DojoSample: Dojogrid is not displayed if columns are not specified
Summary: DojoSample: Dojogrid is not displayed if columns are not specified
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-20 22:03 EST by Tony Chen CLA
Modified: 2017-02-23 14:20 EST (History)
3 users (show)

See Also:


Attachments
screen shot in EDT (3.06 KB, image/gif)
2011-11-21 10:16 EST, Tony Chen CLA
no flags Details
Patch (1.26 KB, patch)
2011-12-15 01:34 EST, Yun Feng Ma CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Chen CLA 2011-11-20 22:03:40 EST
In DojoGraphSample, the DojoGrid account portal is not displayed. Same code worked in RBD.
Comment 1 Brian Svihovec CLA 2011-11-20 22:17:48 EST
Changing to Website, which is what we are using for Samples.  If this issue is a widget issue, please re-route to Widgets.  

If the issue is in the sample, we have more time to resolve the problem, since the samples are not shipping with EDT .7.
Comment 2 Tony Chen CLA 2011-11-21 00:55:30 EST
Set component to widget because the scenario can be recreated in a new handler.
Comment 3 Brian Svihovec CLA 2011-11-21 08:32:33 EST
Can you provide a screen capture for this issue?  Does this issue occur in RBD?  Is it something we must fix for EDT .7?
Comment 4 Tony Chen CLA 2011-11-21 10:15:25 EST
(In reply to comment #3)
> Can you provide a screen capture for this issue?  Does this issue occur in RBD?
>  Is it something we must fix for EDT .7?

---GL Code---

handler h2 type RUIhandler{initialUI = [ Box ], onConstructionFunction = start, cssFile = "css/test.css", title = "h2"}
	Box Box{ padding=8, children = [ grid ], width = 500 };
	Grid DojoGrid{
		behaviors = [ ],
		headerBehaviors = [ ],
		data = [
			new Dictionary { field1 = "Row 1, Column 1", field2 = "Row 1, Column 2"},
			new Dictionary { field1 = "Row 2, Column 1", field2 = "Row 2, Column 2"}
		]
	};
    function start()
    end
end
Comment 5 Tony Chen CLA 2011-11-21 10:16:48 EST
Created attachment 207310 [details]
screen shot in EDT
Comment 6 Tony Chen CLA 2011-11-21 10:22:23 EST
The same code worked in RBD, displaying a grid using "field1" and "field2" as column names.
Comment 7 Lisa Lasher CLA 2011-11-21 11:30:03 EST
deferring - not an important scenario.
Comment 8 Yun Feng Ma CLA 2011-12-15 01:34:44 EST
Created attachment 208421 [details]
Patch

Here is a patch. Thanks.
Comment 9 Yun Feng Ma CLA 2011-12-15 01:35:55 EST
Ji Yong, please review the patch. Thanks.
Comment 10 Huang Ji Yong CLA 2011-12-15 02:44:08 EST
I think the fix is OK
Comment 11 Yun Feng Ma CLA 2011-12-15 03:42:32 EST
Fix is in now. Thanks.
Comment 12 Tony Chen CLA 2012-01-16 05:04:13 EST
Verified in Version: 0.8.0.v201201152102-1CT-Fiv5_M5_LOR6Ka4