RadAjaxManager.AjaxSettings.AddAjaxSetting(myBaseDataGrid, myBaseDataGrid)
But all, with no avail.| <telerik:RadGrid ID="RadGrid1" runat="server" > |
| <MasterTableView DataKeyNames="ID_N" AutoGenerateColumns="false" ShowHeader="true"> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:Image ID="Image1" runat="server" CssClass="AssetImage" /> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridTemplateColumn > |
| <ItemTemplate> |
| <asp:Panel runat="server" ID="Panel1"></asp:Panel> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound |
| If e.Item.ItemType = Telerik.Web.UI.GridItemType.Item OrElse e.Item.ItemType = Telerik.Web.UI.GridItemType.AlternatingItem Then |
| Dim GDI As Telerik.Web.UI.GridDataItem = DirectCast(e.Item, Telerik.Web.UI.GridDataItem) |
| Dim DRV As DataRowView = DirectCast(GDI.DataItem, DataRowView) |
| Dim img As Image = DirectCast(GDI.FindControl("Image1"), Image) |
| img.ImageUrl = String.Format("assetimg.ashx?IDN={0}&BH=100&BW=100&CAT={1}", DRV("ID_N"), Me.Category) |
| End If |
| End Sub |

Dear Telerik,
Been making a few experiments with the famous PortalSiteCS demo in order to try to understand some problems I am having with the app I am developing.
I made two simple modifications:
1) added the following script to news.ascx
<script>
function theFunction()
{
alert('Hey, someone has called theFunction!!!');
}
</script>
2) added one button to the end of the form in default.aspx
<input type="button" onclick="theFunction();" />
The problem is that the button cannot actually call theFunction when you start clean and just add one 'news widget' - but no script error is caught at the browser.
But the story gets completely different after a postback (a page reload or whatever). After an 'F5' the button is actually able to call theFunction.
This seems related to the problems I'm getting in my app. So... my question is: how can I ensure that the user control scripts get loaded right when the widget is created for the 'first time'? - in this case via the add dock button.
Hope my description is clear enough. Thanks,
Paulo
<
telerik:RadColorPicker ID="RadColorPicker1" runat="server" Preset="Standard" ShowIcon="true" SelectedColor="Black" ></telerik:RadColorPicker>