This is a migrated thread and some comments may be shown as answers.

In place editing gives error for self referenced tree view databinding

4 Answers 84 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
vighnesh
Top achievements
Rank 1
vighnesh asked on 18 Feb 2009, 01:27 PM
I have set datasource of a tree view from a data table which is self referencing i.e. it contains columns id and parent id and so data is bind successfully. Now i have set property lableEdit = true for this radtreeview. and so when I press F2 and after I enter new text to the nodes I get error "Column ColName is ReadOnly." Where ColName is DisplayMember of this radTreeView. Thank you so far fast reply.

4 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 19 Feb 2009, 03:28 PM
Hi vighnesh,

Thank you for writing. This does not seem to be an issue related to the tree view. I think that your data source is the problem. Check if that ColName column has a property setter or if it is declared as read-only. I am looking forward to your reply.

Kind regards,
Victor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rickard
Top achievements
Rank 1
answered on 25 Mar 2009, 10:14 PM
Hi!

I get a null pointer exception when I do the same thing. 

It is only a few clicks to set the whole thing up so I don't understand how I can get this wrong.

   vid Telerik.WinControls.UI.SelfReferenceDataBinding.UpdateItem(Int32 index)
   vid Telerik.WinControls.UI.SelfReferenceDataBinding.dataManager_ListChanged(Object sender, ListChangedEventArgs e)
   vid System.Windows.Forms.CurrencyManager.OnListChanged(ListChangedEventArgs e)
   vid System.Windows.Forms.CurrencyManager.List_ListChanged(Object sender, ListChangedEventArgs e)
   vid System.Windows.Forms.BindingSource.OnListChanged(ListChangedEventArgs e)
   vid System.Windows.Forms.BindingSource.InnerList_ListChanged(Object sender, ListChangedEventArgs e)
   vid System.Data.DataView.OnListChanged(ListChangedEventArgs e)
   vid System.Data.DataView.IndexListChanged(Object sender, ListChangedEventArgs e)
   vid System.Data.DataView.IndexListChangedInternal(ListChangedEventArgs e)
   vid System.Data.DataViewListener.IndexListChanged(ListChangedEventArgs e)
   vid System.Data.Index.<OnListChanged>b__2(DataViewListener listener, ListChangedEventArgs args, Boolean arg2, Boolean arg3)
   vid System.Data.Listeners`1.Notify[T1,T2,T3](T1 arg1, T2 arg2, T3 arg3, Action`4 action)
   vid System.Data.Index.OnListChanged(ListChangedEventArgs e)
   vid System.Data.Index.OnListChanged(ListChangedType changedType, Int32 newIndex, Int32 oldIndex)
   vid System.Data.Index.RecordStateChanged(Int32 oldRecord, DataViewRowState oldOldState, DataViewRowState oldNewState, Int32 newRecord, DataViewRowState newOldState, DataViewRowState newNewState)
   vid System.Data.DataTable.RecordStateChanged(Int32 record1, DataViewRowState oldState1, DataViewRowState newState1, Int32 record2, DataViewRowState oldState2, DataViewRowState newState2)
   vid System.Data.DataTable.SetNewRecordWorker(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Int32 position, Boolean fireEvent, Exception& deferredException)
   vid System.Data.DataTable.SetNewRecord(DataRow row, Int32 proposedRecord, DataRowAction action, Boolean isInMerge, Boolean fireEvent)
   vid System.Data.DataRow.SetNewRecord(Int32 record)
   vid System.Data.DataRow.EndEdit()
   vid System.Data.DataRow.set_Item(DataColumn column, Object value)
   vid System.Data.DataRowView.SetColumnValue(DataColumn column, Object value)
   vid System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value)
   vid Telerik.WinControls.UI.SelfReferenceDataBinding.OnAfterLabelEdit(Object sender, NodeLabelEditEventArgs args)
   vid Telerik.WinControls.UI.RadTreeView.OnEdited(Object sender, EventArgs args)
   vid Telerik.WinControls.UI.RadTreeView.EndEdit(Boolean cancelEdit)
   vid Telerik.WinControls.UI.RadTreeView.CallValueChanged(Object sender, EventArgs e)
   vid Telerik.WinControls.UI.RadTreeViewTextEditor.OnValueChanged(EventArgs args)
   vid Telerik.WinControls.UI.RadTreeViewTextEditor.EndEdit()
   vid Telerik.WinControls.UI.RadTreeViewTextEditor.editor_KeyDown(Object sender, KeyEventArgs e)
   vid Telerik.WinControls.RadItem.OnKeyDown(KeyEventArgs e)
   vid Telerik.WinControls.UI.RadTextBoxItem.TextBoxControl_KeyDown(Object sender, KeyEventArgs e)
   vid System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
   vid System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   vid System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   vid System.Windows.Forms.Control.WmKeyChar(Message& m)
   vid System.Windows.Forms.Control.WndProc(Message& m)
   vid System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   vid System.Windows.Forms.TextBox.WndProc(Message& m)
   vid Telerik.WinControls.UI.HostedTextBoxBase.WndProc(Message& message)
   vid System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   vid System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   vid System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   vid System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   vid System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   vid System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   vid System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   vid System.Windows.Forms.Application.Run(Form mainForm)
   vid conf.Program.Main() i C:\mysvn\NormanLewis\conf\Program.cs:rad 18
   vid System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
   vid System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   vid Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   vid System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   vid System.Threading.ThreadHelper.ThreadStart()

No coding, just followed your example.

Cheers!

Rickard Nilsson

0
Victor
Telerik team
answered on 30 Mar 2009, 12:26 PM
Hi Rickard,

Thank you for writing. Could you please open a new support ticket and send me a sample application that reproduces the issue? This way I will be able to investigate it and possibly address it in a timely manner.

I am looking forward to your reply.

Greetings,
Victor
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Stefan
Telerik team
answered on 22 Mar 2011, 02:41 PM
Hi Rickard,

Please note that in Q1 2011 we have introduced a major upgrade of RadTreeView control, which is now virtualized and fully customizable. Feel free to download the latest release and try it out. For more information on our latest release refer to this blog post.

Regards,
Stefan
the Telerik team

Tags
Treeview
Asked by
vighnesh
Top achievements
Rank 1
Answers by
Victor
Telerik team
Rickard
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or