Typeeditor dialog

Posted by: thomas44 on 8 September 2017, 2:41 pm EST

  • Posted 8 September 2017, 2:41 pm EST

    hi all !



    in the v5 i am trying to show the celltype dialog like in the designer...

     i did my own gallery on a ribbon for the celltypes,  but when i show the dialog using

    FarPoint.Win.Spread.Design.ExternalDialogs.CellTypeEditor(FpSpread1)

    =>the combobox is always on Barcode (the first item) and i can't change it by code.

     

    and if i try this :

    Dim test As New FarPoint.Win.Spread.Design.CellTypeDlgV3(FpSpread1)

    test.Show()

    the control is always empty (no items in the combobox of celltypes)

    i just want to force which celltype must be selected on the load... like in designer

    Thanks for help.

  • Replied 8 September 2017, 2:41 pm EST

    Hello,

    We are working on your query. We will get back to you soon.

    Thanks,

    Manpreet

  • Replied 8 September 2017, 2:41 pm EST

    Hello,

    There is a CellTypeIndex property on the CellTypeDlgV3 object you could set to have the correct celltype loaded in the combobox. There is also another method you would need to call to load the celltypes in the combobox.

     Public rm As System.Resources.ResourceSet = Nothing 

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

    If (rm Is Nothing) Then

    FarPoint.Win.Spread.Design.LoadResourceManagerForStrings()

    End If


    Dim cte As FarPoint.Win.Spread.Design.CellTypeDlgV3 = New FarPoint.Win.Spread.Design.CellTypeDlgV3(FpSpread1)

    cte.CellTypeIndex = 5

    cte.Show()


    End Sub

     

  • Replied 8 September 2017, 2:41 pm EST

    it works ! thanks.
Need extra support?

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

Learn More

Forum Channels