-
16 Apr 2008 1:14 PM #111
In my situation I have a grid which allows the user to double-click on the row and take them to a view of that particular record and it's children. I've added a row action icon to the grid to allow them to open up an edit window on the grid screen and that works great. The problem is that when the user double-clicks the row action icon, something that so many people do because of a blur between the desktop environment and the browser environment, the view gets activated AND the edit window. I'd rather that the Grid 'rowdblclick' event get thrown out in this case which of course means that the RowActions 'action' event must be fired first if I have any hopes of cancelling the rowdblclick event.
So I guess the questions are:- Does the RowActions 'action' event fire before the Grid 'rowdblclick' event?
- Does RowActions provide a way to cancel subsequent events?
-
16 Apr 2008 1:26 PM #112
Re 1: Order of event firing is not guaranteed, although they usually fire in the order they in which they were installed.
Re 2: I don't think so. What I would do would be to write a simple filter at the beginning of rowdblclick event handler to see which element was clicked and if it was one of the row actions I'd cancel that event. See how this is done in RowActions onClick handler.Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Apr 2008 1:15 AM #113
Hi,
I am watching your Job with all your Sources, and i am trying
to produce the same thing (save users modifications on my mysql database).
For a better learning, i would like to view your database file(s)
Is it possible ?
Thanks Saki
(your job is excellent !)
-
17 Apr 2008 3:07 AM #114
Take a look at csql.php source at http://recordform.extjs.eu. I is sqlite backend but mySQL one is similar. I use sqlite for examples for simplicity and cross OS compatibility.
I cannot show you mySQL files/structures of my main project; it is not open source.Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Apr 2008 3:56 AM #115
thanks for your response,
with this example of your database in sqlite, i will probably be able to learn how to do.
i just want to know what is that values refer to :
In Firebug :
cmd saveState
data [{"name":"agwin","value":"o%3Awidth%3Dn%253A363%5Eheight%3Dn%253A217%5Ex%3Dn%253A449%5Ey%3Dn%253A77"}]
id 1
session session
user ...
(i obtain this result when i change the extje frame dimension)
-
17 Apr 2008 5:21 AM #116
It is state (window position, size, columns sizes) sent to server by HttpState provider. That is not directly related to your problem.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Apr 2008 6:59 AM #117
i think i have understand how it run.
i have completely forgotten the httpprovider
thanks for your disponibility.
-
17 Apr 2008 5:15 PM #118
one word: AMAZING
one word: AMAZING
hi all,
First of all i wanna thank Saki for this great plugin and your willingness to help everybody.
i got it working just have one question.
when i click on an icon i have a window show up, it's all working perfectly but now my question is.
the code to open a window i already do have it in a function, for example
but how can i use this function when clicking an icon without typing the whole code for opening a window again.PHP Code:function openwindow() {
####### code for window is in here
}
rightnow i have this:
is it possible just to call the function openwindow() without typing the whole code again?PHP Code:var action = new Ext.ux.grid.RowActions({
header:'Actions',
autoWidth:false,
actions:[{
iconCls:'remove',
tooltip:'Delete Bill'
},{
iconCls:'money',
tooltip:'Pay Bill'
}],callbacks:{
'money':function(grid, record, action, row, col) {
########## code to open the window here
}
}
});
Thanks in advange.
Keep up the good and excellent work.
Sincerely,
Robin30
-
17 Apr 2008 6:23 PM #119
Just call it: openwindow(), that's it.
Jozef Sakalos, aka Saki
A lot of valuable info at:
Saki's Extensions and Plugins
Saki's Extensions and Plugins Docs
Saki's Examples, Latest: Grid in Card Layout
Saki's Blog, Featured: Writing a Big Application in Ext, Latest: Grid MultiSearch Plugin Video
-
17 Apr 2008 7:45 PM #120
Thanks
Thanks
Thanks,
appreciate the quick answer.
it's working.
i tried just openwindow without ().
i'm a completely newbie and do not know anything about js but why do i use here the () and when i use a handler i don't. then it would be without ().
thanks again,
Keep up the good work.
Sincerely,
Robin30


Reply With Quote
