Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
114 views
Good evening,

I am having a challenge with getting the ExportToExcel() to return all the data in my grid to excel.  It works fine in the sense that it grabs the current page of data for download, but that is it. It doesn't bring down everything even by setting the properties as outlined in the Telerik documentation: 

The background:
-The grid is populated via AJAX using the RadAjaxManager.
-The properties are set in this method:

 

public void ConfigureExport()

 

{

radgridActive.ExportSettings.ExportOnlyData =

true;

 

radgridActive.ExportSettings.IgnorePaging =

true;

 

 

this.radgridActive.ExportSettings.FileName = "ActiveReport";

 

}

I even went as far as reading this thread and following this example:  http://www.telerik.com/help/aspnet-ajax/grdexportwithajax.html
Here is a sample of the code I used to follow this example.

 

<

 

telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

 

 

 

 

<script type="text/javascript">

 

 

function mngRequestStarted(ajaxManager, eventArgs)

 

{

 

if (eventArgs.get_eventTarget().indexOf("btnExport") != -1)

 

eventArgs.set_enableAjax(

false);

 

}

 

 

</script>

 

 

</telerik:RadCodeBlock>

........

 

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">
.....
Where "btnExport" is the control that initiates the Export.
No Luck Here either.  I am at a loss where to go from here. I'd be happy to supply any information to you that you may need further.

Thank you.

 

Brandon Camarillo
Top achievements
Rank 1
 answered on 28 Oct 2009
1 answer
88 views
The solutions here do not work when using Popup EditMode and a Template EditForm.

The ItemCreated solution returns nothing for the EditFormUserControl.  If one changes the code so that the textbox to be focused is found, the inserted javascript seems to cause an endless loop.

The ItemDataBound solution finds an empty grid cell instead of the textbox to be focused.
Pavlina
Telerik team
 answered on 28 Oct 2009
1 answer
145 views

Hello, I have the following issue: I have a list of users (combobox) and I want to load RadFileExplorer
depending on user selected from the comboBox. Each user has it's own root folder.

I want to attache the test project (VS studio 2008, c#) and the database (SQL server 2005), but I don't know how.
I have only attached the errors print screen.

 

problems with RadFileExplorer:

1. when I select a diffrent user from the comboBox, the RADFileExplorer does not refresh with the current user data (only if I press f5 and reload the page)

Try to change the user, see what happen, change it again, and finally  press F5. RadFileExplorer display only the root folder for the selected user,
and the entire tree only when i press f5.

2. wher I try to create a new folder I get Error1.jpg

3. the folder is created, but when I click on it I get error2.jpg

4. from now on, I get a lot of javascript errors

Please let me know how to send you the source code and the database.

Thank you

Fiko
Telerik team
 answered on 28 Oct 2009
1 answer
238 views
hi Telerik Guys !!

Could you help me how can I assign the width to the columns that I added on to the GRID CONTEXT MENU of RAD FILE EXPLORER.

Lets say I have three columns named :-

   FILE NAME            SIZE            CREATED DATE                    MODIFEIED DATE

All I want is to assign the same/different width to each column . HOw can I do that ?

Please help !

Ajay
Fiko
Telerik team
 answered on 28 Oct 2009
2 answers
394 views
Is it possible to split a radgrid in 2, when a certain number of items is reached and put 1 the left and the other on the right.
By columns i do NOT mean a column for each datafield of the item in the grid, but all the columns with the data of a griditem:
Basically I'm looking if a RadGrid can do the following:

RadgridTitle:
RadgridItem1 | RadgridItem2
RadgridItem3 | RadgridItem4

Each RadgridItem consists of the usual columns displaying the data of the item.
Sebastian
Telerik team
 answered on 28 Oct 2009
1 answer
90 views
Hi all,

Currently, I have a combo box in a user control where the AllowCustomText property is set to true so that I can perform LoadOnDemand.  However, I have an issue with preventing special characters from being entered.  I looked at the article: http://www.telerik.com/help/aspnet-ajax/combo-prevent-typing-particular-characters.html.  Unfortunately, I have been having a difficult time trying to implement the suggestions in the article.  I tried to use the ClientScript methods from the page (ClientScript.RegisterClientStartupScript, etc) but to no avail.  

In addition, I tried to append to the page's onload with the following code snippet

Format Code Block(
if (window.addEventListener){
window.addEventListener('onload', 'someFunction', false);
}
else if (window.attachEvent){
window.attachEvent('onload', 'someFunction');
}
)

Also, I tried it with and without the quotes for someFunction.

Does anyone out there have any suggestions?

Thanks,

Ron
Veselin Vasilev
Telerik team
 answered on 28 Oct 2009
2 answers
111 views
Hi All,

I want to implement a scrolling playlist feature.  The idea is to have a button at the top and the bottom to scroll the list up or down.  See the attached screenshot.  I was thinking about using the RadListBox control, but I don't see a way to cause it to scroll (other than the mousewheel of course, and a side scroll bar).  What I'd really like is a configurable scrolling panel, that could go horizontally or vertically, that doesn't depend on Flash or SIlverlight.

Is there a better control for this?  Any suggestions on approach?

Thanks in advance,
Mike
Mike Sharp
Top achievements
Rank 1
 answered on 28 Oct 2009
2 answers
96 views
Hi, I have a code snippet:

function GetSlider() { 
  return $find("<%= RadSlider1.ClientID %>"); 
} 
 
var radSlider = GetSlider(); 
 
alert(radSlider); 
 
var newValue = $.cookie('site_font_size'); 
 
newValue = newValue.substring(0, newValue.length-2) 
radSlider.set_value(newValue * 10); 

in alert window i get [null] and script failed to load after radSlider.set_value(newValue * 10);

i tried use Jquery selector by id, but that returns bad object i think. I'm not very skilled in JavaScript, so don't laugh :)

