Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
307 views
Hello,

I have a template column with an image that is dynamically generated (by another page) based on other values in the grid:

((Image)myRow["Chart"].FindControl("imgChart")).ImageUrl = "~/Reports/cst/ListBar.aspx?pl=" + perflevel.ToString() + "&ss=" + myValue[0].ToString(); 

It works fine for showing the grid, but when I try to do a PDF export it throws an exception "System.Web.HttpException: '/Reports/cst/ListBar.aspx?pl=5&ss=406' is not a valid virtual path.
   at System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options)
   at System.Web.HttpServerUtility.MapPath(String path)
   at Telerik.Web.Apoc.Image.ApocImageFactory.Make(String href)
"

Is there a way to fix this without needing to save a zillion temporary image files to the server?

Thanks,
Nick


Nick
Top achievements
Rank 1
 answered on 22 Jul 2008
2 answers
213 views
I ran into an interesting problem while coding a page this morning. When using the telerik:RadAjaxPanel control, I've found it impossible to set the size of this thing to fill the entirety of the surrounding container using the CssClass, Height & Width, class, or style attributes. It actually works in IE7, but in FireFox 3 it just refuses to do it (web standards?), and I think the following might be why.

When the HTML is rendered, something like the following is produced:
<div id="RadAjaxPanel1Panel"> 
    <div id="RadAjaxPanel1" class="cssclass"> 
        <!-- Content Goes Here --> 
    </div> 
</div> 
 

When the RadAjaxPanel1 div tries to increase its size to 100% of it's surrounding container, it's ramming up against the size of RadAjaxPanel1Panel's unspecified height. I've managed to get a workaround by using JavaScript to programatically set the height on the body.onLoad event of the document, but this does not seem like it should be the intended functionality.

Is there a way to access the surrounding div through the Properties of the control (preferably without having to go through the code-behind) and if not, can this be added in future releases?

Thanks,

Jonathan Hunter
Jonathan Hunter
Top achievements
Rank 2
 answered on 22 Jul 2008
1 answer
152 views
Where/What is the property to set the bar color on a bar chart? I have been hunting around and have tried several different ways to set it in the code behind to no avail.
Giuseppe
Telerik team
 answered on 22 Jul 2008
1 answer
139 views
i am registering an javascript in the page like:

RadScriptManager

.RegisterStartupScript(this.Page, Page.GetType(), "PopUpAlert", "javascript:FnPopupAlert();", true);


my javascript function on aspx is like

function FnPopupAlert()

{

radalert(

"Hi",400,30);
return false;

}

When i run the page an javascript undefined error is coming. Please tell what could be the reason for this because when i remove the radalert line from the function everything works fine.
Else
How can i register an javascript function from the page which have radlaert.
Svetlina Anati
Telerik team
 answered on 22 Jul 2008
9 answers
339 views
When disabling embedded scripts for the tabstrip (and the splitter) and including the script reference paths manually in the scriptmanager, errors occur.

The offending file seems to be TabStrip/RadTabStripScripts.js and causes an error in the microsoft ajax debug js file that 'basetype' cannot be undefined. This is in the Type$registerClass(typeName, baseType, interfaceTypes) function.

We are trying to serve all scripts from an external resource, so have the scriptmanager scriptspath set to another location for microsoft ajax scripts, have embedded scripts turned off for telerik controls in the web.config and the following scripts included for all controls used by the site in the master page:

<asp:ScriptReference Path="~/Scripts/Common/Core.js" />
<asp:ScriptReference Path="~/Scripts/Common/Animation/AnimationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Navigation/NavigationScripts.js" />
<asp:ScriptReference Path="~/Scripts/Common/Popup/PopupScripts.js" />
<asp:ScriptReference Path="~/Scripts/Ajax/Ajax.js" />
<asp:ScriptReference Path="~/Scripts/Grid/RadGridScripts.js" />
<asp:ScriptReference Path="~/Scripts/Menu/RadMenuScripts.js" />
<asp:ScriptReference Path="~/Scripts/Menu/ContextMenu/RadContextMenuScripts.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingPane.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSlidingZone.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitBar.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/RadSplitter.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterItem.js" />
<asp:ScriptReference Path="~/Scripts/Splitter/SplitterPaneBase.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/RadTabStripScripts.js" />
<asp:ScriptReference Path="~/Scripts/TabStrip/MultiPage/RadMultiPageScripts.js" />
<asp:ScriptReference Path="~/Scripts/TreeView/RadTreeViewScripts.js" />


Kind regards,

Rob

Rob
Top achievements
Rank 2
 answered on 22 Jul 2008
8 answers
235 views
Hi there,

playing with the rad grid yesterday, it occurred to me that a useful bit of functionality would be to have the text outputted on each row to be formatted with the maximum amount of text available in its column width plus elipses (...).

