Hi, sorry for bothering you, but I'm trying to move the old code (that was working for some time) to Prometheus, and turned out to be more of a challenge then initially anticipated. Seems to be quite a few changes...
Anyway, I got thru some of the problems, but currently, I'm trying to figure out why the client events aren't working properly.
I have set up, as before (just the important parts, too many code otherwise)...
<ClientSettings ApplyStylesOnClient="true" >
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
</ClientSettings>
Then client events are set up in the code behind (for some specific reasons)...
GridClientEvents events = _grid.Grid.ClientSettings.ClientEvents;
_grid.Grid.ClientSettings.Selecting.AllowRowSelect = true;
events.OnRowMouseOver = "RowMouseOver";
events.OnRowMouseOut = "RowMouseOut";
events.OnGridCreated = "GetGrid";
events.OnRowSelected = "RowSelected";
events.OnRowDeselected = "RowDeSelected";
...and javascript code is changed according to new specs, but I turned it off at the end, so I have empty handlers, each w/ (sender, eventArgs) and just alert() to dump them out...So, I think I
var myradgrid;
function GetGrid(sender, eventArgs)
{
alert(sender);
myradgrid = sender;
}
...so, the initial OnGridCreated works fine, but none of the others are fired.
So I presume some flag or something is missing.
On the other side, Ajax is working.
I've been thru your migration walk-throughs, covered a good deal of documentation but I guess you should be able save me some time,
THanks in advance,
Dragan
Anyway, I got thru some of the problems, but currently, I'm trying to figure out why the client events aren't working properly.
I have set up, as before (just the important parts, too many code otherwise)...
<ClientSettings ApplyStylesOnClient="true" >
<Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
</ClientSettings>
Then client events are set up in the code behind (for some specific reasons)...
GridClientEvents events = _grid.Grid.ClientSettings.ClientEvents;
_grid.Grid.ClientSettings.Selecting.AllowRowSelect = true;
events.OnRowMouseOver = "RowMouseOver";
events.OnRowMouseOut = "RowMouseOut";
events.OnGridCreated = "GetGrid";
events.OnRowSelected = "RowSelected";
events.OnRowDeselected = "RowDeSelected";
...and javascript code is changed according to new specs, but I turned it off at the end, so I have empty handlers, each w/ (sender, eventArgs) and just alert() to dump them out...So, I think I
var myradgrid;
function GetGrid(sender, eventArgs)
{
alert(sender);
myradgrid = sender;
}
...so, the initial OnGridCreated works fine, but none of the others are fired.
So I presume some flag or something is missing.
On the other side, Ajax is working.
I've been thru your migration walk-throughs, covered a good deal of documentation but I guess you should be able save me some time,
THanks in advance,
Dragan