Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGL Development Tools » Debug(Problem with datagrid onClick)
Debug [message #762681] Thu, 08 December 2011 14:02 Go to next message
Trond Einar Nilsen is currently offline Trond Einar NilsenFriend
Messages: 33
Registered: December 2011
Member
I tried to debug in rich ui with a datagrid. The onClick event did trigger only when I clicked outside the grid cells (but inside the widget). This is probably a bug?
Re: Debug [message #762725 is a reply to message #762681] Thu, 08 December 2011 14:53 Go to previous messageGo to next message
Brian Svihovec is currently offline Brian SvihovecFriend
Messages: 55
Registered: July 2009
Member
Trond,

Can you post a snippet showing how you declared the widget and the onClick event handler?

Also, can you describe the behavior that you are expecting from the widget? I am guessing that you want the onClick event for the widget to be invoked when you click both inside and outside of the grid cells?

-Brian
Re: Debug [message #762733 is a reply to message #762725] Thu, 08 December 2011 15:02 Go to previous messageGo to next message
Trond Einar Nilsen is currently offline Trond Einar NilsenFriend
Messages: 33
Registered: December 2011
Member
Brian,
DataGrid DataGrid{
behaviors = [ ],
headerBehaviors = [ ],
columns = [
new DataGridColumn{name = "field1", displayName = "Column 1 Header", width=120},
new DataGridColumn{name = "field2", displayName = "Column 2 Header", width=120}
],
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"}
], onClick ::= DataGrid_onClick,
width = "300"
};
.....

function DataGrid_onClick(event Event in)
Dummy string = " ";
end
.....

I installed the EDT today, but have used the CE for a while. I was curious about the datagrid as it did not exist in the comunity edition.
I put a breakpoint on the "Dummy string = " ";" to see what variables was available, but only when clicking outside the cells, but inside the "width = "300"" area the program stopped at the breakpoint

Trond
Re: Debug [message #762816 is a reply to message #762733] Thu, 08 December 2011 16:55 Go to previous message
Joe Pluta is currently offline Joe PlutaFriend
Messages: 62
Registered: November 2011
Member
Just as a notre, I recreated the behavior Trond describes.

I guess in a perfect world I would want any unprocessed events to keep bubbling outward. But bubbling is always a tricky thing to handle consistently, especially across browsers.

Joe

[Updated on: Thu, 08 December 2011 16:55]

Report message to a moderator

Previous Topic:Error when adding record parts to rui handler
Next Topic:How to create a EGL RUI in web application?
Goto Forum:
  


Current Time: Wed Nov 26 18:51:08 GMT 2014

Powered by FUDForum. Page generated in 0.02039 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software