Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
198 views
I am having trouble opening a RadWindow using server code.  I have to set Session variables before the window is open, so I have to open it in server code.  The server code worked with a regular window, but not with RadWindow.  I have tried all of the techniques listed below (I replaced url with [path] & window name with [name]):

popupScript =

"<script>var wnd = window.radopen(\"[path]\", \"[name]\");</script>";

Page.RegisterStartupScript(

"PopupScript", popupScript);

 


or:
[javascript]

function

 

OpenWindow(name) {

 

 

var wnd = window.radopen([path], [name]);

 

 

wnd.Maximize();

 

return false;

 

}
[c#]

 

popupScript =

"<script>OpenWindow('[name]');</script>";
Page.RegisterStartupScript("PopupScript", popupScript);

or:
popupScript = 'javascript:OpenWindow('[name]');:;
Page.RegisterStartupScript("PopupScript", popupScript);

I know that Page.RegisterStartupScript is considered obsolete, but it still works to open normal windows.  Is there something specific I would have to do to make a RadWindow able to be opened in server code?

 

Georgi Tunev
Telerik team
 answered on 29 Jan 2010
1 answer
68 views

In my app I allow the users to choose a skin and it stores the choice in an application variable.


I am having trouble skinning the control in the edit form.

    Protected Sub rgTimeslips_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles rgTimeslips.ItemCommand  
 
        If (e.CommandName = RadGrid.EditCommandName) Then  
            e.Item.OwnerTableView.EditFormSettings.CaptionFormatString = "Edit Time Slip" 
 
 
            Dim frmitem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)  
            Dim ddlreason As RadComboBox = DirectCast(frmitem.FindControl("ddlReason1"), RadComboBox)  
 
            ddlreason.Skin = Application("TelerikTheme")  
 
        End If  
 
 
    End Sub 

I get an error that says: 
Error Message: Unable to cast object of type 'Telerik.Web.UI.GridDataItem' to type 'Telerik.Web.UI.GridEditFormItem'.


Help please ?


Tsvetoslav
Telerik team
 answered on 29 Jan 2010
3 answers
155 views
We are using the grid with popup form to add/edit records (EditMode="PopUp").
Everything works find on the development server. But when we moved the application to the production, we got a problem with the popup form.

When user clicks on the corresponding "Edit" icon, then we got the following error:

 

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
   System.Security.CodeAccessPermission.Demand() +58
   System.Reflection.Assembly.VerifyCodeBaseDiscovery(String codeBase) +118
   System.Reflection.Assembly.get_CodeBase() +35
   System.Web.Handlers.ScriptResourceHandler.GetCodeBaseWithAssert(Assembly assembly) +31
   System.Web.Handlers.ScriptResourceHandler.GetLastWriteTime(Assembly assembly) +36
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfoInternal(Assembly assembly) +61
   System.Web.Handlers.ScriptResourceHandler.GetAssemblyInfo(Assembly assembly) +62
   System.Web.Handlers.RuntimeScriptResourceHandler.System.Web.Handlers.IScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +325
   System.Web.Handlers.ScriptResourceHandler.GetScriptResourceUrl(Assembly assembly, String resourceName, CultureInfo culture, Boolean zip, Boolean notifyScriptLoaded) +33
   System.Web.UI.ScriptManager.GetScriptResourceUrl(String resourceName, Assembly assembly) +89
   System.Web.UI.ScriptRegistrationManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +111
   System.Web.UI.ScriptManager.RegisterClientScriptResource(Control control, Type type, String resourceName) +9


Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 

 
It looks like a security problem when the grid tries to get a script from the dll.
I tried different suggestions from the knoledgebase (web.config, WebResource.axd file, etc.), but nothing helped,

The strange thing is that the same version of application works fine on another server.
Unfortunately, the production versionis located on a shared server and we are quite limited in terms of IIS administration... 

Any suggestions to fix the problem?
 

 

 

Princy
Top achievements
Rank 2
 answered on 29 Jan 2010
1 answer
188 views

I've enabled the CDN support.

Unfortunately look at all the http request that get generated on one of my pages.
I used to have enable styles and javascript files set to true, but with the CDN, that's ignored.

Does the benefit of using a CDN outweigh the cost of making all these HTTP request?

# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Menu.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu.Default.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Splitter.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter.Vista.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/TreeView.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView.Default.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Window.css
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Window.Vista.css
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Core.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/jQuery.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/jQueryPlugins.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Scrolling/ScrollingScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Navigation/NavigationScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Menu/RadMenuScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Splitter/RadSplitterScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/TreeView/RadTreeViewScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Popup/PopupScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Common/Animation/AnimationScripts.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Window/RadWindow.js
# http://aspnet-scripts.telerikstatic.com/ajaxz/2009.3.1208/Window/RadWindowManager.js
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu/rmSprite.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/Menu/rmVSprite.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/FirstNodeSpan.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/TopLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView/PlusMinus.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Default/TreeView/ItemSelectedBg.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/NodeSpan.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/MiddleLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/BottomLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Common/TreeView/SingleLine.png
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter/ResizeBarVerticalSprites.gif
# http://aspnet-skins.telerikstatic.com/ajaxz/2009.3.1208/Vista/Splitter/ExpandCollapseBarsCommands.gif



sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 29 Jan 2010
3 answers
215 views
Could anyone help!
I have racked my brain trying to figure out how to refresh my grid on a radwindow close. It cannot be that complicated, but I just do not have the right combination.
My situation is a little different than the examples. I have looked at the demos:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=window
and all the posts, but here is my problem.

I have a Master page with an ajax manager. I then have a content page that I launch the RadWindow. The content page has a AjaxManagerProxy:
I have this part (The VB on the Content Page)
   Protected Sub RadAjaxManagerProxy1_AjaxRequest(ByVal sender As ObjectByVal e As Telerik.Web.UI.AjaxRequestEventArgs)  
        Dim grid As Telerik.Web.UI.RadGrid = DirectCast(FindControl("RadMultiPage1").FindControl("PageSearch").FindControl("grdSearchRFS"), Telerik.Web.UI.RadGrid)  
        If e.Argument = "Rebind" Then 
            grid.MasterTableView.SortExpressions.Clear()  
            grid.MasterTableView.GroupByExpressions.Clear()  
            grid.Rebind()  
        ElseIf e.Argument = "RebindAndNavigate" Then 
            grid.MasterTableView.SortExpressions.Clear()  
            grid.MasterTableView.GroupByExpressions.Clear()  
            grid.MasterTableView.CurrentPageIndex = grid.MasterTableView.PageCount - 1  
            grid.Rebind()  
        End If 
    End Sub 
Now, I need to figure out how to use the Proxy on the content page to call it:

<

 

telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">

 

function refreshGrid(arg)  
            {  
             if(!arg)  
             {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");               
                }  
                else 
                {  
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");               
                }  
            }  
 

I assume I would use the above javascript to initiate the ajax proxy request, and on my radwindow, simply call it onClientClose:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="False" 
        VisibleStatusbar="False" Modal="True" Behaviors="Close, Resize, Move" Height="550px" 
        Width="1000px">  
        <Windows> 
            <telerik:RadWindow ID="CallDetails" runat="server" Left="" NavigateUrl="RFSDetail.aspx" 
                Height="550px" Width="1000px" Style="display: none;" Title="RFS Detail" Top="" 
                OnClientClose="refreshGrid">  
            </telerik:RadWindow> 
        </Windows> 
</telerik:RadWindowManager> 

But I cannot fiure out how to get the proxy manager to call the VB subroutine. There is not a 
 OnAjaxRequest="RadAjaxManager1_AjaxRequest" for a AjaxProxy.

Does this make sense?
Is there anyone who would mind giving me a pointer? Surely this is used all the time!
Thanks,
~bg
GDPR_erased
Top achievements
Rank 1
 answered on 29 Jan 2010
2 answers
407 views
Folks

- Environment VS 2008 SP1, RadControls for ASP.NET AJAX Q3 2009 SP1,  WIN XP SP2, IE7.

I have a small Radgrid with 2 columns. I would like to know how to hide delete commanditem template link button while selecting certian rows in GridView.  For example if I am selecting  customer id's: "ANTON" or "BOLID", that delete link button should auto hide and I am selecting any other customer's that delete link button should be visibile/unhide.

Below is my code and attached is the screen printout of Grid Data Source.  Thanks

GC_0620

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
      
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
        </telerik:RadScriptManager> 
      
    </div> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
        ConnectionString="<%$ ConnectionStrings:NwindConnectionString %>"   
        DeleteCommand="DELETE FROM [Customers] WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))"   
        InsertCommand="INSERT INTO [Customers] ([CustomerID], [CompanyName]) VALUES (?, ?)"   
        ProviderName="<%$ ConnectionStrings:NwindConnectionString.ProviderName %>"   
        SelectCommand="SELECT CustomerID, CompanyName, postalcODE FROM Customers  where  LEFT(CustomerID,2) &lt;= &quot;CB&quot; ORDER BY CustomerID"   
          
          
        UpdateCommand="UPDATE [Customers] SET [CompanyName] = ? WHERE (([CustomerID] = ?) OR ([CustomerID] IS NULL AND ? IS NULL))">  
        <DeleteParameters> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="CompanyName" Type="String" /> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="CustomerID" Type="String" /> 
            <asp:Parameter Name="CompanyName" Type="String" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1"   
        GridLines="None" AllowPaging="True" AllowSorting="True">  
