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)
"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)