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

Causes for OnGridCreated to not run?

1 Answer 77 Views
Grid
This is a migrated thread and some comments may be shown as answers.
C
Top achievements
Rank 1
C asked on 01 Dec 2014, 01:39 PM
In the Grid "documentation", I can read the following:

"This event is fired after the grid is created."

But in my case, the event is not fired. So clearly, something or somethings can cause the event to not fire. What are the possible causes?

There's quite a bit of code revolving around my grid, but here are what I think is the most relevant:

<script type="text/javascript">
    function GridCreated(sender, eventArgs) {
            alert("Grid with ClientID: " + sender.get_id() + " was created");
        }
</script>

<ClientSettings>
                                <Selecting AllowRowSelect="True" />
                                <ClientEvents OnRowCreated="rgActivities_RowCreated" OnRowSelected="rgActivities_RowSelected"
                                     OnRowDeselected="rgActivities_RowDeselected" OnGridCreated="GridCreated" />
                                <Scrolling AllowScroll="True" ScrollHeight="340px" SaveScrollPosition="True"></Scrolling>
                            </ClientSettings>

(The javascript is in the head, but I tried to have it inside a RadScriptBlock too, without it working)

1 Answer, 1 is accepted

Sort by
0
C
Top achievements
Rank 1
answered on 01 Dec 2014, 03:44 PM
Turned out, I had a javascript error.
Tags
Grid
Asked by
C
Top achievements
Rank 1
Answers by
C
Top achievements
Rank 1
Share this question
or