<MasterTableView DataSourceID="SqlDataSource1" CommandItemDisplay"TopAndBottom"    
            AutoGenerateColumns="False" DataKeyNames="CustomerID">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
    <Columns> 
        <telerik:GridBoundColumn DataField="CustomerID" DefaultInsertValue=""   
            HeaderText="CustomerID" ReadOnly="True" SortExpression="CustomerID"   
            UniqueName="CustomerID">  
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn DataField="CompanyName" DefaultInsertValue=""   
            HeaderText="CompanyName" SortExpression="CompanyName" UniqueName="CompanyName">  
        </telerik:GridBoundColumn> 
    </Columns> 
<CommandItemTemplate> 
 <div style="padding: 5px 5px;">  
                        Custom command item template for Grid: &nbsp;&nbsp;&nbsp;&nbsp;  
                        <asp:linkbutton id="btnEditSelected" runat="server" CommandName="EditSelected" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Edit.gif" /> Edit selected</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="btnUpdateEdited" runat="server" CommandName="UpdateEdited" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Update.gif" /> Update</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="btnCancel" runat="server" CommandName="CancelAll" Visible='<%# RadGrid1.EditIndexes.Count > 0 || RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Cancel.gif" /> Cancel editing</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/AddRecord.gif" /> Add new</asp:LinkButton>&nbsp;&nbsp;  
                        <asp:linkbutton id="LinkButton3" runat="server" CommandName="PerformInsert" Visible='<%# RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Insert.gif" /> Add this </asp:LinkButton>&nbsp;&nbsp;  
<asp:linkbutton id="LinkButton1" OnClientClick="javascript:return confirm('Delete selected?')" 
runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Delete.gif" /> Delete selected Jobs</asp:LinkButton>&nbsp;&nbsp;  
                        
                        
                    </div> 
                </CommandItemTemplate> 
</MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="True" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
    </form> 
</body> 
</html> 
 

 
gc_0620
Top achievements
Rank 1
 answered on 28 Jan 2010
0 answers
69 views

Daniel Luchin
Top achievements
Rank 1
 asked on 28 Jan 2010
4 answers
203 views
Hello,

I have a manual implementation using asp:ListBoxes and asp:Buttons.  It also adds/removes an asp:DropDownList when transferring back and forth from the 2 ListBoxes.

I'm converting it to use RadListBoxes and a RadComboBox.  Creating RadListBox1 and RadListBox2 and transferring between the 2 was simple enough.  Then I used the OnTransferring Event to invoke a method that will add and remove from RadComboBox1.  I have a couple of problems completing this:

- How do I get access in OnTransferring (or other event) to the button selected... To Right(>), To Left(<), All to Right(>>), or All to Left(<<) ?
- In what event, or how... can I invoke a "RemoveFromComboBox" method when selecting/moving back To Left, or All to Left ?

Here's my code:
<td><telerik:RadComboBox ID="RadComboBox1" runat="server" /></td>  
<td>  
   <telerik:RadListBox ID="RadListBox1" runat="server" Height="200px" Width="200px"   
      AllowTransfer="true" TransferToID="RadListBox2"    
      AutoPostBackOnTransfer="true"  
      SelectionMode="Multiple" EnableDragAndDrop="true"   
      OnTransferring="RadListBox1_Transferring" />  
</td>  
<td>  
   <telerik:RadListBox ID="RadListBox2" runat="server" Height="200px" Width="200px"   
      AutoPostBackOnTransfer="true"  
      SelectionMode="Multiple" EnableDragAndDrop="true" />  
</td> 

and code-behind:

protected void RadListBox1_Transferring(object sender, RadListBoxTransferringEventArgs e) 
   AddToDefaultComboBox(true); 
   RemoveFromDefaultComboBox(true);  // Needs to be in different event to return back to left. (maybe RadListBox2_Transferring).  But RadListBox2.AllowTransfer="false" ??? find solution. 

