Hello,
How do you pass back to the server the event args in a OnRowResized event on the client-side?
I got it to work in a OnRowClick event by having this statement in my code behind:
And in my .ASCX I have this:
How do I accomplish the same thing for a client-side OnRowResized event?
If anyone can give a quick response (or a working example), it would be highly appeciated.
Thanks.
How do you pass back to the server the event args in a OnRowResized event on the client-side?
I got it to work in a OnRowClick event by having this statement in my code behind:
RadGrid1.ClientSettings.EnablePostBackOnRowClick = True
RadGrid1.ClientSettings.ClientEvents.OnRowClick = "On_Row_Click"
AddHandler RadGrid1.ItemCommand, AddressOf RadGrid1_ItemCommand
And in my .ASCX I have this:
function On_Row_Click(sender, eventArgs) {
__doPostBack(sender.ClientID, "RowClicked:" + eventArgs.get_itemIndexHierarchical());
}
When a row is clicked, it runs the __doPostBack command above and I catch the postback on the server side in my code behind:
Private Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)
'Client-side event is caught here !!!
End Sub
How do I accomplish the same thing for a client-side OnRowResized event?
If anyone can give a quick response (or a working example), it would be highly appeciated.
Thanks.