Win Form Schedule 4.5.2

Posted by: santer.p75 on 7 January 2021, 3:51 pm EST

    • Post Options:
    • Link

    Posted 7 January 2021, 3:51 pm EST

    Hello, i have problem with the group items in the schedule conrol.

    I load data from a sql server into a tablw wich is assigned to owner (dtOwner)

    from a second datatable i retrive the appointments this table is assigned to appointments. I works fine! When i choose to hide some groups (grouped by owners) it works olso fine (myCalendar.GroupItems(nRow + 1).IsChecked = grdPersonal(nRow, cAktiv))

    the problem becomes when i reload the appoint datatable with new data from the sql server all hidden groups become visible! so i need to walk trought i this will flicker. i need to update the appointments verry quickliy, each second, dont ask me why, its complicate…

    this is what i do…

      dsTermin.Tables("Appointmens").Rows.Clear()
       Dim daDaten As SqlClient.SqlDataAdapter
        Dim conDaten As New SqlClient.SqlConnection
    
        conDaten.ConnectionString = SQLConn
        conDaten.Open()
        daDaten = New SqlClient.SqlDataAdapter(sSQL, conDaten)
        daDaten.Fill(dsDaten, sDatasetName)
        conDaten.Close()
    

    then i walk trough the owners and disable them who i should not displayed

    For nRow = 0 To grdPersonal.Rows.Count - 1

    myCalendar.GroupItems(nRow + 1).IsChecked = grdPersonal(nRow, cAktiv)

    next

    I hope someone can help me…

  • Posted 8 January 2021, 3:36 am EST

    Hi,

    you could try to call “this.c1Schedule.BeginUpdate();”, then refill the control and afterwards call “this.c1Schedule.EndUpdate();”

    Hope this helps

    Wolfgang

  • Posted 8 January 2021, 7:04 am EST

    Hi,

    We can not replicate this issue at our end when we refresh the appointments data source or even change the appointments data source, the grouping stays the same and the hidden groups stay hidden. Please refer to the sample attached.

    As suggested by Wolfgang, You can also try putting the code for changing the data between this.c1Schedule.BeginUpdate and this.c1Schedule.EndUpdate() which temporarily suspends and resumes the layout logic which reduces flicker. If you still face the issue, please provide us with a stripped-down sample replicating the issue so that we can help you better.

    Thank You! Wolfgang for the suggestion.

    Regards,

    Prabhat Sharma.

    MultiUser.zip

  • Posted 8 January 2021, 9:28 am EST

    Thank you for answer, i found a work around, i reload only the selected owner into the scheduler so i will no more use GroupItems.checked flag. Also i load only the appointments of selected owners…

Need extra support?

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

Learn More

Forum Channels