We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Treeview node selection issue

Thread ID:

Created:

Updated:

Platform:

Replies:

77422 Oct 30,2008 02:33 PM Dec 18,2008 04:08 AM ASP.NET Web Forms (Classic) 5
loading
Tags: Tools
Todd Dill
Asked On October 30, 2008 02:33 PM

I am using Syncfusion.Tools.Web, Version 6.303.1.8. I have a treeview on a page, populated via server db call. It seems that I can select/expand a tree node by anywhere in the tree. In other words, I can click any of the white space in the tree and have a node either selected or expanded. Is there any way to restrict tree node selection to the text of the node (maybe a couple of pixels surrounding), or to the +/- symbol for expanding and collapsing? So, you would have to click the node text to fire the selected event.

Thanks so much for your help.


Rekha P [Syncfusion]
Replied On October 31, 2008 02:39 AM

Hi Todd,

Thank you for your interest in Syncfusion Products.

In order to make expanding and collapsing the TreeViewNode, the property ExpandOnRowClick="false" is set. If ExpandOnRowClick is set false, then we can expand or collapse a node using only +/- symbol and for event raising we need to select the TreeViewNode text or to its surrounding pixels. Please refer the below link sample files,
http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F77422-TreeView.zip

Please let me know if this sample helps you.

Thanks,
Rekha


Todd Dill
Replied On October 31, 2008 01:36 PM

Thanks so much for your help. Unfortuately, the sample you provided didn't solve the problem I was experiencing. Sorry about that, its sort of difficult for me to explain.

The problem I have is with this part:

"for event raising we need to select the TreeViewNode text or to its surrounding pixels"

It's the "surrounding pixels" that I want to address. Is there anyway to restrict node selected event to just the TreeViewNode text and not its surrounding pixels? I'd like to be able to click in the vast white space on the right of the nodes and not have anything selected.

Thanks again and sorry for the trouble.

Todd

>Hi Todd,

Thank you for your interest in Syncfusion Products.

In order to make expanding and collapsing the TreeViewNode, the property ExpandOnRowClick="false" is set. If ExpandOnRowClick is set false, then we can expand or collapse a node using only +/- symbol and for event raising we need to select the TreeViewNode text or to its surrounding pixels. Please refer the below link sample files,
http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F77422-TreeView.zip

Please let me know if this sample helps you.

Thanks,
Rekha




Rekha P [Syncfusion]
Replied On November 3, 2008 07:39 AM

Hi Todd,

I am able to reproduce the issue - when white space on the right of the TreeViewNode is clicked, the OnNodeSelect event is getting raised. This issue is suspected to be a defect and we have sent this to our development team for more analysis. We will update you on this issue on or before 6th November 2008.

Please let me know if you have any concerns.

Thanks,
Rekha


Rekha P [Syncfusion]
Replied On November 10, 2008 07:04 AM

Hi Todd,

The issue with - 'when white space on the right of the TreeViewNode is clicked, the OnNodeSelect event is getting raised' has been confirmed as a defect and our Developers are working on fixing this issue. The fix for this issue is expected to be available on December 2nd 2008 and we will get back to you on the specified date with more details.

Please refer to the following link for the status update on this defect fix.
http://www.syncfusion.com/support/issues/tools/Default.aspx?ToDo=view&questId=12178

Thank you for being patient and please let us know if you have any other concerns.

Regards,
Rekha


Rekha P [Syncfusion]
Replied On December 18, 2008 04:08 AM

Hi Todd,

Thank you for being patient.

We analyzed more on this defect and found that this is the standard behaviour because TreeView in Windows document Explorer and VS 2005 Solution Explorer has this same behaviour of raising events when on the right side of the TreeView node is selected.

So this defect has been confirmed as a feature request and we have logged a request in our feature management system. Our developers are currently working to implement this feature and we will get back to you once this feature is implemented.

Please let us know if you have any concerns.

Thanks,
Rekha


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;