Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
279 views
I have followed this sample and it seems to work fine.

It looks to me like I followed the example but my code will only export the first page of the data and not all the records in the table.

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "exportCsv")
    {
        exportCsvActivity();
    }
    else if (e.Argument == "exportExcel")
    {
        exportExcelActivity();
    }
     
}
 
protected void exportExcelActivity()
{
    ConfigureExport();
    this.gridActivity.MasterTableView.ExportToExcel();
}
 
public void ConfigureExport()
{
    this.gridActivity.ExportSettings.ExportOnlyData = false;
    this.gridActivity.ExportSettings.IgnorePaging = true;
    this.gridActivity.ExportSettings.OpenInNewWindow = false;

    this.gridActivity.MasterTableView.GetColumn("chkTemplate").Visible = false;
    this.gridActivity.MasterTableView.GetColumn("messageIndex").Visible = false;

}
function RadAjaxManager1_OnRequestStart(ajaxManager, eventArgs) {
 
    if (eventArgs.EventArgument == "exportCsv" || eventArgs.EventArgument == "exportExcel") {
        eventArgs.EnableAjax = false;
    }
     
 
}
 
function exportCsv()
{
     $find("<%= this.RadAjaxManager1.ClientID %>").ajaxRequest("exportCsv");
}
 
function exportExcel()
{
     $find("<%= this.RadAjaxManager1.ClientID %>").ajaxRequest("exportExcel");
}


       
<asp:LinkButton ID="btnExportExcel" runat="Server" Text="Excel Export" CommandName="exportExcel" CommandArgument="exportExcel" CssClass="subPageLinks" OnClientClick="exportExcel(); return false;" ></asp:LinkButton>


Thanks!
Princy
Top achievements
Rank 2
 answered on 08 Sep 2010
1 answer
142 views
We have a requirement , where we need to parse data from a 3 level treeview heirarchy based on the selected nodes (at any level)
For example,
We need the XML like
<LevelA>
    <Level A-1>
        <Level A-1-1> </Level A-1-1>
        <Level A-1-2></Level A-1-2>
    </Level A-1>
   <Level A-2>
        <Level A-2-1> </Level A-2-1>
        <Level A-2-2></Level A-2-2>
    </Level A-2>
 </Level A>

Here the XML should be created based on the selected nodes (checkbox in treeview). It is not the case that the user will select levelA and then go for the nested levels. The user can select data at any levels.

Let me know how can I form an XML representation in this case.




Nikolay Tsenkov
Telerik team
 answered on 08 Sep 2010
1 answer
88 views
Is there a way to prevent a sliding pane from collapsing when it's undocked? I'd like to be able to undock an expanded sliding pane and have it stay where it's at, however I can't find an easy way to achieve that. Any suggestions?
Thanks!
Dobromir
Telerik team
 answered on 08 Sep 2010
2 answers
182 views

Hi All,

I have upgraded my Telerik RAD controls version from 2009.2.701.20 to 2010.2.713.35(Trial Version) in my application.
I have used both "Telerik.Web.Design.dll" and "Telerik.Web.UI.dll" int he application.
While running the application i got the error "Microsoft JScript runtime error: 'constructor' is null or not an object".

Then i replaced all the scripts which were used in the previous version by new version scripts.
No my application is loading the RAD date picker properly, but when i am clicking, it throws the following error:
"Microsoft JScript runtime error: Object doesn't support this property or method"
and the picker is not showing...

Could anyone help me to solve this issue...

Thanx in advance!
Regards
Pravels

 

Tsvetoslav
Telerik team
 answered on 08 Sep 2010
4 answers
173 views
I am hosting a user control in a web part that is using the RadComboBox control.  When I add the control to the user control I get the following message:

Error Message:  "The base class includes the field 'cmd', but its type (Telerik.Web.UI.RadComboBox) is not compatible with the type of control (Telerik.Web.UI.RadComboBox). "

