This question is locked. New answers and comments are not allowed.
Adam Salvo
Top achievements
Rank 1
Adam Salvo
asked on 05 Oct 2010, 11:31 PM
I have a TreeView control in which I bind a root node (level 0) and it's children (level 1) when the view is rendered. All nodes at level 2 and below are loaded on demand using the DataBinding method:
.DataBinding(x => x.Ajax().Select("AjaxLoadTreeNodes", "Location"))
On my post action in my controller, I have defined a parameter of type List<TreeViewItem>. This parameter only ends up with the checked status for the nodes that were loaded as part of the initial rendering (level 0 and 1). None of the nodes which are loaded on demand (and eventually checked) are posted back to the server. I have verified the post information using Firebug, and I only see information relating to the original nodes (level 0 and level 1).
Is it possible to get the checked status for nodes which were loaded on demand to post?
Thanks,
Adam
.DataBinding(x => x.Ajax().Select("AjaxLoadTreeNodes", "Location"))
On my post action in my controller, I have defined a parameter of type List<TreeViewItem>. This parameter only ends up with the checked status for the nodes that were loaded as part of the initial rendering (level 0 and 1). None of the nodes which are loaded on demand (and eventually checked) are posted back to the server. I have verified the post information using Firebug, and I only see information relating to the original nodes (level 0 and level 1).
Is it possible to get the checked status for nodes which were loaded on demand to post?
Thanks,
Adam
11 Answers, 1 is accepted
0
Accepted
Hello Adam Salvo,
Thank you for drawing our attention to this issue.
I confirm the observed behavior as a bug, which I am glad to inform you is already fixed. The fix will be included in the next official release of Telerik components for ASP.NET MVC.
For your convenience I have attached the files, which includes the fix.
I have updated your Telerik points.
Best wishes,
Georgi Krustev
the Telerik team
Thank you for drawing our attention to this issue.
I confirm the observed behavior as a bug, which I am glad to inform you is already fixed. The fix will be included in the next official release of Telerik components for ASP.NET MVC.
For your convenience I have attached the files, which includes the fix.
I have updated your Telerik points.
Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Adam Salvo
Top achievements
Rank 1
answered on 06 Oct 2010, 06:13 PM
A step in the right direction. After applying the fix (copied the treeview.min.js file to my website), I now get all checked nodes posted back, even those that were loaded on demand. However, there is a minor inconsistancy between nodes that were created when the view was rendered, and those that were loaded on demand.
Nodes which were loaded on demand and that which are checked are posted back, but thier checked property is set to false. Nodes which were rendered with the view originally and are checked are posted back, but thier checked property is set to true.
Since only checked nodes are posted back, I can work with that assumption. However, I thought you might want to take a look at this and decide if the loaded on demand nodes should also post back with thier checked property set to true.
Adam
Nodes which were loaded on demand and that which are checked are posted back, but thier checked property is set to false. Nodes which were rendered with the view originally and are checked are posted back, but thier checked property is set to true.
Since only checked nodes are posted back, I can work with that assumption. However, I thought you might want to take a look at this and decide if the loaded on demand nodes should also post back with thier checked property set to true.
Adam
0
Hello Adam Salvo,
You found another erroneous behavior related with the fixed bud :). The reported bug was fixed and the fix will be included in the next official release of Telerik components for ASP.NET MVC.
I have updated your Telerik points.
Greetings,
Georgi Krustev
the Telerik team
You found another erroneous behavior related with the fixed bud :). The reported bug was fixed and the fix will be included in the next official release of Telerik components for ASP.NET MVC.
I have updated your Telerik points.
Greetings,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
zhang
Top achievements
Rank 1
answered on 14 Oct 2010, 04:16 PM
Do you fix the bug? the loaded on demand nodes should also post back with thier checked property set to true?
0
Hello zhang,
The reported issues are fixed and the fixes will be included in the next official release of Telerik components for ASP.NET MVC scheduled for the middle of November.
Sincerely yours,
Georgi Krustev
the Telerik team
The reported issues are fixed and the fixes will be included in the next official release of Telerik components for ASP.NET MVC scheduled for the middle of November.
Sincerely yours,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Manoj
Top achievements
Rank 1
answered on 23 Nov 2010, 11:48 AM
Nodes which were loaded on demand and that which are checked are posted back ,but still the checked property set to "false" only.
I found that this is not yet fixed as part of the code[2010. Telerik_Extensions_for_ASPNET_MVC_2010_3_1110_OpenSource]
released on 10th november please let us know the workaround for this fix.
Thanks
Manoj.
I found that this is not yet fixed as part of the code[2010. Telerik_Extensions_for_ASPNET_MVC_2010_3_1110_OpenSource]
released on 10th november please let us know the workaround for this fix.
Thanks
Manoj.
0
Manoj
Top achievements
Rank 1
answered on 25 Nov 2010, 03:43 PM
I have checked this in the latest source code and still the checked property is always set to false.
Please provide any pointers on how to fix this.
Please provide any pointers on how to fix this.
0
Hello Manoj,
Thank you for your feedback.
This is a known issue, which I am glad to inform you is already fixed. The fix will be included in the next official release of Telerik Components for ASP.NET MVC.
For your convenience I have attached the modified test project which includes the fix.
Kind regards,
Georgi Krustev
the Telerik team
Thank you for your feedback.
This is a known issue, which I am glad to inform you is already fixed. The fix will be included in the next official release of Telerik Components for ASP.NET MVC.
For your convenience I have attached the modified test project which includes the fix.
Kind regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Arava
Top achievements
Rank 1
answered on 27 Jan 2011, 08:51 AM
Hi ,
I am still facing the issue with that TreeViewItem checked state is always coming as false.even if the node is checked or unchecked.
And i am using Ajax binding also.i have tried with the JS that you have sent but it could not resolve my problem.
based the checked state only i want to check or uncheck the load on demand children but it is always coming false.
As you told earlier it will be fixed in November edidtion.Did the issue got resloved, if so please send me the updated Version.
I need this very urgently which is an urgent fix for us.
Thanks in Advance.
Thanks & Regards,
Shilpa
I am still facing the issue with that TreeViewItem checked state is always coming as false.even if the node is checked or unchecked.
And i am using Ajax binding also.i have tried with the JS that you have sent but it could not resolve my problem.
based the checked state only i want to check or uncheck the load on demand children but it is always coming false.
As you told earlier it will be fixed in November edidtion.Did the issue got resloved, if so please send me the updated Version.
I need this very urgently which is an urgent fix for us.
Thanks in Advance.
Thanks & Regards,
Shilpa
0
Peter
Top achievements
Rank 1
answered on 27 Jan 2011, 09:47 AM
Hi,
Give a try with the latest release (version 2010.3.1318), which is service pack of the Q3 2010 release.
I am using treeview and everything works fine. So something in your implementation should be the problem.
Regards,
Peter
Give a try with the latest release (version 2010.3.1318), which is service pack of the Q3 2010 release.
I am using treeview and everything works fine. So something in your implementation should be the problem.
Regards,
Peter
0
Arava
Top achievements
Rank 1
answered on 27 Jan 2011, 10:54 AM
Hi Peter,
Thanks for info and could you please provide me the js file which is working fine for you.
Thanks,
Shilpa
Thanks for info and could you please provide me the js file which is working fine for you.
Thanks,
Shilpa