Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
415 views
Hi Friends,

    Can anyone help me why is this alert message "Cannot write to the Target Folder !"
    displayed when i use Image Editor to resize the image and try to save the file.
    and is there any option to fix this up..

Thanks
K²

    
Liu Peng
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
134 views
I'm working with the grid and trying to edit a record.

Normally, I show stuff like "LastModifiedDate" and primary key ID values on the edit form, but as labels and not as editable controls.

I can probably do this by using a template column and making the edit columns labels, but I figured setting a col = readonly should do the trick, but it appears to just not show the field at all on the edit form.

Is there any way to get these columns to display on the edit form but not as editable controls?
Princy
Top achievements
Rank 2
 answered on 18 Jan 2010
0 answers
179 views
It shows up the Loading Panel only when you click the RadGrid's pager for the very first time. After that everything works except that Loading Panel is not there. It worked for some time and suddenly it stopped displaying the loading panel properly. Yes, i made some changes meanwhile but i do not remember what all i have modified.
What i should particularly be aware of in order to debug it? Thanks
El
Top achievements
Rank 1
 asked on 18 Jan 2010
4 answers
119 views

We are using Telerik dll Version 2009.3.1103.35. It includes the RadEditor (don't know its version). Our clients wants help on

using the editor as an end-user. So, we downloaded end-user manual (RadEditorAjaxEndUserManual.pdf) from Telerik's documentation

site; it is telling it's version is 2008.2.826.
But, our Clients are telling, what they see in the documentation, doesn't match with what they see in the web site rad editor -

especially when they are trying to use tables in the editor.
My question is, is the documentation we have downloaded is the one that we should give to our client, if you take into account

the Telerik dll version that we are using - cannot be changed? If not, then can you give the url where we can find it (if

possible as pdf).

Rumen Jekov
Top achievements
Rank 1
 answered on 17 Jan 2010
1 answer
169 views
I have a form with 2 listboxes configured to support transfers between the 2.  I have written code to dynamically (load on demand) display tooltips on the listbox items.

This works great up until the point that an item is transferred from 1 listbox to the other listbox.  After this happens, any time the user hovers over a listitem an error is thrown with this message: "Cannot find a server control with ID=i173. If you need to specify a client-side element ID, please set IsClientID to true."  What's odd is that the server control id in the error message is NOT the one that I'm hovering over in the UI.  

The stacktrace for the error doesn't mention any line of my code, it's all in the telerik code so I'm not really sure what the cause of the problem is.

Stack Trace:

   at Telerik.Web.UI.RadToolTipBase.ThrowControlNotFound(String ctrlID) 
   at Telerik.Web.UI.RadToolTipManager.DescribeComponent(IScriptDescriptor descriptor) 
   at Telerik.Web.UI.RadWebControl.Telerik.Web.IControl.DescribeComponent(IScriptDescriptor descriptor) 
   at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) 
   at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(WebControl control) 
   at Telerik.Web.UI.RadWebControl.GetScriptDescriptors() 
   at Telerik.Web.UI.RadWebControl.System.Web.UI.IScriptControl.GetScriptDescriptors() 
   at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) 
   at System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl) 
   at Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() 
   at Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) 
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
   at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl) 
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) 
   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) 
   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) 
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) 
   at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer) 
   at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl) 
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 
   at System.Web.UI.Page.Render(HtmlTextWriter writer) 
   at Telerik.Web.UI.RadAjaxPage.Render(HtmlTextWriter writer) 
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
   at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) 
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 
   at System.Web.UI.Page.Render(HtmlTextWriter writer) 
   at Telerik.Web.UI.RadAjaxPage.Render(HtmlTextWriter writer) 
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
   at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) 
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 
   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 
   at System.Web.UI.Page.Render(HtmlTextWriter writer) 
   at Telerik.Web.UI.RadAjaxPage.Render(HtmlTextWriter writer) 
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 
   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 


