FlexGrid ChoiceColumn - Sometimes Column's Content Is Not Showed

Posted by: oric-cq on 9 September 2017, 8:31 am EST

  • Posted 9 September 2017, 8:31 am EST

    Hi !

    Sometimes, when I open a screen, the ChoiceColumn content is not showed. (please, take a look at picture 01). Then I need to refresh the screen to show that column's content.

    Is there a way to fix it?

    Best regards,

    Ciro.



  • Replied 9 September 2017, 8:31 am EST

    Hello, Reema! Thanky to reply!

    Could you please try again? I removed some annecessary projects from the solution.

    Best regards,

    Ciro.
  • Replied 9 September 2017, 8:31 am EST

    Hello Ciro,

    Apologies for the delayed response.

    Thanks for sharing the modified sample.

    Here are my observations with the screenshots depicting the behavior at my end :

    1) "BeforeRefresh.png" - when the screen is loaded initially
    2) "AfterRefresh.png" - after the Refresh button on the screen is clicked (this behavior got reproduced after so many clicks of the Refresh button)
    3) "BeforeRefresh_DataGrid.png" - if standard DataGrid is used instead of the C1FlexGrid control, then also the choice Column's Content is not shown.

    I would request you to please confirm the behavior at your end once so that I could proceed further.

    Regards,
    Reema





  • Replied 9 September 2017, 8:31 am EST

    Hello, Reema!

    Unfortunately I can not reproduce the event that I reported through a simple project.

    Maybe it only occurs in more complex cases. I published at onedrive the project where I find the issue reported. http://1drv.ms/1Nmpi6B file name: Sometimes Column's Content is Not Showed

    As I said before, sometimes the issue occurrs and sometimes don't. If possible, please, try to load the project sometimes (the screen to observed is the default screen). Maybe I'll get lucky and the error appears also for you.

    Again, many thanks for any kind of help.

    Best regards,

    Ciro.
  • Replied 9 September 2017, 8:31 am EST

    Hello Ciro,

    Thanks for sharing the sample application.

    However, the sample could not be run at my end.

    Could you please check the same at your end and attach a working copy once more ?

    Regards,
    Reema
  • Replied 9 September 2017, 8:31 am EST

    Behaviour confirmed in my computer, Reema!

    Best regards,

    Ciro.
  • Replied 9 September 2017, 8:31 am EST

    Hello Ciro,

    Thanks for confirming the behaviour.

    I have escalated this issue "The C1FlexGrid Choice Column is not shown before a Refresh" to the development team (tracking id : 115693) for further review and will update you as soon as I get any information from their side regarding the same.

    Regards,
    Reema
  • Marked as Answer

    Replied 9 September 2017, 8:31 am EST

    Hello Ciro,

    Here is an update from the development team :

    The reason why the "Codificacao" column is not shown is that it is hidden in sample code. Please refer to the following code in C1_Check_This_Screen.lsml.vb line 728:
           Dispatchers.Main.BeginInvoke(
    Sub()
    Try
    For Each column In _gridMonitoring.Columns.Where(Function(n) Not gridDef.Analysis.Contains(n.ColumnName))
    '
    If Not _alwaysVisible.Contains(column.ColumnName) Then
    column.Visible = False
    End If
    Next
    Catch ex As Exception
    ' do nothing!
    End Try
    End Sub)


    The "Codificacao" column is not in the _alwaysVisible so it will be hidden by above code. To make the "Codificacao" column shown, we can add it to _alwaysVisible according to the sample code. Refer to the attached updated C1_Check_This_Screen.lsml.vb file. Please try to replace C1_Check_This_Screen.lsml.vb with attachment file in your local sample to see if it works.

    Regards,
    Reema
    2015/07/C1_Check_This_Screen.lsml_.zip
Need extra support?

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

Learn More

Forum Channels