Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
41 views
I can get my editor to work properly if I put it in the ASPX page, but if I try and initialize it in the code behind, I can't seem to be able to upload files.  I get an error saying that my file extension is invalid.

    Private Sub InitializeEditor()  
 
        Dim Editor1 As New RadEditor  
        Editor1.ID = "RadEditor1" 
        Editor1.AutoResizeHeight = False 
        Editor1.EnableResize = False 
        Editor1.ToolsFile = "~/App_Assets/Other/News_Tools.xml" 
        Editor1.Width = 400  
        Editor1.Height = 400  
        Editor1.Skin = "Office2007" 
        Editor1.ImageManager.ViewPaths = New String() {"~/User_Assets/Images"}  
        Editor1.ImageManager.DeletePaths = New String() {"~/User_Assets/Images"}  
        Editor1.ImageManager.UploadPaths = New String() {"~/User_Assets/Images"}  
        Editor1.ImageManager.SearchPatterns = New String() {"*.jpg,*.jpeg,*.png,*.gif,*.bmp"}  
        EditorPlaceHolder.Controls.Add(Editor1)  
 
    End Sub 

I am trying to upload a png file.
Anyone have any thoughts?
Chase Florell
Top achievements
Rank 1
 answered on 29 Sep 2008
2 answers
88 views
I see these properties for the "SilverlightManager" but I do not see any buttons for silverlight in the Editor.  Where can we find examples of the SilverlightManager and how to implement it?
Chase Florell
Top achievements
Rank 1
 answered on 29 Sep 2008
3 answers
150 views
Hi.. When I run my site I get an error on my page
Telerik is Undefined

I have the necesssary entries in the web config.. what am I missing ? Thanks

<

remove path="*.asmx" verb="*"/>

<

add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI"/>

<

add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

<

add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

<

add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

<

add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.1.619.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

</

httpHandlers>

Serrin
Top achievements
Rank 1
 answered on 29 Sep 2008
2 answers
207 views
After upgrade to .NET Framework 3.5 Service Pack 1, few pages in my site don't work:

1) on one page use
 <telerik:GridBoundColumn HeaderText="Hours" DataField="THours" UniqueName="THours" DataType="System.Decimal" Aggregate="Sum" AllowFiltering="False" AllowSorting="False" FooterText="Total: "></telerik:GridBoundColumn> 
         

I got error:
 
[InvalidCastException: Specified cast is not valid.] 
   lambda_method(ExecutionScope , DataRow ) +321 
   System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +190 
   System.Linq.Enumerable.Sum(IEnumerable`1 source) +95 
   lambda_method(ExecutionScope ) +127 
   System.Linq.EnumerableExecutor`1.Execute() +108 
   System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +68 
   System.Linq.Queryable.Sum(IQueryable`1 source) +163 
   Telerik.Web.UI.GridBoundColumn.GetAggregateByType(IQueryable queryable, String fieldName, GridAggregateFunction func) +240 
changed it to Aggregate="Count", it runs fine

2) This line of code:
Dim fieldValue As Single = Single.Parse(dataItem("TotalInvoice").Text)
works fine before upgrade. Now it throws error:
[FormatException: Input string was not in a correct format.] 
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7467367 
   System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) +115 
   System.Single.Parse(String s, NumberStyles style, NumberFormatInfo info) +192 
   System.Single.Parse(String s) +23 
   mbreq_AllReqs.rgRequisitions_ItemDataBound(Object sender, GridItemEventArgs e) in D:\Websites\_MB_Intranet_v3\mbreq\AllReqs.aspx.vb:101 
   Telerik.Web.UI.RadGrid.OnItemDataBound(GridItemEventArgs e) +78 
   Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +628 
   Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode) +135 
   Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +398 
   Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +129 
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +574 
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +454 
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57 
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114 
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31 
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142 
   Telerik.Web.UI.GridTableView.PerformSelect() +4 
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73 
   Telerik.Web.UI.GridTableView.DataBind() +235 
   Telerik.Web.UI.RadGrid.DataBind() +80 
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82 
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72 
   System.Web.UI.Control.EnsureChildControls() +87 
   System.Web.UI.Control.PreRenderRecursiveInternal() +44 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Control.PreRenderRecursiveInternal() +171 
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842 
 



I upgraded the server and they didn't run. I tested in my local box and they run fine. Upgraded my local computer and they just don't run after the upgrade.

Please help.


John Ngo
Top achievements
Rank 1
 answered on 29 Sep 2008
2 answers
149 views
Anyone else have problem with DateTimeColumn in Chrome? Is there a workaround? I used "Auto" for radgrid.TableLayout . Thanks
andy
Top achievements
Rank 1
 answered on 29 Sep 2008
7 answers
177 views
How does Telerik parse the Min and Max date values when they are assigned in markup? More specifically, what exact format should I use so that there is no ambiguity in parsing the date format? Will something like the following always be interpreted properly:

MinDate="1900-01-01"

I have seen in other posts something like:
MinDate="1900/01/01"

Which is easier if any to eliminate ambiguity in the interpretation of the value if I happen to push my code to servers running on non-US cultures?
Thomas
Top achievements
Rank 1
 answered on 29 Sep 2008
5 answers
165 views
I have a layout with two seperate sections (based on a master page) and in one section (Left) I have a PanelBar insde of an AjaxPanel and in the other (Right) I have an another AjaxPanel with user controls.  When the user makes a particular change in the AjaxPanel on the right I want to update the PanelBar (via the AjaxPanel) on the left.

Using normal ASP Update Panels I would just to a LeftPanel.Update();.  How can I accomplish this?

In particular, I don't need the entire left panel to update, just the PanelBar. 
Gary
Top achievements
Rank 1
 answered on 29 Sep 2008
0 answers
93 views
Hi:

howto insert two combo box in a scheduler,

combobox 1 on change index , combo box 2 fill

combo box dynamic
tanks,
sorry for mi english :(
Rogel
Top achievements
Rank 1
 asked on 29 Sep 2008
2 answers
127 views
Hi, I am using a using a self referencing grid as shown in the article http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Hierarchy/SelfReferencing/DefaultCS.aspx . It works great,but now I want to show another grid when user clicks on the last level of the heirarchy. Can anyone tell me the best way to do that? I am thinking of using a usercontrol edit form with a grid inside.$0$0$0$0I want to show websites by category, the categories are heirarchycal and one website can belong to more than category at different levels of the heirarchy.$0
chirag
Top achievements
Rank 1
 answered on 29 Sep 2008
4 answers
246 views
Within a radgrid, I added one template column in the MasterTableView, while the rest of the radgrid columns were auto-generated via a database query.    However, this template column always displayed as the left-most column, while I expected it to be displayed to the right-most of the grid.    I've tried to change its column index in the prerender event.  It didn't work.  It seemed in the prerender event, the template column was the only column recognized. 
Is there a way to move this "pre-defined" column to the right-most in an auto-generated radgrid?   Thanks!

Shawn

Shawn
Top achievements
Rank 1
 answered on 29 Sep 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?