Here is the listbox definition:

                <table > 
                    <tr> 
                        <td><telerik:RadListBox ID="PolicyList" runat="server" TransferMode="Move" ButtonSettings-Position="Right" Width="350px" Height="200px" 
                            SelectionMode="Multiple" AllowTransfer="true" TransferToID="SelectedPolicyList" EnableDragAndDrop="true" 
                            DataKeyField="Id" DataTextField="Title" DataValueField="Id" 
                            OnItemDataBound="PoliciesDataBound"                             
                            ><ButtonSettings AreaWidth="30px" Position="Right"  /> 
                            </telerik:RadListBox> 
                        </td> 
                        <td> 
                            <telerik:RadListBox ID="SelectedPolicyList" runat="server" Width="350px" Height="200px" 
                            SelectionMode="Multiple" EnableDragAndDrop="true"  
                            DataKeyField="Id" DataTextField="Title" DataValueField="Id" 
                            OnItemDataBound="SelectedPoliciesDataBound"                             
                            ></telerik:RadListBox> 
                        </td> 
                    </tr> 
                </table> 
 

Here is the Data bound event handler:

        protected void PoliciesDataBound(object sender, RadListBoxItemEventArgs e) 
        { 
            RadToolTipManager1.TargetControls.Add(e.Item.ID); 
        } 
 
        protected void SelectedPoliciesDataBound(object sender, RadListBoxItemEventArgs e) 
        { 
            RadToolTipManager1.TargetControls.Add(e.Item.ID); 
        } 
 

Here is the Ajax Event handler:

        protected void RadToolTipManager1_AjaxUpdate(object sender, Telerik.Web.UI.ToolTipUpdateEventArgs e) 
        { 
            if (e.TargetControlID != null && e.TargetControlID != "") 
            { 
                RadListBoxItem item = (RadListBoxItem)PolicyList.FindControl(e.TargetControlID); 
                if (item == null) 
                    item = (RadListBoxItem)SelectedPolicyList.FindControl(e.TargetControlID); 
 
                if (item != null) 
                { 
                    PolicyDAO dao = new PolicyDAO(_domain); 
                    Policy pol = dao.Get(_session, Int32.Parse(item.Value)); 
                    HtmlGenericControl htmlGenericControl = new HtmlGenericControl("div"); 
                    htmlGenericControl.InnerHtml = pol.PolicyText; 
                    e.UpdatePanel.ContentTemplateContainer.Controls.Add(htmlGenericControl); 
                    
                } 
            } 
        } 
 

Chris
Top achievements
Rank 1
 answered on 16 Jan 2010
1 answer
108 views
Could not load type 'Telerik.Web.UI.RadUploadHttpModule'

I'm in the process of moving this application from a Windows Server 2003 box to a Windows Server 2008 box, and I'm getting the above error.





I've looked at this post (http://www.telerik.com/community/forums/aspnet-ajax/upload/could-not-load-type-telerik-web-ui-raduploadhttpmodule.aspx) and tried the solution, but that just changed the error to:

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

Any ideas if I'm supposed to do something specific when moving to IIS 7.x?

Also, another issue has come up, the Menu control does not have any styling to it.  It works, but there's no themeing applied.  Any ideas on this?

Thanks,

King Wilder


King Wilder
Top achievements
Rank 2
 answered on 16 Jan 2010
2 answers
115 views
Hello Telerik Team,

        I'm using a radwindow as popup in the button event. On button click the window pops up and on closing of the pop up window it causes an error "Failed to load the  view state". But when I'm causing the autopostback of any other control and then click the button it works fine.Please tell me what would be the problem.

Regards
Unni
unnikkannan m
Top achievements
Rank 1
 answered on 16 Jan 2010
1 answer
106 views
Hi,
I am following the instructions from this article to implement database-based custom dictionary.
http://www.telerik.com/support/kb/aspnet-ajax/spell/changing-the-custom-dictionary-files-location.aspx

I am having a problem setting CustomDictionarySourceTypeName property. The example has custom dictionary file in app_code folder, but since I am using ASP.NET MVC App there is no app_code folder. I created a custom dictionary file and placed it under Models
directory. I tried something like this:

CustomDictionarySourceTypeName

 

="typeof(MvcApplication5.Models.MyDictionary).AssemblyQualifiedName"

 

and few other tries but I keep getting  "Can't find the custom dictionary source type." error.

Sorry this is more of a .net fundamental question, but any help is appreciated. Thanks!
Kate
Ram
Top achievements
Rank 1
 answered on 16 Jan 2010
