or
function ShowEditForm(id, rowIndex) { var grid = $find("<%= grdIncidents.ClientID %>"); var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); grid.get_masterTableView().selectItem(rowControl, true); window.radopen("EditIncidents.aspx?IncidentID=" + id, "IncidentListDialog"); return false;}<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True" RestrictionZoneID="RadPane1" ReloadOnShow="true" ><Windows><telerik:RadWindow ID="IncidentListDialog" runat="server" Title="Incident" Modal="false" ReloadOnShow="true" ShowContentDuringLoad="false" Width="900px" Height="760px" Top="80px" Left="100px" ></telerik:RadWindow> </Windows></telerik:RadWindowManager><telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="TemplateColumn"> <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" Text="View" NavigateUrl='<%# Url.Action("Inspector","Vessel",new{id=Model.Id}) %>'> </asp:HyperLink> </ItemTemplate></telerik:GridTemplateColumn>

DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'CodeComplementaireNumero'.Case "Add", "InitInsert" EcritureRecurrenteFacade.ObjCompte.Entity = Nothing UndoChange() e.Canceled = True Dim newValues As System.Collections.Specialized.ListDictionary = New System.Collections.Specialized.ListDictionary() newValues("ID") = 0 newValues("CompteNumero") = Nothing newValues("Description") = Nothing newValues("CodeComplementaireNumero") = 0 newValues("Pourcentage") = 0 'newValues("EcritureRecurrenteID") = IIf(EcritureRecurrenteFacade.EcritureCourante IsNot Nothing, EcritureRecurrenteFacade.EcritureCourante.ID, 0) e.Item.OwnerTableView.InsertItem(newValues)Case "SearchCompte" ' Désactive le compte courante pour empêcher les problèmes d'affichages If (EcritureRecurrenteFacade.ObjCompte.Entity IsNot Nothing) AndAlso (EcritureRecurrenteFacade.ObjCompte.Entity.ID > 0) Then EcritureRecurrenteFacade.ObjCompte.Entity = Nothing End If ' Prépare la recherche Dim i As GridDataItem = DirectCast(e.Item, GridDataItem) Dim editValues As New Hashtable() i.ExtractValues(editValues) editValues.Add("CompteNumeroID", i("CompteNumero").ClientID) ViewState("extract") = editValues Dim SearchValue As String = "" If (editValues("CompteNumero") IsNot Nothing) Then SearchValue = editValues("CompteNumero").ToString End If MainMaster.CallSearchItem(GetLocalResourceString("SearchTitle_Compte"), EcritureRecurrenteFacade.ObjCompte.LinqContextTypeName, EcritureRecurrenteFacade.ObjCompte.GetPropertyName(Function() EcritureRecurrenteFacade.ObjCompte.GridSearchSelect), i("CompteNumero").ClientID, EcritureRecurrenteFacade.ObjCompte.GridSearchColumn)Private Sub RechercheEventCompte(ByVal sender As System.Object, ByVal e As System.EventArgs) 'Select case contenant la liste de tous les champs dont la recherche est disponible. If (ViewState("extract") IsNot Nothing) Then Dim Hash As Hashtable = DirectCast(ViewState("extract"), Hashtable) Dim oldvalue As String = "" If Hash("CompteNumero") IsNot Nothing Then oldvalue = Hash("CompteNumero").ToString End If Dim ObjEventArgs As SearchReturnEvent = CType(e, SearchReturnEvent) Select Case ObjEventArgs.UpdatedControlId Case Hash("CompteNumeroID").ToString GetCompteByID(ObjEventArgs.IDSelect) End Select End IfEnd SubPublic Sub GetCompteByID(ByVal IdCompte As Integer) Try ' REcherche et obtention du Compte relier a la recherche EcritureRecurrenteFacade.ObjCompte.GetByID(IdCompte) EcritureRecurrenteFacade.ObjCompte.Entity = EcritureRecurrenteFacade.ObjCompte.SelectedTEntity RadGridEdit.Rebind() ' BUG LINE
'RadGridEdit.DataBind() Catch ex As Exception Throw ex End TryEnd Sub Private Sub RadGridEdit_ItemDataBound(sender As Object, e As GridItemEventArgs) Handles RadGridEdit.ItemDataBound 'Ajouter la validation de confirmation 'Le code à été mis ici pour l'ajout du script afin de permettre de désactiver les événements If TypeOf e.Item Is GridDataItem Then Dim dataItem As GridDataItem = CType(e.Item, GridDataItem) ' Permet d'inscrire la valeur de la recherche lors de insertion d'une nouvelle ligne. If (EcritureRecurrenteFacade.ObjCompte.Entity IsNot Nothing) AndAlso (EcritureRecurrenteFacade.ObjCompte.Entity.ID > 0) AndAlso (ViewState("extract") IsNot Nothing) Then If RadGridEdit.MasterTableView.EditMode = GridEditMode.InPlace Then If TypeOf e.Item Is GridDataInsertItem AndAlso e.Item.OwnerTableView.IsItemInserted Then Dim insertItem As GridDataInsertItem = DirectCast(e.Item, GridDataInsertItem) TryCast(insertItem("CompteNumero").Controls(0), Telerik.Web.UI.RadNumericTextBox).Text = CStr(EcritureRecurrenteFacade.ObjCompte.Entity.Numero) TryCast(insertItem("Description").Controls(0), TextBox).Text = EcritureRecurrenteFacade.ObjCompte.Entity.Description ElseIf TypeOf e.Item Is GridDataItem AndAlso e.Item.IsInEditMode Then Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem) TryCast(editItem("CompteNumero").Controls(0), Telerik.Web.UI.RadNumericTextBox).Text = CStr(EcritureRecurrenteFacade.ObjCompte.Entity.Numero) TryCast(editItem("Description").Controls(0), TextBox).Text = EcritureRecurrenteFacade.ObjCompte.Entity.Description End If End If End If {...}End subDataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'CodeComplementaireNumero'.