Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
146 views

Added the RadChart to a webpart and deployed to Sharepoint Foundation.  It was working but all of a sudden i am getting this error.  

Failed to render "Wiki Content" column because of an error in the "Multiple lines of text" field type control.  See details in log.  Exception message: A generic error occurred in GDI+.  Check the folder specified in the TempImagesFolder property of the control.  Current value is "Chart".  The folder should exist and must have been granted write permissions for the ASPNET user

I have confirmed that there is a directory at C:\inetpub\wwwroot\wss\VirtualDirectories\80\Chart

I also manually set the permissions so that "Everyone" has Full Control on the directory.  It is still giving me problems.  Can someone step me through what i need to do/doing wrong....using Sharepoint Foundation running on my Win7 development system..


Many thanks


UPDATE: figured it out.  was missing ~/ in front of the Temp.  :)  

Michael
Top achievements
Rank 1
 asked on 11 May 2012
1 answer
159 views
Hi,

I been using telerik grid for more than one year. In our new project we need telerik grid client side binding. I created test project to learn to pieces of client side binding. I get master table view null in my basic binding operation. below is the mark up i have. I don't have anything specified in my code behind. Please take a look and let me know what i am doing wrong. 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>RadGrid Client Side Binding Test</title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
 
        <script type="text/javascript">
        function pageLoad() {
            var data = [{ "ID": 1, "Text": "Text1" }, { "ID": 2, "Text": "Text2"}];
            var mtv = $find("RadGrid1").get_masterTableView(); mtv.set_dataSource(data); mtv.dataBind();
            }
 
        </script>
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
        </telerik:RadAjaxLoadingPanel>
        <div>
            <telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="false">
                <MasterTableView>
                    <Columns>
                        <telerik:GridBoundColumn DataField="ID" HeaderText="ID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Text" HeaderText="Text">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
    </form>
</body>
</html>
Richard
Top achievements
Rank 1
 answered on 11 May 2012
2 answers
147 views
When I save the content of the editor while in preview mode, all links have target="_blank". If I go back to design or html mode, the targets are reset to their original values.

I understand that the target attribute is added in preview mode so that links always open in a new window. But when I access the content for saving, the links should revert to their original targets.

I can't reproduce this in the demo, because I can't click a 'save' button and see the content

My workaround will be to hide my save button while in preview mode, but I would prefer not to have to do this.


I had a post last year where a similar issue was discussed, and you gave me a solution - can I remove this code now?

http://www.telerik.com/community/forums/aspnet-ajax/editor/anchors-and-preview-mode.aspx
Dan Ehrmann
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
220 views
Hi

I dont know why but all of a sudden RADGRID is behaving weirdly.

When I click to view detail table view, whole radgrid messes up.  All the rows after the detail table view are shown as text merged together without any styling.

However it shows up fine for the first time.have a look at the screen shots.

                    <telerik:RadGrid ID="rgPhysicalAccessReviewList" runat="server" ShowStatusBar="true" Visible="false"  OnInit="rgPhysicalAccessReviewList_Init"
                    AutoGenerateColumns="False"  AllowSorting="True" AllowMultiRowSelection="False" AllowMultiRowEdit="true" AllowFilteringByColumn="true"
                    OnItemCommand="rgPhysicalAccessReviewList_ItemCommand" OnItemDataBound="rgPhysicalAccessReviewList_ItemDataBound" EnableViewState="true"
                    AllowPaging="true" PageSize="150" OnNeedDataSource="rgPhysicalAccessReviewList_NeedDataSource">
                    <PagerStyle Mode="NumericPages"></PagerStyle>
                    <MasterTableView Width="100%" DataKeyNames="EmployeeID, AccessReviewID" EnableColumnsViewState="true" AllowMultiColumnSorting="True" HeaderStyle-Font-Bold="true" EditMode="EditForms">
                   
                        <NoRecordsTemplate>
                            <div>No records to display</div>
                        </NoRecordsTemplate>
                                    <Columns>
<telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-HorizontalAlign="Left" HeaderText="Business Manager Comments" HeaderStyle-Width ="300px"  HeaderButtonType="TextButton" UniqueName="CommentsBox">
                                            <ItemTemplate>
                                                     <asp:TextBox ID="txtBxComments" OnTextChanged="txtBxComments_OnTextChanged" Text='<%# Eval("ManagerComments") %>' AutoPostBack="true" runat="server" TextMode="MultiLine" Wrap="True" MaxLength="500" Height="50px" Width="300px"></asp:TextBox>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>   
                                        <telerik:GridTemplateColumn AllowFiltering="false" HeaderStyle-HorizontalAlign="Left" HeaderText="Previous Quarter Comments" HeaderStyle-Width ="300px"  HeaderButtonType="TextButton" UniqueName="PQCommentsBox">
                                            <ItemTemplate>
                                                     <asp:Label ID="lblComments" runat="server"></asp:Label>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                      
                                    </Columns>                                   
                    <NestedViewTemplate>
                        <telerik:RadGrid ID="rgEmployeeDetails" AutoGenerateColumns="False" runat="server" AllowPaging="True" BorderWidth="0px" OnNeedDataSource="rgEmployeeDetails_NeedDataSource">
                            <MasterTableView Width="75%" DataKeyNames="EmployeeID" ShowHeader="false" AllowMultiColumnSorting="True" > 
                                    <Columns>
                                            <telerik:GridTemplateColumn HeaderStyle-BorderWidth="0px">
                                                <ItemTemplate>
                                                    <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap">
                                                        <div class="contactWrap">
                                                            <fieldset style="padding: 10px;">
                                                                <legend style="padding: 5px;"><b>Details of Employee:&nbsp; &nbsp;<%#Eval("LastName")%>,&nbsp;<%#Eval("FirstName")%></b>
                                                                </legend>
                                                                <table>
                                                                    <tbody>
                                                                        <tr>
                                                                            <td>
                                                                                <table class="fontDetails">
                                                                                    <tbody>
                                                                                      <tr>
                                                                                             <td style="font-weight: bold;">
                                                                                                Access Coordinator:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="Label2" Text='<%#Bind("AccessCoordinator") %>' runat="server"></asp:Label>
                                                                                            </td>
                                                                                            <td style="font-weight: bold;">
                                                                                                AC Phone:
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:Label ID="Label4" Text='<%#Bind("ACPhone") %>' runat="server"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
<%--                                                                                         <tr>
                                                                                            <td style="font-weight: bold;">
                                                                                                Previous Quarter Comments:
                                                                                            </td>
                                                                                            <td colspan="3">
                                                                                                <asp:Label ID="lblPQComments" Text='<%#Bind("PQComments") %>' runat="server" ></asp:Label>
                                                                                            </td>
                                                                                        </tr>--%>
                                                                                    </tbody>
                                                                                  </table>
                                                                                </td>
                                                                            </tr>
                                                                      </tbody>
                                                                </table>
                                                            </fieldset>
                                                        </div>
                                                    </asp:Panel>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>    
                                    </Columns>                                 
                                </MasterTableView>                          
                        </telerik:RadGrid>
                    </NestedViewTemplate>  
                </MasterTableView>
                <ClientSettings>
                    <Scrolling AllowScroll="true" SaveScrollPosition="true"   UseStaticHeaders = "true" />                   
                </ClientSettings>
                <GroupingSettings CaseSensitive="false" />
                </telerik:RadGrid>

