Hi Stephen,
Thanks for your sample. Example was quick impressive but I cannot use the syncfusion popup''s as i am already using Context Menu''s. Is there any way with Context Menu to implment the same thing.
Thanks
Satish
>Hi Satish,
>
>You can achieve what you require using Syncfusion popupmenus instead of context menus.
>
>
TreeViewCancelPopUpForums_1914.zip
>
>Please take a look at the sample and let me know if you have any questions. Thanks.
>
>Best regards,
>
>Stephen.
>
>>Hi Guru,
>>Please find the application and the document.
>>Thanks
>>Satish
>>
>>
>>
>>>Hi Satish,
>>>
>>>Please take a look at the sample in the directory ...\Syncfusion\Essential Suite\2.0.5.1\Tools\Samples\Tree Package\TreeViewAdvOwnerDraw. The TreeViewAdv has to be targetted to a particular directory in the disk and then manually populated as shown in the code below :
>>>
>>>private void treeViewAdv2_BeforeExpand(object sender, Syncfusion.Windows.Forms.Tools.TreeViewAdvCancelableNodeEventArgs e)
>>> {
>>> if(e.Node.ExpandedOnce) return;
>>>
>>> string path = e.Node.GetPath("\\");
>>> ArrayList dirs = new ArrayList(Directory.GetDirectories(path));
>>> for(int i=0;i
>> {
>>> string dir = (string)dirs[i];
>>> int lastIndex = dir.LastIndexOf("\\")+1;
>>> // if(lastIndex <=0) lastIndex = dir.LastIndexOf(":")+1;
>>> // if(lastIndex>0)
>>> TreeNodeAdv node = new TreeNodeAdv(dir.Substring(lastIndex));
>>> e.Node.Nodes.Add(node);
>>> }
>>> }
>>>
>>>Please refer to it and let me know if this meets your requirements.
>>>
>>>Regards,
>>>Guru Patwal
>>>Syncfusion,Inc.
>>
>>TreeViewWithContextMenu_4970.zip
>>
>>
>
>
>
>