C1List.C1Combo EmptyRows = True not working ?

Posted by: softcomlimited on 25 September 2019, 10:31 am EST

  • Posted 25 September 2019, 10:31 am EST

    Hello
    I am using v4.0.20151.38 and trying C1List.C1Combo.EmptyRows = True
    .MaxDropDownItems = 10
    .ComboStyle = C1.Win.C1List.ComboStyleEnum.DropdownCombo
    But when there is say only 1 item, the dropdown list is exactly 1 row tall.
    I want the dropdown list to be always 10 rows tall with the space at the bottom. Am I missing something ?
    Thanks
    Brian
  • Replied 25 September 2019, 11:08 am EST

    Also, I have a date column with
    .Columns("Posted").NumberFormat = "yyyy-MM-dd hh:mmtt"
    but if the value is NULL it shows as 0001-01-01 12:00
    Is there a way to leave the column blank?
    I tried a ValueItem with .Value="" and .DisplayValue = "" but that did not work. Is there a way to do something like NullText ?
    Thanks
    Brian
  • Replied 26 September 2019, 8:03 pm EST

    Hello,​

    1 : We are investigating on this, we will let you know once it is done.​

    2 : Sorry but we can not replicate the issue at our end while leaving the column blank. ​
    Please modify the attached sample or provide your stripped down sample replicating the issue so that we can narrow down the problem and help you in a better way.​

    Regards,​
    Prabhat Sharma.​
    C1ComboMaxItemDemo.zip
  • Replied 26 September 2019, 11:06 pm EST

    Mr Sharma,
    1. I will have a look at the demo.
    2. Just to clarify, it is not that I am leaving the column blank, it is that the underlying data for the date is a NULL and I want the column to display as blank rather than 0001-01-01 12:00
    Thanks a lot
    Brian
  • Replied 27 September 2019, 1:12 am EST

    Mr Sharma,
    On the demo the list is only 4 rows high even though the MaxDropDownItems=10 and EmptyRows=true.
    Yes the demo null values are showing as blanks. The only difference to me is that you use the datasource as a DataTable where I have a List. I will look more closely at this.
    Thanks
    Brian
  • Replied 27 September 2019, 1:47 am EST

    Mr Sharma,
    My datatype in my List was the problem, I had Date instead of Date? so the Nothing value was being kept as 0001-01-01 12:00 and obviously the combo displayed that.
    Thank you very much
    Brian
  • Replied 29 September 2019, 3:49 pm EST

    Hello,

    It is good to hear that the problem has been resolved at you end.

    >>On the demo the list is only 4 rows high even though the MaxDropDownItems=10 and EmptyRows=true.
    We have escalated this to the developers , will let you know once we get any updates regarding this. [Internal Tracking Id : 399921]

    Regards,
    Prabhat Sharma.

  • Replied 30 September 2019, 12:55 am EST

    Oh, ok, the EmptyRows problem is a bug then? Probably won't get fixed for my 2015 version then.
    Regards
    Brian
  • Replied 17 October 2019, 10:15 am EST

    Mr Sharma any update on the MaxDropDownItems=10 and EmptyRows=true. ?
    Regards
    Brian
  • Replied 17 October 2019, 2:41 pm EST

    Hello Brian,

    Sorry for the inconvenience.
    Developers are working on this issue, although we have again asked them for update.
    We will let you know once we get any update from their end.

    Regards,
    Prabhat Sharma
Need extra support?

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

Learn More

Forum Channels