Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
143 views
I recently upgraded from the 2007 3 1218 assembly to the 2007 3 1314. My grid has several columns that can be edited in place using a double click. In the 1218 assembly, after a doubleclick and the editItem method is called on the row, the grid width stays the same as before and the HTML input controls are shown as expected by looking at the online demo-

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/DataEditing/EditOnDblClick/DefaultCS.aspx


When I upgraded the assembly to 1218, the grid width no longer stays the same when showing the edit fields for that row- its much wider now. When reseting (clearedititems called from the server) the grid goes back to its desired size. This happens for both IE7 and FireFox 2.0.0.11.  Is there something that I need to add in the grid for this new assembly?

Steve
Telerik team
 answered on 12 Feb 2008
1 answer
224 views
I've got a grid which is auto-generating its' columns...

1) When setting 'UseStaticHeaders' the headers' width doesn't expand with the actual width of the data columns (the header doesn't match up with the data rows). Everything looks fine without using static headers. Is there some setting I am missing?

2) What determines the width and the max width of auto generated columns? I can see that it will wrap at some point, can this be set? Can a minimum width also be set? I suppose this might help with #1.

3) It would be nice if there was a way to set the ScrollHeight to 100% or some other setting where there wouldn't be a vertical scroll, it's not always desirable, esecially if the overall page is already vertically scrollable the page might as well be longer so there is only one scroll. (Same for horizontal I might add, this would be addressable depending on answers to #2). I've tried 100%, it seems to go the default (300 or 350 pixels, I forget which).
Sebastian
Telerik team
 answered on 12 Feb 2008
3 answers
277 views
I have several RadWindows that I'm working on that use the max-height and max-width styles in a linked stylesheet. It works fine in IE when not in a RadWindow but does not work when in a RadWindow. This works fine in FireFox in both scenarios.

You should be able to easily test this by creating a RadWindow that has a asp:Image with an ImageURL to a large image. Create a css file with the class below and apply your class to the asp:Image. In a RadWindow in IE it won't apply the max width/height of the image. In FireFox it works fine.

.thumbnail  
{  
    border:0px;  
    max-height:96px;  
    max-width:96px;  
} 
Georgi Tunev
Telerik team
 answered on 12 Feb 2008
1 answer
124 views
I'm using Prometheus Window control and trying to use the Office2007.  Just using a simple radalert with Vista skin will show the OK button.  However, if I change the skin to Office2007 or Outlook, the OK button image does not show, just only the OK text.

I've copy all the RadControls folder and Skins folder to the appropriate place in my development environment.

Is this a bug with the Office2007 skin and Window?

Thanks
Georgi Tunev
Telerik team
 answered on 12 Feb 2008
0 answers
94 views
Hi,

A quick question: Is it expected behavior that images added to a RadEditor field are not copied as part of variations propagation? Images using the built-in editor are being copied.

Frank
frankju
Top achievements
Rank 1
 asked on 12 Feb 2008
1 answer
126 views
Using the following code (as interpreted from the online docs), I receive Server Error in '/' Application. I take out the JavaScript line, and it works fine. Or, if I put the ClientID into the Page Load and write it to Debug, I can retreive the ID fine. Latest version of the Splitter and VS 2008. Any ideas?

<TelerikWeb:RadSlidingZone ID="OutputPaneSlidingZone" Height="22" DockedPaneId="PaneCompileOutput" SlideDirection="Top" runat="server">

<TelerikWeb:RadSlidingPane ID="PaneCompileOutput" MinHeight="22" Title="Compile Output" OnClientDocked="Pane_OnChange" OnClientResized="Pane_OnChange" OnClientUndocked="Pane_OnChange" OnClientExpanded="Pane_OnChange" OnClientCollapsed="Pane_OnChange" EnableResize="true" runat="server">

var slidingZone = $find("<%= OutputPaneSlidingZone.ClientID %>");

 

Server Error in '/' Application.

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +2108046
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +207
   Telerik.Web.UI.RadAjaxControl.PerformRender() +403
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1473
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +63
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
   System.Web.UI.Page.Render(HtmlTextWriter writer) +26
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558

Svetlina Anati
Telerik team
 answered on 12 Feb 2008
0 answers
105 views
In our sites we using a 'mapping' for creating real addresses. 
For example:

http://localhost/index.aspx?modul=demo&page=list&
the real address is
/test/modules/demo/templates/list.aspx

Scheduler shows next link for Today, Day, Week, Mount etc.
http://localhost/test/modules/demo/templates/#
Is there a way that we can override this address?

Thanks,

Imrich Szolik

Imrich
Top achievements
Rank 1
 asked on 12 Feb 2008
15 answers
264 views
In previous RadEditor if I had one ImagePath set, it would default to that folder when you opened the ImageManager.

But in Prometheus when you open the ImageManager with one folder, you first need to select that folder to see the content.

Example:
RadEditor1.ImageManager.ViewPaths = new string[] { "~/Images/CustomerA" };

When CustomerA used to open ImageManager, he directly saw his files. But in Prometheus, he now sees a folder "CustomerA", and has to double-click it to see his files.

Is it possible to change this behaviour? For us having many different users on our CMS system, this makes the ImageManager alot harder to use, especially when our CustomerA folder name actually look pretty cryptic.
Per Holmqvist
Top achievements
Rank 2
 answered on 12 Feb 2008
5 answers
190 views
Hi,
I had a rad grid which gets bound a totally different datasource based on certain events. I have enabled autogenerated columns and this works all fine. I have some logic on the ColumnCreated event to set the visible flag on the column based on some criteria. This is all working fine.

However, i have noticed that if there are columns with the same names, in two different datasources, the autogenerated column property gets cached!

E.g I have DataSource1 and DataSource2. Both contain a column called UserId. When displaying DataSource1 i want to hide that column. I do that by setting the visible property to false. When I switch to datasource2, i do not want to hide this column, but it still hides it (even though the visible property is set to true)! If i switch to a different datasource (i.e datasource3) which does not contain a column of the same name, and then switch back to datasource2, it will display that column....
What I need is some way of letting the RadGrid know that it needs to regenerated all the autogenerated columns, even though they may have the same name.
Or if possible, a way to add a custom prefix to the UniqueName of the autogenerated columns

Below is the code I use to set the visible property:
 void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e) 
    { 
        if (myAdminTree != null && myAdminTree.SelectedNode != null) 
        { 
            string uniqName = e.Column.UniqueName; 
            
            if (myAdminTree.CurrentDataKeyNames.Contains(uniqName)) 
            { 
                e.Column.Visible = false; 
            } 
        } 
    } 


Thanks,
Sebastian
Telerik team
 answered on 12 Feb 2008
5 answers
276 views
Hi,

I have downloaded RadControls "Promethues" today and used automatic installation on my machine. The examples that comes with installation works fine which is in VS 2005. I am using VS 2008. I am already using RadControls for ASP.NET. But When I used RadChart  I was not able to the properties window for the RadChart control after I drag and droped the RadChart control from toolbox. Also I see the below error in the desiner view:

 Could not load file or assembly 'Telerik.Web.UI, Version=2007.3.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The system cannot find the file specified.

I searched this forum and ran the below command in VS 2008 command prompt. Then the above issues were gone. But I am not sure what caused the error again. It would be because I tried to refer the example by opening the Telerik sample in VS 2005. Then I am not able to fix this issue. Please help me to fix this.

C:\Program Files\Microsoft Visual Studio 9.0\VC>gacutil /i "C:\Program Files\Tel
erik\RadControls 'Prometheus' for ASPNET Q3 2007\Bin35\Telerik.Web.UI.dll"
Microsoft (R) .NET Global Assembly Cache Utility.  Version 3.5.21022.8
Copyright (c) Microsoft Corporation.  All rights reserved.
Sebastian
Telerik team
 answered on 12 Feb 2008
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?