Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
374 views
I need to put the file upload folder outside my website folder, so I implement RadFileExplorer with physical and shared folder's paths according to the following post. The RadFileExplorer control is loaded, but all function buttons (New folder, delete and upload...) are not clickable (greyed out). Is it related to folder permissions? Can you help? Thanks.

http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx
Fiko
Telerik team
 answered on 11 Nov 2010
8 answers
299 views
Stream theStream = FileUpload1.PostedFile.InputStream;
               int size = Convert.ToInt32(FileUpload1.PostedFile.InputStream.Length + 1);
               Byte[] rtf = new Byte[FileUpload1.PostedFile.InputStream.Length+1];
               theStream.Read(rtf, 0, size);
               string s = System.Text.Encoding.Default.GetString(rtf);
               RadEditor1.LoadRtfContent(s);

when i try to import a rtf file and load it i get the following error,,
a text cannot appear on root level, must be child of a group: ''

pls help me out ..

Warm Regards
Gokoulane Ravi
TTCPL
Dobromir
Telerik team
 answered on 11 Nov 2010
1 answer
47 views
Hello
I have a screen with a RadListBox where users are able to search through the list with a button and a search button below. The user enters the search value and fact find.
I am able to find the right items with my search button and using the following method "FindItem" of control.

My problem is that if I have a scrollbar because I have a lot of information in the list find the item is in the bottom of the list, the control does not set the list to see who is selected by programming .

If it is not clear, I have an example I can send you.
Genady Sergeev
Telerik team
 answered on 11 Nov 2010
1 answer
129 views
Hi, I've been working in an application with Q2 of Telerik Ajax for some time without problems, but now I've installed new version of Telerik ASP.Net Ajax controls (Q3) and now when I run my application I received the next error after clicking in Login link:

The style property 'CssClass' cannot be used while RenderOuterTable is disabled on the Login control with ID 'LoginUser'.

This has been the only change to my application.
Any idea?
Regards
Jose

Update: If I remove my RadFormDecorator from my Master Page all works fine again:

        <telerik:RadFormDecorator ID="QuasarRadFormDecorator" runat="server" DecoratedControls="All" />
Lini
Telerik team
 answered on 11 Nov 2010
4 answers
235 views
Hello all.

I'm using nested grids to add, edit and delete data.  It was working fine, and I've AJAX'd it up.  Then the requirements changed and a RadioButtonList (StudyPeriodID) was required in the FormTemplate for the top level of data.  This has thrown up a problem for adding a new record, as it errors out with:

'StudyPeriodID' has a SelectedValue which is invalid because it does not exist in the list of items.

As the edit and add new use the same FormTemplate, the code to display an existing record (with a StudyPeriodID value) doesn't work for showing a blank form to add a new record.

Code below:

<telerik:RadGrid ID="grdProfileIntakes" AutoGenerateColumns="False" ItemStyle-VerticalAlign="Top"
      OnNeedDataSource="grdProfileIntakes_NeedDataSource" ShowStatusBar="true"
    GridLines="None" OnItemDataBound="grdProfileIntakes_ItemDataBound"
           OnDetailTableDataBind="grdProfileIntakes_DetailDataBind" runat="server" >
<MasterTableView
    DataKeyNames="IntakeId" CommandItemDisplay="TopAndBottom"
    NoMasterRecordsText="No Intakes to display."
    Height="100%" Width="100%" ItemStyle-VerticalAlign="Top">
    <RowIndicatorColumn Visible="True" />
 
    <CommandItemSettings AddNewRecordText="Add new intake" />
    <ExpandCollapseColumn Visible="True" />
    <Columns>
        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="btnEditIntake" />
        <telerik:GridBoundColumn DataField="IntakeTitle"
            HeaderText="Title" SortExpression="IntakeTitle"
            UniqueName="IntakeTitle" />
        <telerik:GridBoundColumn DataField="StudyPeriodLabel"
            HeaderText="Study Period" SortExpression="StudyPeriodLabel"
            UniqueName="StudyPeriodLabel" />
    </Columns>
     
    <EditFormSettings EditFormType="Template">
        <EditColumn UniqueName="IntakeEditColumn"></EditColumn>
        <FormTemplate>
            <table border="0" cellpadding="2" width="500px">
                    <tr>
                        <td width="50px"><asp:Label ID="Label5" AssociatedControlID="IntakeTitle" runat="server">Title:</asp:Label></td>
                        <td width="200px">
                            <asp:TextBox ID="IntakeTitle" Width="150px"
                              Text='<%# Bind("IntakeTitle") %>' TextMode="SingleLine" runat="server"
                                MaxLength="20" />
                        </td>
                    </tr>
                    <tr>
                        <td width="50"><asp:Label ID="Label1" AssociatedControlID="StudyPeriodID" runat="server">Study Period:</asp:Label></td>
                        <td width="200px">
                            <asp:RadioButtonList ID="StudyPeriodID" DataSourceID="odsStudyPeriods" SelectedValue='<%# GetRadioValue(Eval("StudyPeriodId")) %>' DataTextField="StudyPeriodLabel" DataValueField="StudyPeriodID" AppendDataBoundItems="true" runat="server" />
                        </td>
                    </tr>
           
</table>
                                     
            <asp:Button ID="btnIntakeUpdate" CommandName="Update" CommandArgument="Intake"
                Text="Save" runat="server" CausesValidation="true"/>
            <asp:Button ID="btnIntakeCancel" CommandName="Cancel"
                Text="Cancel" runat="server" CausesValidation="false"/>
            <asp:Button ID="btnIntakeDelete" CommandName="Delete" CommandArgument="Intake" OnClientClick="if(!confirm('Delete this Intake from the profile?')) return false;"
                Text="Delete" runat="server" CausesValidation="false"/>
        </FormTemplate>
    </EditFormSettings>
 