--------------------------------------------------- code behind ---------------------------------------------------

 public void txtBxComments_OnTextChanged(object sender, EventArgs e)
            {
                TextBox txtComments = (TextBox)sender;
                GridDataItem item = (GridDataItem)txtComments.NamingContainer;

                //Remove existing key-value pair if reediting the controls
                if (reviewListChanges.Count > 0)
                {
                    foreach (KeyValuePair<string, string> pair in reviewListChanges)
                    {
                        string[] keyValue = pair.Value.Split('|');
                        if (pair.Key.Equals(item["AccessReviewID"].Text) && keyValue[0].Equals("TextBox"))
                        {
                            reviewListChanges.Remove(pair);
                            break;
                        }
                    }                   
                }

                reviewListChanges.Add(new KeyValuePair<string, string>(item["AccessReviewID"].Text, "TextBox" + "|" + txtComments.Text));
            }

            protected void rgPhysicalAccessReviewList_ItemDataBound(object sender, GridItemEventArgs e)
                {
                  try
                    {

                        if ((e.Item is GridDataItem))
                        {
 if (reviewListChanges.Count > 0)
                            {
                                foreach (KeyValuePair<string, string> pair in reviewListChanges)
                                {
                                    string[] keyValue = pair.Value.Split('|');

                                    if (pair.Key.Equals(gridEditFormItem.OwnerTableView.DataKeyValues[gridEditFormItem.ItemIndex]["AccessReviewID"].ToString()))
                                    {
                                        if (keyValue[0] == "TextBox")
                                        {                                           
                                            txtBx.Text = keyValue[1];                                           
                                        }
                                        else
                                        {                                          
                                            ddlList.SelectedValue = keyValue[1];                                          
                                        }
                                    }
                                }
                            }
                        }
                    }



Please let me know, if any issues.

Appreciate your quick response on this!!
Richard
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
166 views
Dear all, in all my aspnet pages I have the same alignment issue. 

Could you please help me to solve it?

Please see the imagen below.

<div id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_wrapper" class="RadPicker RadPicker_Default" style="display:inline-block;font-family:Arial;font-size:Small;width:70px;">
            <input style="visibility:hidden;display:block;float:right;margin:0 0 -1px -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo" name="ctl00$ContentPlaceHolder1$tpHoraFinDomingo" type="text" class="rdfd_" value="" title=""><table cellspacing="0" class="rcTable rcSingle" style="width:70px;">
                <tbody><tr>
                    <td class="rcInputCell" style="width:100%;"><span id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_dateInput_wrapper" class="riSingle RadInput RadInput_Default" style="width: 100%; display: block; "><span class="riDisplay" id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_dateInput_display" style="color: rgb(0, 0, 0); display: inline; font-family: 'segoe ui', arial, sans-serif; font-size: 12px; line-height: normal; text-align: -webkit-auto; padding-left: 5px; padding-right: 5px; border-left-width: 1px; border-right-width: 3px; "></span><input id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_dateInput" name="ctl00$ContentPlaceHolder1$tpHoraFinDomingo$dateInput" type="text" class="riTextBox riEnabled" style="color: transparent; "><input id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_dateInput_ClientState" name="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_dateInput_ClientState" type="hidden" autocomplete="off"></span></td><td><a title="Open the time view popup." href="#" id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timePopupLink" class="rcTimePopup">Open the time view popup.</a><div id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timeView_wrapper" style="display:none;"><div id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timeView">
                        <table id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timeView_tdl" class="RadCalendarTimeView RadCalendarTimeView_Default" cellspacing="0" border="0">
                            <tbody><tr>
                                <th colspan="3" scope="col" class="rcHeader">Time Picker</th>
                            </tr><tr>
                                <td><a href="#">0:00</a></td><td><a href="#">0:30</a></td><td><a href="#">1:00</a></td>
                            </tr><tr>
                                <td><a href="#">1:30</a></td><td><a href="#">2:00</a></td><td><a href="#">2:30</a></td>
                            </tr><tr>
                                <td><a href="#">3:00</a></td><td><a href="#">3:30</a></td><td><a href="#">4:00</a></td>
                            </tr><tr>
                                <td><a href="#">4:30</a></td><td><a href="#">5:00</a></td><td><a href="#">5:30</a></td>
                            </tr><tr>
                                <td><a href="#">6:00</a></td><td><a href="#">6:30</a></td><td><a href="#">7:00</a></td>
                            </tr><tr>
                                <td><a href="#">7:30</a></td><td><a href="#">8:00</a></td><td><a href="#">8:30</a></td>
                            </tr><tr>
                                <td><a href="#">9:00</a></td><td><a href="#">9:30</a></td><td><a href="#">10:00</a></td>
                            </tr><tr>
                                <td><a href="#">10:30</a></td><td><a href="#">11:00</a></td><td><a href="#">11:30</a></td>
                            </tr><tr>
                                <td><a href="#">12:00</a></td><td><a href="#">12:30</a></td><td><a href="#">13:00</a></td>
                            </tr><tr>
                                <td><a href="#">13:30</a></td><td><a href="#">14:00</a></td><td><a href="#">14:30</a></td>
                            </tr><tr>
                                <td><a href="#">15:00</a></td><td><a href="#">15:30</a></td><td><a href="#">16:00</a></td>
                            </tr><tr>
                                <td><a href="#">16:30</a></td><td><a href="#">17:00</a></td><td><a href="#">17:30</a></td>
                            </tr><tr>
                                <td><a href="#">18:00</a></td><td><a href="#">18:30</a></td><td><a href="#">19:00</a></td>
                            </tr><tr>
                                <td><a href="#">19:30</a></td><td><a href="#">20:00</a></td><td><a href="#">20:30</a></td>
                            </tr><tr>
                                <td><a href="#">21:00</a></td><td><a href="#">21:30</a></td><td><a href="#">22:00</a></td>
                            </tr><tr>
                                <td><a href="#">22:30</a></td><td><a href="#">23:00</a></td><td><a href="#">23:30</a></td>
                            </tr>
                        </tbody></table><input id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timeView_ClientState" name="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_timeView_ClientState" type="hidden" autocomplete="off">
                    </div></div></td>
                </tr>
            </tbody></table><input id="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_ClientState" name="ctl00_ContentPlaceHolder1_tpHoraFinDomingo_ClientState" type="hidden" autocomplete="off">
        </div>
Antonio Stoilkov
Telerik team
 answered on 11 May 2012
1 answer
122 views
We've started experimenting with the RadSiteMap but notice that it does not seem to work 100% with skinning, the background color never seem to be set, but the rest of the skin is applied as it should be. If we set the background ourselves, it will work. For example, applying the "Black" skin will apply everything but the background, however setting the background manually will make it display as it should. 

Update:
When applying the skin, the background is shown neither in design- or runtime mode. When setting background color manually, it will show up runtime, but not design time.
Kate
Telerik team
 answered on 11 May 2012
9 answers
123 views
I set the nav url on some tabs, and those tabs dont correspond to a pageview of any sort...I just want them to be links.

However currently when I click the tab with the navUrl set it selects it...is there a way to prevent that from happening?
Genady Sergeev
Telerik team
 answered on 11 May 2012
2 answers
347 views
I am trying to put some simple code in a label tag and I get this error (Sorry for the french language):

Erreur du serveur dans l'application '/'.

La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code. 

Détails de l'exception: System.Web.HttpException: La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).

Erreur source: 

Une exception non gérée s'est produite lors de l'exécution de la demande Web actuelle. Les informations relatives à l'origine et l'emplacement de l'exception peuvent être identifiées en utilisant la trace de la pile d'exception ci-dessous.

Trace de la pile: 

[HttpException (0x80004005): La collection Controls ne peut pas être modifiée, car le contrôle contient des blocs de code (c'est-à-dire <% ... %>).]
   System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +8689794
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +215

[HttpException (0x80004005): Please, see whether wrapping the code block, generating the exception, within RadCodeBlock resolves the error.]
   Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +280
   Telerik.Web.UI.RadAjaxControl.PerformRender() +508
   Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1800
   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +163
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
   System.Web.UI.Page.Render(HtmlTextWriter writer) +29
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266


Informations sur la version : Version Microsoft .NET Framework :2.0.50727.5448; Version ASP.NET :2.0.50727.5456
 

What I am trying to do:

<label><% Response.Write(GetMessageEx(5908, MessageFile.GesPhar).Texte)%></label>

Can someone tell me how to resolve this ? 

Thanks.
Jocelyn
Top achievements
Rank 1
 answered on 11 May 2012
1 answer
100 views
Hi,
 
  I tried the below piece of code to get the start position of the selected text in Telerik RadEditor control.

var range, text, startpos;
var doc = editor.get_document();
range = editor.getSelectedElement().createTextRange();
text = range.text; var dup = range.duplicate();
range.moveToBookmark(doc.selection.createRange().getBookmark());
dup.setEndPoint('EndToStart', range);
startpos = dup.text.length;


At first time, i get the startposition, if i clear the text again and insert some text and execute the above code, it is throwing error: object doesnt support at the location:range = editor.getSelectedElement().createTextRange();

Please help me to fix the issue.
Rumen
Telerik team
 answered on 11 May 2012
3 answers
407 views
Hi
I have creating some changes with telerik Editor like I am using each HTML tag with a speperate element and Each Element is showing in a different look using Css. I have attached some keydown and onclick events with Editor to achieve good functionality.
But I am having problem when I am currently working in a Tag than, at starting position when I press backspace key than content is Mixed with previous Element or Block. and Same when  at ending position when I press Delete key than content is Mixed with Next Element or Block.
So Please tell me how can I track Cursor position in current block.
I want to know where is my cursor on  onkeydown, onkeypress, onkeyup events.


Please attached Image to see my view of Editor.
Waiting for you Reply.


Thanks in Advance.
Best regards,
Manish
Programmer
Rumen
Telerik team
 answered on 11 May 2012
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?