bei Telerik.WinControls.UI.RadScrollBarElement.get_ThumbLengthProportion()bei Telerik.WinControls.UI.RadScrollBarElement.SetupThumb(Int32 newValue, Boolean thumbLocationOnly)bei Telerik.WinControls.UI.RadScrollBarElement.set_Maximum(Int32 value)bei Telerik.WinControls.UI.VirtualizedScrollPanel`2..ctor()bei Telerik.WinControls.UI.RadListElement..ctor()bei Telerik.WinControls.UI.PopupEditorElement.CreateChildElements()bei Telerik.WinControls.UI.RadDropDownListElement.CreateChildElements()bei Telerik.WinControls.RadElement.CallCreateChildElements()bei Telerik.WinControls.RadElement.Construct()bei Telerik.WinControls.RadElement..ctor()bei Telerik.WinControls.RadItem..ctor()bei Telerik.WinControls.UI.PopupEditorElement..ctor()bei Telerik.WinControls.UI.RadDropDownListElement..ctor()bei Telerik.WinControls.UI.RadDropDownList.CreateChildItems(RadElement parent)bei Telerik.WinControls.RadControl.Telerik.WinControls.IComponentTreeHandler.CreateChildItems(RadElement parent)bei Telerik.WinControls.RadControl.ComponentOverrideElementTree.CreateChildItems(RadElement parent)bei Telerik.WinControls.RadControl.Construct()bei Telerik.WinControls.RadControl..ctor()bei Telerik.WinControls.UI.RadDropDownList..ctor()bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice.InitializeComponent() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.Designer.cs:Zeile 37.bei SenseIT._4Dtwo.CatchIT.Forms.AddNewDevice..ctor() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Forms\AddNewDevice.cs:Zeile 20.bei SenseIT._4Dtwo.CatchIT.Controls.DeviceView.radButton1_Click(Object sender, EventArgs e) in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Controls\DeviceView.cs:Zeile 161.bei System.Windows.Forms.Control.OnClick(EventArgs e)bei Telerik.WinControls.RadControl.OnClick(EventArgs e)bei Telerik.WinControls.UI.RadButton.ButtonElement_Click(Object sender, EventArgs e)bei Telerik.WinControls.RadItem.OnClick(EventArgs e)bei Telerik.WinControls.UI.RadButtonItem.OnClick(EventArgs e)bei Telerik.WinControls.RadItem.DoClick(EventArgs e)bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)bei Telerik.WinControls.RadElement.RaiseRoutedEvent(RadElement sender, RoutedEventArgs args)bei Telerik.WinControls.RadElement.DoMouseUp(MouseEventArgs e)bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)bei System.Windows.Forms.Control.WndProc(Message& m)bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)bei Telerik.WinControls.RadControl.WndProc(Message& m)bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)bei System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)bei System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)bei System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)bei System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)bei System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)bei System.Windows.Forms.Application.Run(Form mainForm)bei SenseIT._4Dtwo.CatchIT.Program.Main() in E:\Projekte\es-tfs\ES.4Dtwo\ES.4Dtwo.Hydra\ES.4Dtwo.Hydra\SenseIT.4Dtwo.CatchIT\Program.cs:Zeile 21.bei System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)bei System.Threading.ThreadHelper.ThreadStart()
GridViewTemplate cSubCat = new GridViewTemplate(this.dgTransactions);GridViewRelation relGridSubCat = new GridViewRelation(this.dgTransactions.MasterGridViewTemplate);relGridSubCat.ChildTemplate = cSubCat;relGridSubCat.ChildColumnNames.Add("CategoryType");relGridSubCat.ParentColumnNames.Add("CategoryType");this.dgTransactions.Relations.Add(relGridSubCat); this.dgTransactions.MasterGridViewTemplate.ChildGridViewTemplates.Add(cSubCat);GridViewTemplate cTrans = new GridViewTemplate(this.dgTransactions); GridViewRelation relSubCatTrans = new GridViewRelation();relSubCatTrans.ChildTemplate = cTrans;relSubCatTrans.ParentTemplate = this.dgTransactions.MasterGridViewTemplate.ChildGridViewTemplates[0];relSubCatTrans.ChildColumnNames.Add("CategorySubType");relSubCatTrans.ParentColumnNames.Add("CategorySubType"); this.dgTransactions.Relations.Add(relSubCatTrans);cSubCat.ChildGridViewTemplates.Add(cTrans);var sub = from x in this.CurrentTransactions select new { CategorySubType = x.CategorySubType, CategoryType = x.CategoryType }; this.dgTransactions.DataSource = sub.Select(grp => new { grp.CategoryType }).Distinct().ToList(); ; cSubCat.DataSource = sub.Select(grp => new { grp.CategorySubType, grp.CategoryType }).Distinct().ToList();cTrans.DataSource = this.CurrentTransactions.ToList();GridViewTextBoxColumn
txtEstatus = new GridViewTextBoxColumn();
txtEstatus.Name =
"Estatus";
txtEstatus.HeaderText =
"Estatus";
txtEstatus.ReadOnly =
true;
radGridView1.Columns.Add(txtEstatus);
GridViewTextBoxColumn txtot = new GridViewTextBoxColumn();
txtot.Name =
"OT";
txtot.ReadOnly =
true;
txtot.HeaderText =
"OT";
radGridView1.Columns.Add(txtot);
radGridView1.AllowAddNewRow =
true;
radGridView1.AutoSizeColumnsMode =
GridViewAutoSizeColumnsMode.Fill;
radGridView1.Rows.Add((
new List<string> {"333","333","dd","dd" }).ToArray());
Private Sub TabelBuku_CellValidating(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.CellValidatingEventArgs) Handles TabelBuku.CellValidating Dim kolom = TryCast(e.Column, GridViewDataColumn) If ((TypeOf e.Row Is GridViewDataRowInfo Or (TypeOf e.Row Is GridViewNewRowInfo)) AndAlso (kolom IsNot Nothing) AndAlso (kolom.FieldName = "Tahun Terbit")) Then Dim nilai = DirectCast(e.Value, String) If (String.IsNullOrEmpty(nilai)) Then e.Cancel = True e.Row.ErrorText = "Tahun Terbit Belum Diisi" warningKesalahan(Color.LightYellow, Color.Red, "Tahun Terbit Belum Diisi!!") Else e.Row.ErrorText = String.Empty warningKesalahan(Color.Transparent, Color.LimeGreen, "Editor Data Buku") End If End If If ((TypeOf e.Row Is GridViewDataRowInfo Or (TypeOf e.Row Is GridViewNewRowInfo)) AndAlso (kolom IsNot Nothing) AndAlso (kolom.FieldName = "IdBuku")) Then Dim nilai = DirectCast(e.Value, String) If (String.IsNullOrEmpty(nilai)) Then e.Cancel = True e.Row.ErrorText = "ID Buku Harus Diisi" warningKesalahan(Color.LightYellow, Color.Red, "ID Buku Harus Diisi") Else e.Row.ErrorText = String.Empty warningKesalahan(Color.Transparent, Color.LimeGreen, "Editor Data Buku") End If End IfEnd Subhi,
I have a radcontextmenu which only seems to work once. When I right click, my new items are added to the default menu, but when I go to do it again, I get the error message: 'Cannot remove the specified item because it was not found in the specified collection.'
here is the code:
Private
Sub grdSearch_ContextMenuOpening(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles grdSearch.ContextMenuOpening
Try
e.ContextMenu.Items.AddRange(rcmDebts.Items)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub

Private Sub GridPrimerResults_CellFormatting(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellFormattingEventArgs) Handles GridPrimerResults.CellFormatting If CInt(e.CellElement.RowInfo.Cells(1).Value) <= 0 Then e.CellElement.NumberOfColors = 1 e.CellElement.ForeColor = Color.Red e.CellElement.DrawFill = True End If End Sub