ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-08-10 00:09:17

asparatu
Member
Registered: 2014-08-20
Posts: 196

Custom dropdown selection issue

Hello Jing,
   I have two dropdowns on a sheet and you can not click anywhere in the box to open the drop down it has to on the value or little after it, if do where the dropdown selector is at it does work. I have sheet being loaded by rfg file. I will email it to you so you can check it for me. I think this started happening after the last update you did.

Code for the dropdown

Imports unvell.ReoGrid.Rendering

Public Class DropdownListCell
    Inherits unvell.ReoGrid.CellTypes.DropdownListCell

    Sub New()
        MyBase.New()
    End Sub

    Sub New(ParamArray candidates() As Object)
        MyBase.New(candidates)
    End Sub

    Sub New(candidates As System.Collections.Generic.IEnumerable(Of Object))
        MyBase.New(candidates)
    End Sub

    Protected Overrides Sub OnPaintDropdownButton(dc As CellDrawingContext, buttonRect As unvell.ReoGrid.Graphics.Rectangle)
        dc.Graphics.DrawImage(My.Resources.dropdownbutton2, buttonRect)
    End Sub
End Class

thank you,
Shane

Last edited by asparatu (2016-08-10 00:24:23)

Offline

#2 2016-08-11 03:53:35

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Custom dropdown selection issue

Sorry I can't understand the problem you mentioned. You can't open dropdown panel when clicked inside dropdown cell?

I have tested that add two dropdowns according to your sample code onto worksheet, they work as expected.

And I loaded your RGF file you mailed me. No problems found. Maybe it's better you send me your code or sample project.

I tested with both 1.2.1 and 1.3.0 version.

Last edited by Jingwood (2016-08-11 03:54:17)

Offline

#3 2016-08-12 06:41:45

asparatu
Member
Registered: 2014-08-20
Posts: 196

Re: Custom dropdown selection issue

Hello Jing,
   Didnt explain right. I can open it but ex. if the size of the cell 50px and you can only click on the first 30px and the last 20px is unclickable, and can not click the dropdown selector to open the dropdown menu.

I will see if can give you sample project based on that code..

Example:
a01a5272cb509c4feb2638bb2afa351c.png

Shane

Last edited by asparatu (2016-08-12 06:44:31)

Offline

#4 2016-08-25 11:16:36

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Custom dropdown selection issue

Hi Shane, are these dropdown cells merged? If they merged from two cells, I think only the first cells are clickable.

Last edited by Jingwood (2016-08-25 11:17:37)

Offline

Board footer

Powered by FluxBB