This is a migrated thread and some comments may be shown as answers.

Persisting settings and hiding columns

3 Answers 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Giovanni asked on 01 Aug 2012, 08:32 AM
Hello,
I'm trying to persist my grid settings and I have a strange behaviour when I hide columns.
This is my grid settings:

<telerik:RadGrid ID="rgItems" AllowFilteringByColumn="True" Skin="Windows7" 

 

AllowSorting="True" PageSize="10" ShowFooter="false" AllowPaging="True" AllowCustomPaging="true" runat="server" AutoGenerateColumns="false" GridLines="None" ShowStatusBar="true" EnableLinqExpressions="false" GroupingEnabled="false" Height="320px">

<
GroupingSettings CaseSensitive="false" />

 

<ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true" ClientEvents-OnFilterMenuShowing="FilterMenuShowing">

<Scrolling ScrollHeight="235px" AllowScroll="true" UseStaticHeaders="true" />

 

<Resizing AllowRowResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="False" AllowColumnResize="True"></Resizing>
</ClientSettings>

 

...
...

</telerik:RadGrid>

If I don't hide columns, all works fine and the saved and restored settings are correct. When I hide columns and save settings I see that the width of the saved columns are not correct. If for example I hide the first column and change the size of the second column, when I save I see (in debug) that the width that I have modified is assigned to the hidden column and so all the grid layout is persisted not correctly.
Is there a way to resolve this issue?

Thanks.

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Aug 2012, 01:30 PM
Hello Giovanni,

Thank you for contacting us.

I have tested the described behavior on the following demo:
 Grid / Persisting Grid Settings

On my side everything works as expected. Could you please check out the provided demo and try to implement it in your own application?

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
answered on 02 Aug 2012, 03:06 PM
Hello,
I've a small project that replicate the issue.
How can I send it to you? Your system can't allow zip extension and have a small size limit.

Thanks.
0
Eyup
Telerik team
answered on 03 Aug 2012, 07:09 AM
Hi Giovanni,

You could open a support ticket to submit your project along with any additional information which could be related to the issue.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Eyup
Telerik team
Giovanni
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or