Forum
Sign Up
× DataGrid for Qt.C++

Group By Box Hidden State Not Restored

13 years 6 months ago - 13 years 6 months ago #1 by Stefan
I'm calling saveLayoutToDevice to save state and loadLayoutFromDevice to restore state. However, it seems that the hidden state of the "Group By Box" is not being restored.

Maybe I'm not saving the correct (or enough) information. This is an example of the XML layout that I'm getting back when I'm restoring state of a grid:
<?xml version="1.0" encoding="UTF-8" ?> 
<Qtitan:GridStorage xmlns:Qtitan="http://www.devmachines.com/qt/qtitan" type="layout" version="1.1">
    <Qtitan:Columns>
        <Qtitan:Column id="0" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="0" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="1" iconApperance="2" textAlignment="130" textElideMode="1" visible="1">
            <Qtitan:TabularData visual="1" width="168" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="2" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="2" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="3" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="3" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="4" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="4" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="5" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="5" width="65" sortOrder="1" group="0" /> 
        </Qtitan:Column>
        <Qtitan:Column id="6" iconApperance="2" textAlignment="130" textElideMode="1" visible="0">
            <Qtitan:TabularData visual="6" width="42" sortOrder="1" group="1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="8" iconApperance="2" textAlignment="130" textElideMode="1" visible="1">
            <Qtitan:TabularData visual="7" width="52" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="7" iconApperance="2" textAlignment="130" textElideMode="1" visible="1">
            <Qtitan:TabularData visual="8" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
        <Qtitan:Column id="9" iconApperance="2" textAlignment="130" textElideMode="1" visible="1">
            <Qtitan:TabularData visual="9" width="65" sortOrder="0" group="-1" /> 
        </Qtitan:Column>
    </Qtitan:Columns>
</Qtitan:GridStorage>

I'm expecting the "Group By Box" to be hidden, but I don't see anything in there that could refers to the "Group By Box" visibility, so maybe that's the clue!
Last edit: 13 years 6 months ago by Stefan.

Please Log in or Create an account to join the conversation.

  • Stefan
  • Stefan's Avatar Topic Author
13 years 5 months ago #2 by Developer Machines
I apologize for the delay in response. As i see, you have two grouped columns which are hidden. The state like this should be restored by grid. This defect is a bug in the grid and will be corrected in next update (start of the next week).

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #3 by Stefan
Replied by Stefan on topic Group By Box Hidden State Not Restored
The column hidden state is being saved and restored correctly, as you say.

I look forward to the new release. QtitanGrid has made a HUGE difference to my app already.

Please Log in or Create an account to join the conversation.

  • Stefan
  • Stefan's Avatar Topic Author
13 years 5 months ago #4 by Stefan
Replied by Stefan on topic Group By Box Hidden State Not Restored
The first thing I tried with the new release was to check the Group By Box save and restore. Unfortunately I see the same behaviour as before.

I check the changelog for the latest release and couldn't find any reference to the Group By Box. Did the fix not make it into release 2.2?

Please Log in or Create an account to join the conversation.

  • Stefan
  • Stefan's Avatar Topic Author
13 years 5 months ago #5 by Developer Machines
Unfortunately we did not include a patch for this bug in the current release. Monday will be released another update to fix this and several other errors.

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #6 by Stefan
Replied by Stefan on topic Group By Box Hidden State Not Restored
I can confirm that this now works in version 2.3.

Please Log in or Create an account to join the conversation.

  • Stefan
  • Stefan's Avatar Topic Author
  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Moderators: Developer Machines
Time to create page: 0.143 seconds

Developer Newsletter

Join our Developer Machines newsletter to get informed on all the latest releases of the commercial components for Qt.C++, Delphi FireMonkey, updates and general knowledges.

Quick Support

Should you need any additional information about our products or licensing, please contact us at the following email addresses:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

Get in Touch

If you would like to purchase our products or services, but don’t know how to do it the right way, please feel free to contact us:

  • This email address is being protected from spambots. You need JavaScript enabled to view it.( any questions related to our products or services )
  • This email address is being protected from spambots. You need JavaScript enabled to view it.( questions related to licensing )