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

[Solved] Grid Columns not resizable when hosted in a TabStrip and loaded by AJAX

4 Answers 20 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alastair Eddie
Top achievements
Rank 1
Alastair Eddie asked on 01 Nov 2010, 05:35 PM
Hi,

Have a TabStrip with a Grid on each tab. Used the update in a previous support ticket...
(http://www.telerik.com/community/forums/aspnet-mvc/tabstrip/grid-used-within-tabstrip-does-not-auto-resize-columns.aspx)

that got all my grids resizing on each tab. So far so good.

Then decided I wanted to load the TabStrip content via AJAX using the .LoadContentFrom method. Resizing bars no longer appear on any of the grids.

Any ideas?

Thanks,

Alastair


4 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Nov 2010, 05:38 PM
Hi Alastair Eddie,

 Did you load all the required JavaScript files? This is mandatory for partial views loaded through ajax.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alastair Eddie
Top achievements
Rank 1
answered on 01 Nov 2010, 05:57 PM
Thanks for the speedy reply.

The grids are in  partial views that have the following block to include javascript files...

<%

Html.Telerik().ScriptRegistrar()

.Scripts(scripts => scripts.Add(

"jquery-1.4.2.min.js"))

 

.Scripts(scripts => scripts.Add(

"telerik.grid.min.js"))

 

.Scripts(scripts => scripts.Add(

"telerik.grid.resizing.min.js"))

 

.Scripts(scripts => scripts.Add(

"telerik.common.min.js"));

 

%>

The tab strip is in a normal view with javascript included in the master page...

<%= Html.Telerik().ScriptRegistrar() %>

Am I missing something?

Al

 

0
Atanas Korchev
Telerik team
answered on 02 Nov 2010, 07:47 AM
Hello Alastair Eddie,

 The order of the JavaScript files matters as well. telerik.common.js should appear before all other telerik files. The drag and drop script is also missing.

 I am sending a sample project showing the required configuration.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alastair Eddie
Top achievements
Rank 1
answered on 02 Nov 2010, 09:05 AM
Was getting confused over where to include the scripts.

I moved the registration from the partial view to the containing view and its working now.

Thanks,

Al
Tags
TabStrip
Asked by
Alastair Eddie
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Alastair Eddie
Top achievements
Rank 1
Share this question
or