Hello!
I have a webdatatree which contains templates which contain asp ImageButtons.
I would like to capture the clicking of these buttons in the ItemCommand event of the WebDataTree.
For "trunk", or top level nodes, it works perfectly. But for subnodes which use the exact same template, I get the following error:
System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at Infragistics.Web.UI.NavigationControls.NavControl.ResolveItem(String fullAddress) at Infragistics.Web.UI.NavigationControls.WebDataTree.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
This is aspx code for my datatree:
<
="Please Wait"
="Move">
>
="RequirementTemplate">
="Edit Requirement"
="EditRequirement"
/>
="Remove Requirement"
="RemoveRequirement"
="Add"
="AddToRequirement"
="Are you sure you want to permanantly remove this requirement?"
="ElementTemplate">
="Edit Element"
="EditElement"
="Remove Element"
="RemoveElement"
="Are you sure you want to permanantly remove this element?"
And finally, here is the code for my ItemCommand event for the WebDataTree:
protected void wdtCurricula_ItemCommand(object sender, DataTreeCommandEventArgs
e)
{
lblCommandName.Text = e.CommandName;
lblCommandArgument.Text = e.CommandArgument.ToString();
(e.CommandArgument.ToString());
(e.CommandName)
:
RemoveRequirement(commandArgument);
;
EditRequirement(commandArgument);
ucAddCurriculumRequirement.ParentRequirementId = commandArgument;
ucAddCurriculumRequirement.Show();
As I said, the ItemCommand event fires properly and behaves exactly as I would like for top level nodes. The error only occurs in subnodes. Also, the error occurs before the ItemCommand event is fired.
Any help would be appreciated. You folks have been very helpful in the past, thanks!
Hi jmakuch,
The fix for development issue 102923 has been included in the latest releases for versions 11.1, 11.2, 12.1. Please do not hesitate to contact me if you continue to experience any issues after upgrading your product version.
Thank you for posting in the community.
The behavior you have described is related to a known issue. I have linked your case to the existing development issue - 102923, and you will be notified when a fix is available. Your case number regarding this matter is CAS-89698-G4QXTQ. Please feel free to continue sending us updates. You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab.
Do not hesitate to contact me if you need more information.