radSlider I have defined with

<telerik:RadSlider ID="RadSlider1" runat="server"  OnClientValueChange="valueChanged" MinimumValue="3" MaximumValue="15"> 


Any ideas?







Jan
Top achievements
Rank 1
 answered on 28 Oct 2009
2 answers
98 views

Hi,

I'm using the example from http://demos.telerik.com/aspnet-ajax/dock/examples/dynamicdocks/defaultcs.aspx to dynamically add Docks to a DockZone. I set the CommandsAutoPostBack property of the Dock to False and also the AutoPostback property of the DockCommand to False, but I still notice a postback when I collapse/expand the Dock.

Is there a way to handle this client-side, and also with keeping state of the Docks after a postback?

Thanx,
Danny

Danny Scheelings
Top achievements
Rank 1
 answered on 28 Oct 2009
1 answer
127 views
Hi,

I need to set some properties of the editor at run-time such as the SpellCheckSettings-DictionaryPath and the ImageManager-ViewPaths
However I am not sure how to get a reference to the serve control?

Using version 2009.1.311.35

I have tried

1) http://www.telerik.com/help/aspnet-ajax/editor_getingreferencetoradeditor.html   client side but this does not seem to work and I am not sure I can even set these properties using JavaScript?

2) Adding code behind class to reference it.

Code behind
protected void Page_Load(object sender, EventArgs e) 
        { 
            RadEditor1.ImageManager-ViewPaths= this.ViewData["imagePath"].ToString(); 
        } 

Controller
public ActionResult Index( ) 
        { 
            ViewData["imagePath"] = "~/Content/RadEditor/mypics/1";  
            return View("Index"); 
        } 

View
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs"  Inherits="mynamespave.Index"  %> 

When I do this the editor does not appear at all and I get the following JavaScript error:
Telerik.Web.UI.Editor is undefined 
 Telerik.Web.UI.Editor.CommandList... function(commandName, editor, args) {\r\n 
 
a is undefined 
Function.__typeName="Function";Function....Class("Sys.UI.Control",Sys.Component);\r\n

How do I set properties dynamically when using MVC?
Is their a new version MVC friendly version of the editor coming ?

Also

Why does this work
<% 
    RadEditor1.Content = (string)ViewData["Content"]"; 
%> 

but every other property appart from content seems not to work for example the below has no effect
<% 
    RadEditor1.EditModes = EditModes.Design; 
%> 



Rumen
Telerik team
 answered on 28 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?