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

RadGrid with Reorder Animation not showing with FrozenColumns

3 Answers 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 01 Feb 2012, 09:36 PM

I am not sure if my goal is possible with the current design of the RadGrid.

Goal:
To have a RadGrid setup so that the first 2 columns are frozen, and the remaining columns are reorderable and use the reorder animation.

Attempt 1:
Good - I can not start a drag on the first 2 columns
Bad - I can drag one of the AutoGenerated columns over the first 2 column spots and the animation shows the reorder
Good - When dropping over one of the first two columns it will revert back and not actually do the reorder.
...

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder"

Animation-AllowColumnReorderAnimation="true" Animation-AllowColumnRevertAnimation="true">

</ClientSettings>

<MasterTableView>

<Columns>

<telerik:GridTemplateColumn Reorderable="false"><ItemTemplate>One</ItemTemplate></telerik:GridTemplateColumn>

<telerik:GridTemplateColumn Reorderable="false"><ItemTemplate>Two</ItemTemplate></telerik:GridTemplateColumn>
...AutoGenerated Columns Here

</Columns>

</MasterTableView>

...

 

Attempt 2:
Good - I can not start a drag on the first 2 columns
Good - I can not drag one of the AutoGenerated columns over the first 2 column spots
Bad - The reorder animation is not working in this case
...

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder"

     Animation-AllowColumnReorderAnimation="true" Animation-AllowColumnRevertAnimation="true"
    Scrolling-AutoScroll="true" Scrolling-FrozenColumnsCount
="2" 
    Scrolling-UseStaticHeaders="true" Scrolling-SaveScrollPosition="true">

</ClientSettings>

<MasterTableView>

<Columns>

<telerik:GridTemplateColumn Reorderable="false"><ItemTemplate>One</ItemTemplate></telerik:GridTemplateColumn>

<telerik:GridTemplateColumn Reorderable="false"><ItemTemplate>Two</ItemTemplate></telerik:GridTemplateColumn>
...AutoGenerated Columns Here

</Columns>

</MasterTableView>

...

 

Any advice or ideas are greatly appreciated.
Thanks!
-Dan

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 06 Feb 2012, 01:15 PM
Hello Dan,

I have created sample project to test your case, but it is working as expected on my end. I have attached the sample project, give it a try and check whether it is working on your end.


Greetings,
Andrey
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Daniel
Top achievements
Rank 1
answered on 06 Feb 2012, 03:51 PM
Andrey,

You example does have the animation working, but I can still click and drag the first 2 colums even though they have reorderable=false (although they will not reorder when dropped so functioinally it works).

Also, I'm seeing that I am not using the lastest Telerik dll's which I have now upgraded to. So it's a step forward, but still not complete. thanks for your help though.

-Dan
0
Andrey
Telerik team
answered on 06 Feb 2012, 05:03 PM
Hi,

I am afraid that this is a bug in the current release of RadGrid. I reported the issue to our Dev team.

Additionally, I have updated your Telerik points.

Please, excuse us for any inconvenience caused.

Greetings,
Andrey
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Grid
Asked by
Daniel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or