This would mean column widths can be set and they wouldn't automatically expand for large amounts of text or wrap onto many lines, but just show what it can. The rest of the text could then be viewed when resizing the column width.

e.g.

Name        Address             Sex
Rob Mo... Trust Court, T... Male
Test Us...  Some Addres...  Female

on column expanding would become:

Name          Address                                       Sex
Rob Moran Trust Court, The Vision Park, H... Male
Test User    Some Address                              Female

Cheers,

Rob
Rob
Top achievements
Rank 2
 answered on 22 Jul 2008
0 answers
71 views
I've seen a few posts here and there grumbling about hassles upgrading from the RadControls for ASP.NET to the RadControls for ASP.NET AJAX. I thought I take a moment to post my experience.

I completed a project a couple of years ago with the "old" controls. They look pretty, but I had a LOT of problems with them. I'm sure that part of the problems were due to me simply not understanding the controls, but it seemed like every single thing I wanted to do required some javascript work-around to accomplish. It was pretty frustrating, but still far better than writing my own controls. On that project, I ended up using the Telerik controls rather sparingly due to all the problems I was having. I think I only ended up using the Menu and TreeView. I was originally using the Grid (which caused me untold headaches) but eventually found that it was so "bulky" that it made page load times unbearable and eventually had to take it back out. Also, as one might expect, the old controls did not "play nice" with ASP.NET AJAX. You pretty much had to use the Telerik AJAX manager for the controls to really work.

The next project I started I avoided all 3rd party controls like the plague. I just didn't want the headaches. It turned out "okay", but I'm a programmer not a graphics designer so it was very "simple" looking. I kept telling my self that "clean and simple" is all the rage now, but I longed to have it look better.

So I decided to give the new Telerik controls a shot.

Maybe it's because I had worked with the controls before, or maybe it's just because the new controls are much, much better. Either way, I am extremely happy with the results this time. There are still work-arounds for odd-ball type stuff that I wanted to do, but the new controls really seem to work "out of the box" a majority of the time. And when they don't, you can get an answer on the forums in about a day. And they have significantly reduced the client-side "bulk" of the controls, so page load times are fast. This new project uses almost every Telerik control (grid, toolbar, menu, splitter, treeview, input controls, window, panel bar, upload, tab strip w/ multi-page, reporting, and soon the scheduler) and I've had to open exactly one support ticket. There have been frustrations, to be sure, but that's to be expected with any 3rd party control. But the final product is fantastic (in my humble opinion). And the best part? I looks awesome without me having to do anything more than set the Skin properties and override some CSS here and there.

So no, I didn't have to go through the pain of upgrading an existing project from the old controls to the new (although I probably will at some point), but I can say with certainty that the new controls are head-and-shoulders above the old ones. If you are looking for a 3rd party control suite, I would definitely recommend Rad Controls for ASP.NET AJAX. Expect to spend some late nights figuring out how to use the controls appropriately. But also expect great results and happy users.
Scott R
Top achievements
Rank 1
 asked on 22 Jul 2008
1 answer
380 views

After selecting a date from the Date Picker calendar pop up, the control loses the focus.  By default, shouldn't the focus return back to the input area?

If not, how can I set the focus back to the Rad Date Picker's associated input area?

I've tried the following javascript after the DateSelected event, but the focus method is not recognized:

   <script type="text/javascript">  
       function SetDatePickerFocus()  
       {  
           var datePicker = window["<%= RADDatePicker1.ClientID %>"];  
           datePicker.Focus();  
       }  
    </script> 
Missing User
 answered on 22 Jul 2008
2 answers
590 views
Hi.

I am trying to add Telerik.Web.UI into Moss 2007


It seems like when i used 

AutoGenerateColumns

="True"

it works ok but When I define 

AutoGenerateColumns

="False"
and defines columns throws

An error occurred during the processing of . Type 'Telerik.Web.UI.GridBoundColumn' does not have a public property named 'GridBoundColumn'

any idea???

Young
Top achievements
Rank 1
 answered on 22 Jul 2008
1 answer
76 views
Hi
I have problem in installing RadControlsWinforms_Q1_2008_SP1_trial_setup.exe  when i download it completely and try to install in the middle it a dialog  is  appeared  whith this message "Error 1335 ,the cabinet file 'Data1.Cab' requierd for this installation is corrupt and can not be used .this could indicate a network error , an error reading from the CD-ROM , or a problem with this package." i thought the problem came from downloaded file so i  re - download it for 4 times and problem didn,t  solve .when i push the ignore button this mesage appear "Error 2350.FDI server error".please tell me what should i do for testing this trial befor purchase it?
thanks alot
Nikolay
Telerik team
 answered on 22 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?