Welcome Guest Search | Active Topics | Sign In | Register

Can't get GridItem Key Options
Christiano
Posted: Tuesday, December 23, 2008 10:42:07 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Hello...

I'm trying this JS to get the code:

Code: JavaScript
var grCP = <%= grCP.ClientID %>;
            var item = grCP.getSelectedItem();
            var PKid = item.getKey();
            showPopWin('modUsuarios.aspx?modo=alterar&key='+PKid,750,500, null, true);



The function is not called by any Grid onClick Event.
But the DataKey is not been retrieved.

the [item] var is being set as undefined.

How can I get this value?

tks,
christiano.
Christiano
Posted: Tuesday, December 23, 2008 10:46:44 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Got it!!!

tks...


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.