SplitButton code no longer works with 12.2.0.36
Hi,
I don't know what exception was fixed with (from 12.2.0.36 Release Notes):
#123949-In SplitButton control, DropDownItems property no longer throws an exception.
but unfortunately the code I use no longer works:
'btnSplitCreate.DropDownItems.Add("Create NEW BLANK diet record")
'btnSplitCreate.DropDownItems(0).Image = My.Resources.Resources.new_plus_green4
'btnSplitCreate.DropDownItems(0).ImageScaling = ToolStripItemImageScaling.None
'btnSplitCreate.DropDownItems(0).Margin = New System.Windows.Forms.Padding(0, 3, 0, 3)
'btnSplitCreate.DropDownItems.Add("Create NEW (repeat) diet record from currently displayed record")
'btnSplitCreate.DropDownItems(1).Image = My.Resources.Resources.Redo_icon
'btnSplitCreate.DropDownItems(1).ImageScaling = ToolStripItemImageScaling.None
'btnSplitCreate.DropDownItems(1).Margin = New System.Windows.Forms.Padding(0, 3, 0, 3)
'btnSplitCreate.DropDownItems.Add("DELETE this diet record")
'btnSplitCreate.DropDownItems(2).Image = My.Resources.Resources.delete_red
'btnSplitCreate.DropDownItems(2).ImageScaling = ToolStripItemImageScaling.None
'btnSplitCreate.DropDownItems(2).Margin = New System.Windows.Forms.Padding(0, 3, 0, 3)
I was able to work around some of this using:
Dim SplitButtonItems1 As SplitButtonItems = New SplitButtonItems()
SplitButtonItems1.ItemImage = AllergyUnitDB.My.Resources.Resources.new_plus_green4
SplitButtonItems1.ItemText = "Create NEW BLANK diet record"
SplitButtonItems1.Name = "SplitButtonItems1"
btnSplitCreate.DropDownItems.Add(SplitButtonItems1)
Dim SplitButtonItems2 As SplitButtonItems = New SplitButtonItems()
SplitButtonItems2.ItemImage = My.Resources.Resources.Redo_icon
SplitButtonItems2.ItemText = "Create NEW (repeat) diet record from currently displayed record"
SplitButtonItems2.Name = "SplitButtonItems2"
btnSplitCreate.DropDownItems.Add(SplitButtonItems2)
Dim SplitButtonItems3 As SplitButtonItems = New SplitButtonItems()
SplitButtonItems3.ItemImage = My.Resources.Resources.delete_red
SplitButtonItems3.ItemText = "DELETE this diet record"
SplitButtonItems3.Name = "SplitButtonItems3"
btnSplitCreate.DropDownItems.Add(SplitButtonItems3)
However the following code also doesn't work but doesn't have an obvious workaround:
If dt.Rows.Count = 0 Then
btnSplitCreate.Text = "Create NEW BLANK diet record"
btnSplitCreate.DropDownItems(1).Enabled = False
btnSplitCreate.DropDownItems(2).Enabled = False
Else
btnSplitCreate.Text = " Create NEW (repeat) diet from last"
btnSplitCreate.DropDownItems(1).Enabled = True
btnSplitCreate.DropDownItems(2).Enabled = True
End If
Is this the result of a bug or has all this functionality been removed permanently?
thanks,
Tim
SIGN IN To post a reply.
3 Replies
ST
Saravanan T
Syncfusion Team
July 22, 2014 03:58 AM UTC
Hi Tim,
Thank you for using Syncfusion Products,
We would like to let you know that we have forwarded your
query to our development team for further analysis. We will get back to you
with the analyzed details before the end of July 23, 2014
Please let us know if you need any further assistance,
Regards,
Saravanan T
ST
Saravanan T
Syncfusion Team
July 23, 2014 04:03 AM UTC
Hi Tim,
We were able to
reproduce the problem and have logged defect report regarding this. A support
incident to track the status of this defect has been created under your
account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Please let me know
if you have any questions.
Thanks,
Saravanan
LM
Lorenzo Mansutti
July 31, 2014 10:14 AM UTC
I have the same problem: SplitButtons don't work with 12.2.0.36.
I've subscribed to this post.
Please let me know if there is any news.
I've subscribed to this post.
Please let me know if there is any news.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
TW Tim Watkins
- Jul 19, 2014 03:08 AM UTC
- Jul 31, 2014 10:14 AM UTC