This is a migrated thread and some comments may be shown as answers.

[Solved] grid migration, client events, problems...

2 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Golden Gains
Top achievements
Rank 1
Golden Gains asked on 03 Apr 2008, 09:06 PM
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

2 Answers, 1 is accepted

Sort by
0
Golden Gains
Top achievements
Rank 1
answered on 03 Apr 2008, 09:11 PM
P.S. I have the latest build - RadControls_Prometheus_2007_3_1425_dev.zip - installed things manually, so just x-copy to my web-app and per your instructions. I saw some changes and fixes also, do I need a hotfix?
0
Pavel
Telerik team
answered on 07 Apr 2008, 06:58 AM
Hi Dragan,

I have created a small sample to demonstrate how you can set the client events programatically. Please examine it and see if it helps. Let me know if further assistance is needed or if you have more questions.

Kind regards,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Golden Gains
Top achievements
Rank 1
Answers by
Golden Gains
Top achievements
Rank 1
Pavel
Telerik team
Share this question
or