// Adds item(s) to RadComboBox1 when transferring from RadListBox1 to RadListBox2
private void AddToDefaultComboBox(bool all) 
   foreach (RadListBoxItem li in RadListBox1.Items) 
   { 
      if ((li.Selected) || (all)) 
      { 
         RadComboBox1.Items.Add(new RadComboBoxItem(li.Text, li.Value)); 
      } 
   } 
}

// Removes item(s) to RadComboBox1 when transferring from RadListBox2 to RadListBox1
private void RemoveFromDefaultComboBox(bool all) 
   foreach (RadListBoxItem li in RadListBox2.Items) 
   { 
      if ((li.Selected) || (all)) 
      { 
         RadComboBox1.Items.Remove(RadComboBox1.Items.FindItemByValue(li.Value)); 
      } 
   } 

I've tested these methods, and they do the job, but I need pass these 4 based on what's selected:
  1. AddToDefaultComboBox(false)             --> When selecting RadListBox1 item (to right >)
  2. AddToDefaultComboBox(true)              --> When selecting RadListBox1 items (all to right >>)
  3. RemoveFromDefaultComboBox(false) --> When selecting RadListBox2 item (< to left)
  4. RemoveFromDefaultComboBox(true)  -->  When selecting RadListBox2 items (<< all to left)

I hope this makes sense and thank you in advance for reviewing this and any assistance.
Ronnie


Cary
Top achievements
Rank 2
 answered on 28 Jan 2010
1 answer
97 views
Hello dear experts.

I trie  to export the value of the grid to excel. All columns except columns of numeric export correctly.
Does anyone know how to solve this problem?

Best regards
Krzysztof

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" 
            GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" ShowGroupPanel="True" 
            ShowFooter="True">  
            <MasterTableView DataSourceID="SqlDataSource1">  
                <Columns> 
                    <telerik:GridBoundColumn DataField="nr_ewid" HeaderText="Nr ewid." AllowFiltering="true" 
                        UniqueName="nr_ewid">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="nr_dok" HeaderText="Nr fakt." AllowFiltering="true" 
                        UniqueName="nr_dok">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="nazwa" HeaderText="Wystawca" AllowFiltering="true" 
                        UniqueName="nazwa">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridDateTimeColumn DataField="data_wplyw" HeaderText="WpÅ‚yneÅ‚a" DataFormatString="{0: dd-MM-yyyy}" 
                        AllowFiltering="true" HeaderStyle-Width="90px" ItemStyle-Width="90px" UniqueName="data_wplyw">  
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridDateTimeColumn DataField="data_wyst" HeaderText="Wystawiona" DataFormatString="{0: dd-MM-yyyy}" 
                        AllowFiltering="true" HeaderStyle-Width="90px" ItemStyle-Width="90px" UniqueName="data_wyst">  
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridNumericColumn DataField="wartosc" HeaderText="Kwota brutto" Aggregate="Sum" 
                        AllowFiltering="true" UniqueName="wartosc" KeepNotRoundedValue="true">  
                    </telerik:GridNumericColumn> 
                    <telerik:GridNumericColumn DataField="wartosc_netto" HeaderText="Kwota netto" Aggregate="Sum" 
                        AllowFiltering="true" UniqueName="wartosc_netto" KeepNotRoundedValue="true">  
                    </telerik:GridNumericColumn> 
                    <telerik:GridBoundColumn DataField="w_obiegu" HeaderText="W obiegu" AllowFiltering="true" 
                        UniqueName="w_obiegu">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="do" HeaderText="Pracownik" AllowFiltering="true" 
                        UniqueName="pracownik">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="przetrzymuje" HeaderText="Przetrzymuje" AllowFiltering="true" 
                        UniqueName="przetrzymuje">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="status" HeaderText="Status" AllowFiltering="true" 
                        UniqueName="status">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">  
                <Selecting AllowRowSelect="True" /> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 

  Protected Sub cmb_excel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmb_excel.Click  
 
        RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML  
        RadGrid1.ExportSettings.ExportOnlyData = True 
        RadGrid1.MasterTableView.ExportToExcel()  
 
    End Sub 
Daniel
Telerik team
 answered on 28 Jan 2010
12 answers
171 views
Hi all,

It appears that I'm getting a clash between the Twitter Widget (which allows you to show your tweets directly on your website) and the Telerik RadMenu. The reason I reckon there's a clash is because I've tested a static page with the twitter code on it that fails when the same page has a RadMenu on it, but works when the RadMenu is completely removed.

Basically, I get a Javascript error saying "object doesn't support this property or method (user_timeline.json)".

Anyone have any suggestions?
msigman
Top achievements
Rank 2
 answered on 28 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?