Hi,
I am using this demo to allow me to open rad windows from my RadGrid: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
My challenge is that I need to encrypt my URL parameters server side. I think this would be simple if I could grab the Primary Key as each item is created on the grid. But, I cannot seem to get the syntax correct to get that ID of the items DataKey. I've tried variations of this statement:
Most of my errors seem to be around e.Item.ItemIndex. Any help?
Jim
I am using this demo to allow me to open rad windows from my RadGrid: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
My challenge is that I need to encrypt my URL parameters server side. I think this would be simple if I could grab the Primary Key as each item is created on the grid. But, I cannot seem to get the syntax correct to get that ID of the items DataKey. I've tried variations of this statement:
Dim
myIndex
As
Integer
= e.Item.ItemIndex
If
myIndex > 0
Then
Dim
myPK
As
String
= e.Item.OwnerTableView.Items(myIndex)(
"QuestionID"
).Text
'Then encrypt from here and add to the function defined in the link in the "template" column.
End
If
Most of my errors seem to be around e.Item.ItemIndex. Any help?
Jim