Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rick on Jan 10, 2010 10:55
open dhtmlx forum
Opening dhtmlx window with dhtmlxgrid

Im trying out with dhtmlxgrid and inplace of using iframes I want to open a window like dhtmlxwindow while using a link. Im using a xml file. Is this possible?

Answer posted by Alex (support) on Jan 12, 2010 01:31

It's possible to call functions using link. 

In case of link type in grid <cell> tag can be the following:

<cell>Link^javascript:someFunction();^_self</cell>

Answer posted by Rick on Jan 12, 2010 02:42
Im trying to call an ajax function but somehow its not working I tried

        <cell>Link^javascript:Effect.Appear("id",{ duration: 3.0, from: 0, to: 1 })^_self</cell>

and

        <cell>Link^javascript:Effect.Appear('id',{ duration: 3.0, from: 0, to: 1 });^_self</cell>

Not sure why this will not work. The same in HTML would be

onClick="effect_1 = Effect.Appear('id',{ duration: 3.0, from: 0, to: 1 }); return false;"

Thanks in Advance,


Answer posted by Rick on Jan 12, 2010 03:11
Im trying to call an ajax function but somehow its not working I tried

        <cell>Link^javascript:Effect.Appear("id",{ duration: 3.0, from: 0, to: 1 })^_self</cell>

and

        <cell>Link^javascript:Effect.Appear('id',{ duration: 3.0, from: 0, to: 1 });^_self</cell>

Not sure why this will not work. The same in HTML would be

onClick="effect_1 = Effect.Appear('id',{ duration: 3.0, from: 0, to: 1 }); return false;"

Thanks in Advance,


Answer posted by Alex (support) on Jan 12, 2010 06:45

Please check the sample in grid package dhtmlxGrid/samples/01_cell_types/04_link_grid.html (the link in the second row calls JS function). 

Please provide the complete demo if the issue isn't solved