If e.CommandName = "RowClick" Then
Dim GridItem As GridDataItem = CType(e.Item, GridDataItem)
Dim itemPrimaryKey As String = GridItem.GetDataKeyValue("PROJECT_ID").ToString()
Response.Redirect("Project.aspx?ID=" & (itemPrimaryKey) & "&TYPE=0")
End If
The problem is I also have
AllowAutomaticUpdates
="True"
and
<telerik:GridEditCommandColumn ButtonType="ImageButton" UpdateImageUrl="../RadControls/Grid/Update.gif"
EditImageUrl="../RadControls/Grid/Edit.gif" InsertImageUrl="../RadControls/Grid/Insert.gif"
CancelImageUrl="../RadControls/Grid/Cancel.gif" UniqueName="EditCommandColumn">
<HeaderStyle Width="20px" />
</telerik:GridEditCommandColumn>
So when I click on the GridEditCommandColumn it too redirects me to another page and does not bring up the edit functionality. This was working before until I upgraded to 2008.1.515.20
| function OnClientClose(radWindow) { |
| __doPostBack("<%=fvNameName.ClientID%>",radWindow.argument); |
| return false; |
| } |
| if (Page.IsPostBack) { |
| // Figure out what to refresh |
| switch (Request.Params["__EVENTARGUMENT"]) { |
| case "IncidentNameVariant": |
| fvNameName.DataBind(); |
| gvName.Rebind(); |
| break; |
| default: |
| break; |
| } |
| } |
| __doPostBack("<%=gvName.ClientID%>",radWindow.argument); |
| Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) |
| '----------------------------------------------------------------------- |
| ' If inserting, set the default competitor number, ie SiteNr + a seq nr |
| '----------------------------------------------------------------------- |
| If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then |
| If e.Item.OwnerTableView.IsItemInserted Then |
| Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem) |
| ' Find the CompNr textbox |
| Dim CompNrRadTextBox As RadTextBox = TryCast(item("CompNr").FindControl("CompNrTextBox"), RadTextBox) |
RadAjaxManager.ResponseScripts.Add(
@"Sys.Application.add_load(function()
{radalert('Under Construction...', 250, 100);})"
);
thanks