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

RadGrid unexplainable problems

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Indicia
Top achievements
Rank 1
Indicia asked on 15 Feb 2013, 11:51 AM
Using RadControls 2012.3.1308.40.
We have a grid, entirely created and initialized programmatically. It's huge and unfortunately a bit too big to isolate and post here.
Now I'm observing the following issues.

We enable column resizing as follows:
trgEntities.ClientSettings.Resizing.AllowColumnResize = true;
trgEntities.ClientSettings.Resizing.EnableRealTimeResize = true;
trgEntities.ClientSettings.Resizing.AllowResizeToFit = true;

This works fine after initial page load, but after having resized any column, it stops working. The column that has just been resized still has a resize handle (titled 'Drag to resize'), but when using this it actually picks up the column to start a reorder action. And the resize handle seems to have disappeared entirely from all the other columns. Only a page load restores the resize functionality (but again only a single time).

We found out that this line had unexpected impact:
trgEntities.ClientSettings.Animation.AllowColumnReorderAnimation = true;

When disabling reorder animations, resizing stayed working. But unfortunately, this had another side-effect: the right-click context menu on the header row stopped working entirely, and a javascript error pops up in the console instead:
Uncaught TypeError: Object #<Object> has no method '$'       RadContextMenuScripts.js:196
   b.RadContextMenu._detach                                 RadContextMenuScripts.js:196
   b.RadContextMenu._showAt                                 RadContextMenuScripts.js:314
   b.RadContextMenu.show                                    RadContextMenuScripts.js:363
   b.RadContextMenu._elementContextMenu                     RadContextMenuScripts.js:307
   (anonymous function)                                     Telerik.Web.UI.WebResource.axd:3
   a

I don't see the relation between these issues; how does the columnreorder animation affect resizing or the header contextmenu?
Our RadScriptManager in the masterpage looks like this:
<telerik:RadScriptManager ID="ScriptManager" runat="server" EnableHandlerDetection="true">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        <asp:ScriptReference Path="~/Scripts/jquery-1.7.1.min.js" />
        <asp:ScriptReference Path="~/Scripts/jquery-ui-1.8.17/js/jquery-ui-1.8.17.custom.min.js" />
    </Scripts>
</telerik:RadScriptManager>

 How could "$telerik.$" ever not be defined? Any suggestions where to look for a solution? 

1 Answer, 1 is accepted

Sort by
0
Kostadin
Telerik team
answered on 20 Feb 2013, 12:23 PM
Hello,

It appears this is a bug and I already forward it to one of our developers for further investigation on this matter. You could track the progress in our Ideas & Feedback portal. Your Telerik points have been updated accordingly. Please excuse us for any inconvenience caused.

Greetings,
Kostadin
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
Indicia
Top achievements
Rank 1
Answers by
Kostadin
Telerik team
Share this question
or