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

Edit row with self-referencing

5 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bertrand Dessaintes
Top achievements
Rank 1
Bertrand Dessaintes asked on 09 Feb 2009, 10:26 AM
Hello,

About : (http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/selfreferencing/defaultcs.aspx)
when i add GridEditcommandColum in Self-referencing Radgrid and click to edit link (on child row), i have :

 

 

Erreur du serveur dans l'application '/XeroxAdmin'.

La référence d'objet n'est pas définie à une instance d'un objet.

Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.

Erreur source:

Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives à l'origine et l'emplacement de l'exception peuvent être identifiées en utilisant la trace de la pile d'exception ci-dessous.

Trace de la pile:

[NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.]
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +147
   System.Web.UI.Page.FindControl(String id) +38
   Telerik.Web.UI.GridEditFormItem.get_Item(String columnUniqueName) +321
   Telerik.Web.UI.GridEditFormItem.get_Item(GridColumn column) +59
   Telerik.Web.UI.RadGrid.OnPreRender(EventArgs e) +1300
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Informations sur la version : Version Microsoft .NET Framework :2.0.50727.3053; Version ASP.NET :2.0.50727.3053



Thk you

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 11 Feb 2009, 05:44 PM
Hello Bertrand,

In my attempt to reproduce the described issue I created a test project. I could not replicate the issue on  my end. I attached the sample to this forum thread. Please examine it and tell me if I am missing something.

If the problem persists, I suggest you modify the attached web site in order to replicate the issue and send it back via a regular support thread. Thus I will do my best to assist you further with the resolution.

Kind regards,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Bertrand Dessaintes
Top achievements
Rank 1
answered on 12 Feb 2009, 11:26 AM
Thk you,

Effectively in your example, it works for certain things.

I do not understand why I have problems with the example of the site .. However, in your file, the first level, we track all the elements, it seems to me that there is a problem in relation to the example on your site ...

Let me explain, I use the version 2008.3.1314.20 and in your example, tree works, but in principal level, I see all the records and sub record are also under correct parent record (but also in first level).

Note : update don't work but i suppose it is a little error ... i don't checked

0
Georgi Krustev
Telerik team
answered on 13 Feb 2009, 11:58 AM
Hi Bertrand,

We are not familiar with such a problem related with our live demo. It is working as expected according the applied settings.

Fill free to use my sample project as a reference for the discussion. The hierarchy is shown only to the first level, because MaximumDepth property is set to "0". Thus the grid has only one row hierarchy. You can easily set it to "5" for instance.

In my sample project only the insertion of rows is implemented. The update, delete and etc. are not implemented, as they are not related to the subject.

Kind regards,
Georgi Krustev
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
Bertrand Dessaintes
Top achievements
Rank 1
answered on 19 Feb 2009, 09:31 AM
Thk you but my problem is not radgrid display only first level.

In fact i see all level but in the first level i see all record, exemple :

1     a
    2    a.a
3    b
4    c
    5    c.a
    6    c.b
AND after :
2    a.a
5    c.a
6    c.b

Thk you
0
Georgi Krustev
Telerik team
answered on 23 Feb 2009, 11:16 AM
Hello Bertrand,

Unfortunately I am not able to determine where the exact source of the issue is. You can try to set HierarchyLoadMode to "ServerOnDemand" and to verify that the problem still persists.
If it is convenient for you, I will ask you to post mark-up code of the RadGrid declaration in order to review grid's settings.

Kind regards,
Georgi Krustev
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.
Tags
Grid
Asked by
Bertrand Dessaintes
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Bertrand Dessaintes
Top achievements
Rank 1
Share this question
or