User Control aspx
<%@ Assembly Name="Mcps.OnlineCurriculum.UserControls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=608131910b746488" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UnitSelectorControl.ascx.cs"
    Inherits="Mcps.OnlineCurriculum.UserControls.UnitSelectorControl" %>
<%@ Register Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"
    Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <telerik:RadComboBox ID="cmd" runat="server" />

Any help would be great.



T. Tsonev
Telerik team
 answered on 08 Sep 2010
2 answers
162 views
I am currently working with the RadUpload control and want to know how, if possible at all, to do the following:

2.) Is there a way to browse only valid file types?

Any help is appreciated, thanks.


-Jamie

EDIT- Found the code to remove the Add/Delete buttons using the ControlObjectsVisibility property.
Genady Sergeev
Telerik team
 answered on 08 Sep 2010
7 answers
136 views
Hi,

I have the same SharePoint Designer problem as in http://www.telerik.com/community/forums/sharepoint-2007/full-featured-editor/custom-list-form-radeditor.aspx - ie: Also, when viewing the List Form within SharePoint Designer, the field control does not render and gives the error:
"Failed to render "Description" column because of an error in the "Multiple lines of text" field type control. See details in log. Exception message: the RadControls folder was not found."


I was about to lodge a support ticket, but my subscription has expired. In the process of obtaining budgetary approval but in the meantime, I was wondering if anyone had any suggestions? Please advise if I need to move this query to the 'RadEditor Lite' section.

I am running version 4.5.6.0.

My Enhanced Tool Bar section in ListToolsFile.xml looks like:

<tools name="EnhancedToolbar" dockable="false" enabled="true">
    <tool name="Cut" shortcut="CTRL+X" />
    <tool name="Copy" shortcut="CTRL+C" />
    <tool name="Paste" shortcut="CTRL+V" />
    <tool name="FormatStripper" />
    <tool separator="true" />
    <tool name="Undo" shortcut="CTRL+Z"/>
    <tool name="Redo" shortcut="CTRL+Y"/>
    <tool separator="true" />
    <tool name="MOSSInsertTable" />
    <tool name="MOSSInsertTableElement" dropDownWidth="180">
      <tool name="InsertRowAbove" />
      <tool name="InsertRowBelow" />
      <tool name="InsertColumnLeft" />
      <tool name="InsertColumnRight" />
    </tool>
    <tool name="MOSSDeleteTableElement">
      <tool name="DeleteRow" />
      <tool name="DeleteColumn" />
    </tool>
    <tool name="SplitCell" />
    <tool name="MergeColumns" />
    <tool separator="true" />
    <tool name="MOSSLinkManager" />
    <tool name="ImageManager" />
  </tools>

Many thanks.

Mark Fendley
Stanimir
Telerik team
 answered on 08 Sep 2010
4 answers
118 views
Good day!

I've done everything like here http://www.telerik.com/help/aspnet-ajax/createcustomskin.html
I've made my own skin for Menu called capmenu and I've made a Menu using this skin:
<telerik:RadMenu ID="RadMenu_Administrators" runat="server" EnableRoundedCorners="true" EnableShadows="true" Skin="capmenu" EnableEmbeddedSkins="false" >

but after what all of the default skins ended there work! everything look awfull =(
i've tried to add other skins (standard skins) the same way like my own skin, it works, but it's very uncomfortable and I don't know how to add all icons to Edit panel this way
=(
what can I do to make standard skins work again?

lina fetisova
Top achievements
Rank 1
 answered on 08 Sep 2010
2 answers
204 views
Is there a simple way to add an delete warning to the auto-generate delete in RadGrid?
Allan
Top achievements
Rank 2
 answered on 08 Sep 2010
2 answers
98 views
Can I request that the API documentation for each control includes an indication of each property that has the ThemeableAttribute attribute set?

Thanks.

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 07 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?