Rebind only calls the NeedDatasource event the first time on server-side when called more than once in the same postback. Seems like a bug, but I'm wondering if it's purposeful.
What I'm doing is rebinding an empty dataset to the grid to initialize it by removing all the rows, just in case something errors out during the following DB load. If the load is successful, I want to rebind the newly loaded dataset. However, it only works if I skip the first rebind, which seems odd.
See attached screenshot1
We need to have this functionality in our application. These are simple Anchor tags which call JavaScript function.
Attached is the JavaScript function(Screenshot2)
It is changing the size of text on webpage, but it is not doing so in case of Grid, Panel Bars, Menu.
Kindly let us know how it can be done in case of Telerik controls.

<
object id="SilverlightUpload" data="data:application/x-silverlight," type="application/x-silverlight-2"
width="100%" height="120px">
<param name="source" value='<%= ResolveUrl("~/Upload.xap") %>' />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="autoUpgrade" value="true" />
<param name="windowless" value="true" />
<param name="InitParams" value='<%= InitParameters %>' />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"
style="border-style: none" />
</a>
<telerik1:RadUpload ID="RadUpload1" runat="server">
</telerik1:RadUpload>
</object>
Thanks,

| <asp:UpdatePanel ID="testPanel" runat="server"> |
| <contenttemplate> |
| <radM:RadMenu ID="mnuImport" Width="90%" runat="server" Skin="Default2006" OnClientItemClicked="ImportPopup" CausesValidation="false"> |
| <DefaultGroupSettings Height="160" Width="70" /> <Items> |
| <radM:RadMenuItem Text="Red" Value="Red"> |
| <Items> |
| <radM:RadMenuItem Text="Red" Value="Red"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Blue" Value="Blue"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Yellow" Value="Yellow"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Orange" Value="Orange"></radM:RadMenuItem> |
| </Items> |
| </radM:RadMenuItem> |
| </Items> |
| </radM:RadMenu> |
| <asp:Button ID="btnExport" runat="server" Text="Export to Excel" CssClass="searchbutton" CausesValidation="false"/> |
| </contenttemplate> |
| <triggers> |
| <asp:PostBackTrigger ControlID="btnExport" /> <!-- if i comment this line, the Popup is working fine. but the export is not working --> |
| </triggers> |
| </asp:UpdatePanel> |
| <div> |
| <radwindow:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista" Behavior="Close, Move" |
| Height="300px" Width="500px" Modal="true"> |
| <Windows> |
| <radwindow:RadWindow ID="radImport" runat="server" Title="Import" ReloadOnShow="true" |
| Height="300px" Width="500px" VisibleTitlebar="true" Skin="Vista"/> |
| </Windows> |
| </radwindow:RadWindowManager> |
| </div> |
| function ImportPopup(sender, eventArgs) |
| { |
| var selectedImportType = eventArgs.Item.Value; |
| window.radopen("../DocMgt/ImportPopup.aspx?ImportType=" + selectedImportType, 'radImport'); |
| return false; |
| } |

| <telerik:RadComboBox ID="cmbobox" runat="server" AutoPostBack="true" EnableLoadOnDemand="true"></telerik:RadComboBox> |
| Protected Sub cmbobox_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles cmbobox.ItemsRequested | |
| Dim objDataBaseClass As New DataBaseClass() | |
| Dim dtDatabase As DataTable = objDataBaseClass.GetSomedataById(e.Text) | |
| If dtDatabase Is Nothing Then 'or any other condition that checks for errors | |
| 'Here I need to go to error page: | |
| 'Response.Redirect("~/ErrorPage.aspx") | |
| 'Server.Transfer("~/ErrorPage.aspx") | |
| End If | |
| cmbobox.Items.Add(New RadComboBoxItem("", "")) | |
| For i As Integer = 0 To dtDatabase .Rows.Count - 1 | |
| cmbobox.Items.Add(New RadComboBoxItem(dtDatabase .Rows(i)("ID").ToString() & " - " & dtDatabase .Rows(i)("NAME").ToString(), dtDatabase.Rows(i)("ID").ToString())) | |
| Next | |
| End Sub |