</MasterTableView>
</telerik:RadGrid>

I have removed the sub-level grid, and a bunch of irrelevant columns and suchlike for brevity.

The problem is with the StudyPeriodID RadioButtonList.  How do I get it to ignore SelectedValue when creating a new record, but use it when editing an existing record?  I have tried:

1. Using ItemDataBound to catch the event and avoid the binding.  Unfortunately I couldn't see how to detect the Add New event.  All the documentation I found was for editing.  Hence this code:
protected void grdProfileIntakes_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if ((e.Item is GridEditFormItem) && (!e.Item.IsInEditMode))
            {
                GridEditFormItem editFormItem = (GridEditFormItem)e.Item;
                RadioButtonList studyPeriod = (RadioButtonList)editFormItem.FindControl("StudyPeriodID");
                if (studyPeriod != null)
                {
                    studyPeriod.ClearSelection();
                }
            }
        }
doesn't work because e.Item is not a GridEditFormItem, and IsInEditMode is false.

2. I tried using a custom function on the binding.  So in the ASPX file you see
<asp:RadioButtonList ID="StudyPeriodID" DataSourceID="odsStudyPeriods" SelectedValue='<%# GetRadioValue(Eval("StudyPeriodId")) %>' DataTextField="StudyPeriodLabel" DataValueField="StudyPeriodID" AppendDataBoundItems="true" runat="server" />
where GetRadioValue is
protected int GetRadioValue(object val)
        {
            if (val.ToString() == string.Empty)
            {
                return -1;
            }
            else
            {
                return CommonFunctions.IntOr0(val.ToString());
            }
        }
but this isn't working either.

Am I going about this the wrong way?

Thanks in advance

Kit
Kit
Top achievements
Rank 1
 answered on 11 Nov 2010
1 answer
55 views
This Example site for show how this problem is going on.
http://www.xn--q3cpb7aq3d2cub8b.com/tonman/Default.aspx


This example project so simple code just click that button and show radtooltip if correctly.
But if  try to access above link with IE8 .0.7600 i got js error about.

Message: Access is denied.

URI: http://www.xn--q3cpb7aq3d2cub8b.com/tonman/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3ath%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2

this problem is not get with ie8 compatiblility mode and any browser such as firefox chrome safari etc.. 

Web.config is from generate tool.
my Telerik Web UI Version : Telerik.Web.UI, Version=2009.3.1314.35,

 

public partial class Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
  
    }
  
    protected void Button1_Click(object sender, EventArgs e)
    {
        RadToolTip1.Show();
    }
}
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="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></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" />
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
      
    <div>
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
  
  
        <telerik:RadToolTip ID="RadToolTip1" runat="server" Height="310px" 
            Skin="Forest" Width="417px" Position="Center">
            Example ToolTip
        </telerik:RadToolTip>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
          
        </telerik:RadAjaxPanel>
    </div>
    </form>
</body>
</html>

 

 

 

Svetlina Anati
Telerik team
 answered on 11 Nov 2010
1 answer
170 views
hello,


find enclose  2 screenshot with the issue i have. I got a grid view with around 40 columns... so  i see well all my columns when i scroll.
When i group by any of those columns, then the grid looks wierd.

It does the grouping but it looks like the grid try to fit all the remaining columns in the grid area, you can see the horizontal scroll fit all the column in the area.

Why i dont see all the columns spread... is there any property to set ?

thanks.


Radoslav
Telerik team
 answered on 11 Nov 2010
2 answers
88 views
I have a site that needs to use a DOCTYPE of of HTML 4.0 Transitional as it contains lots of user generated content that does not display properly in XHTML 1.0 Transitional.

I have a vertical menu to which I have added style="white-space:normal" so that items within it wrap. This all works fine in Chrome, Firefox and Safari but in IE8 the menu items do not wrap.

Any ideas how I can fix this?

Below is an aspx page  that demonstrates this

<%@ Page Language="C#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
      </telerik:RadScriptManager>
      
      <telerik:RadMenu ID="RadMenu1" Runat="server" Flow="Vertical" Width="100px">
        <Items>
          <telerik:RadMenuItem runat="server" Text="This is the first very long menu item" style="white-space:normal"></telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server" Text="This is the second very long menu item" style="white-space:normal"></telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server" Text="This is the third very long menu item" style="white-space:normal"></telerik:RadMenuItem>
        </Items>
      </telerik:RadMenu>
     </div>
    </form>
</body>
</html>


Thanks,

Paul Cripps



Paul
Top achievements
Rank 1
 answered on 11 Nov 2010
2 answers
125 views
Greetings

I am using RadWindow to add new node to the RadTreeView , after that i refresh the parent page to get new node from the database.

the issue is : i want the parent node of the new node i added to be Expanded after the page refresh .

Thanks in Advance .
Nikolay Tsenkov
Telerik team
 answered on 11 Nov 2010
0 answers
112 views
In Q3 2010, the default height of all decorated by RadFormDecorator texboxes (input[type="text|password"]) was changed from 19px to 22px so that their size is identical to the size of Telerik RadInput controls.

If you want to revert back the textboxes height to their previous dimensions, use the CSS style below:

<style type="text/css">
    /* Sets height of 22px to text boxes */
    .RadForm.rfdTextbox input[type="text"], .RadForm.rfdTextbox input[type="password"]
    {
        padding-top: 1px !important;
        padding-bottom: 1px !important;
    }
</style>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 11 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?