C1InputPanel - Custom InputComponents - DataBinding issue

Posted by: brezodejan on 25 February 2019, 4:53 am EST

    • Post Options:
    • Link

    Posted 25 February 2019, 4:53 am EST

    Hello guys

    I have an issue with WinForms C1InputPanel custom InputComponents (InputControlHost) when I try to update version. I’ve prepared 2 samples, based on your DataBinding sample:

    first one with old version of DLLs - my solution works

    second one with new DLLs - my solution doesn’t work

    My sample contains very simple case of using Custom user controls - MyCustomInputTB.vb and MyCustomInputDD.vb

    When I add this control on C1InputPanel, Data Binding works with old version dlls, but doesn’t work with new one.

    Probably, I do something wrong… I hope that you can help me.

    In other words, I only want to host your C1TextBox on C1InputPanel. I try that, but databinding doesn’t work with this version.DataBinding_MY_OldVersion.zipDataBinding_MY.zip[img]https://gccontent.blob.core.windows.net/forum-uploads/file-f590aef7-a7da-4eb3-82ba-c7e7e9c0e3f0.jpg[/img]

  • Posted 27 February 2019, 11:27 pm EST

    Hi,

    Thanks for the samples. We’re able to observe the issue, and we’ve escalated it to the development team [Internal Tracking ID: 368589]. We’ll update you as soon as we get an update from them.

    Regards,

    Jitender

  • Posted 4 March 2019, 4:20 am EST

    Hi,

    I think that this is pretty old problem, maybe from versions of year 2011 or 2012.

    With version 2.20101.91 everything is working, but 2.2012x.xx and newer have the issue.

    Regards, Dejan

  • Posted 4 March 2019, 4:45 am EST

    Hi Dejan,

    Thanks for the information. The issue is still with the development team. We’ll update this thread when we have an ETA for the fix.

    Regards,

    Jitender

  • Posted 19 March 2019, 2:00 am EST

    Is there any information about the issue?

    I have to update version ASAP. Do you have any workaround for my problem while your development team solve it?

  • Posted 19 March 2019, 11:22 pm EST

    Hi,

    The ETA for the fix is 2019 v1 hotfix.

    As a workaround, you can create a custom control and set BindingContext to Nothing in OnBindingContextChanged method, and then use this custom control in InputControlHost:

    In your sample, you would need to do this:

    Public Class MyCustomInputDD
        Inherits C1.Win.C1InputPanel.InputControlHost
    
        Sub New()
            MyBase.New(New DropDown)
        End Sub
    End Class
    
    Public Class DropDown
        Inherits C1.Win.C1Input.C1DropDownControl
    
        Protected Overrides Sub OnBindingContextChanged(e As EventArgs)
            MyBase.OnBindingContextChanged(e)
            BindingContext = Nothing
        End Sub
    End Class
    

    Please refer to the attached sample for the workaround.

    Regards,

    Jitender

    DataBinding_MY_Workaround.zip

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels