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

[Solved] Grid loading icon small problem

0 Answers 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ricardo
Top achievements
Rank 1
Ricardo asked on 29 Jul 2011, 05:43 PM
Hi.

When I open multiple grids (using Telerik's Window to open more), it modifies the loading icon from all grids, not only the current one.

In my case I have a grid in the main page with a link. When the user clicks in the link, it opens a new "modal window" (JavaScript) with another grid. When the modal grid is loading it changes the refresh icon to the loading one, which is fine, but it's changing from all grids. After loading the grid on top, all icons are changed back to the refresh one (the arrows).

See the attached screenshot for example. I'm using the Q2 2011 version.

Below I'm pasting part of my code which shows the how I'm creating a new modal window using JS.

// For simplicity:
controller = 'Home';
action = 'GridPartialView';
 
selectWindow.tWindow({
                modal: true,
                draggable: true,
                resizable: true,
                width: $(document).width() * 0.95,
                actions: ['Maximize', 'Close'],
                contentUrl: '/' + controller + '/' + action + '/',
                onClose: function (context) {
                    // Just to make sure everything is cleaned out (memory?)
                    $(context.target).find('.t-window-content').html('');
 
                    // [Not related external processing was here and removed for simplicity]
                },
                onRefresh: function (context) {
                    // When finished loading, center the window.
                    selectWindow.data('tWindow').center();
 
                    // [Not related external processing was here and removed for simplicity]
                }
            });


Edit: now I'm not sure if it's a grid problem. Maybe the window loading icon? I started wondering after lookin that the grid wasn't loaded when I took the screenshot. Maybe the window is changing the loading icon from all grids? If so, can this topic be moved to the Window forum? Sorry!


Thanks,

Ricardo
Tags
Grid
Asked by
Ricardo
Top achievements
Rank 1
Share this question
or