2 answers
105 views
Hi, I have a treeview that I am populating on demand from a web service...it works great!  Only thing is, when a set of child nodes is returned, I'd like to hide the collapse/expand image for any of those child nodes that themselves don't have any children while showing the collapse/expand image for any nodes that do have children.  How would I do this?

Thanks in advance,
Andrew
Andrew
Top achievements
Rank 1
 answered on 16 Jan 2010
6 answers
271 views
I know I have done this before, but I can't seem to get this figured out.  I have a RadGrid and based on which row I want to format the text to {0:C}.  The APX:

 

 

 
 <telerik:RadGrid ID="GridView2" runat="server" HorizontalAlign="Left" Skin="Web20" OnItemDataBound="RadGrid1_ItemDataBound" >                       
                        <MasterTableView> 
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                        </MasterTableView> 
                    </telerik:RadGrid>  

for an asp.net gridview I did this using rowdatabound:

 

 
    Sub gvCurrentYearBudgetnew_rowdatabound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles gvCurrentYearBudgetNew.RowDataBound  
        Dim i As Integer 
        Dim str1 As String = "nothing yet" 
        If e.Row.RowType = DataControlRowType.DataRow Then 
            e.Row.Cells(1).Font.Bold = True 
            e.Row.Cells(5).Font.Bold = True 
            e.Row.Cells(6).Font.Bold = True 
 
 
            e.Row.Cells(1).BackColor = Drawing.Color.Bisque  
            e.Row.Cells(5).BackColor = Drawing.Color.Bisque  
            e.Row.Cells(6).BackColor = Drawing.Color.Bisque  
 
            Select Case RTrim(e.Row.Cells(0).Text)  
                Case "Sales" 
                    For i = 1 To e.Row.Cells.Count - 1  
                        If Not String.IsNullOrEmpty(e.Row.Cells(i).Text) Then 
                            Try 
                                e.Row.Cells(i).Text = String.Format("{0:c}", Double.Parse(e.Row.Cells(i).Text))  
                            Catch 
                            End Try 
                        End If 
                    Next 
                Case "Gross Profit" 
                    For i = 1 To e.Row.Cells.Count - 1  
 
                        If Not String.IsNullOrEmpty(e.Row.Cells(i).Text) Then 
                            Try 
                                e.Row.Cells(i).Text = String.Format("{0:c}", Double.Parse(e.Row.Cells(i).Text))  
                            Catch 
                            End Try 
                        End If 
                    Next 
                Case "Price" 
                    For i = 1 To e.Row.Cells.Count - 1  
                        If Not String.IsNullOrEmpty(e.Row.Cells(i).Text) Then 
                            Try 
                                e.Row.Cells(i).Text = String.Format("{0:c}", Double.Parse(e.Row.Cells(i).Text))  
                            Catch 
                            End Try 
                        End If 
                    Next 
                Case "Actual GP" 
                    For i = 1 To e.Row.Cells.Count - 1  
                        If Not String.IsNullOrEmpty(e.Row.Cells(i).Text) Then 
                            Try 
                                e.Row.Cells(i).Text = String.Format("{0:c}", Double.Parse(e.Row.Cells(i).Text))  
                                e.Row.Cells(i).ForeColor = Drawing.Color.ForestGreen  
                            Catch 
                            End Try 
                        End If 
                    Next 
                Case "Actual Sales" 
                    For i = 1 To e.Row.Cells.Count - 1  
                        If Not String.IsNullOrEmpty(e.Row.Cells(i).Text) Then 
                            Try 
                                e.Row.Cells(i).Text = String.Format("{0:c}", Double.Parse(e.Row.Cells(i).Text))  
                                e.Row.Cells(i).ForeColor = Drawing.Color.ForestGreen  
                            Catch 
                            End Try 
                        End If 
                    Next 
            End Select 
        End If 
    End Sub 
So I just selected the row based on the text in the first column, the for each cell in the row I applied my format.

Can someone help me do the same thing using the Rad Ajax 3.5  Radgrid.   Thank you.

Fredrick Zilz
Top achievements
Rank 1
 answered on 15 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?