Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 views

Hello,

In Internet Explorer 8 (not a problem with FireFox 3.6.3), when inputting various TextBox fields and then clicking a "Next >>" Button, if clicking on the browser's back button, the textbox's input is cleared.  I've been taking the page apart and finally traced it to the RadFormDecorator, specifically the "Fieldset".

So, when including ControlsToSkip="Fieldset" then on back button the state remains, but otherwise it's cleared.
Here's the working example, but I lose the decoration of the fieldset:

   <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"   
      DecoratedControls="All" ControlsToSkip="Fieldset" Skin="Office2007" /> 
   <fieldset> 
      <legend>Information</legend> 
      <telerik:RadTextBox ID="RadTextBox1" runat="server" /> 
   </fieldset> 
   <asp:Button ID="Button1" runat="server" Text="Next >>" OnClick="Button1_Click" /> 

Any idea's why...?  Does a solution exist..?
Thank you in advance,
Ronnie
Ronnie
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
58 views
Hello, when I open Image manager , or file manager/ flash manager from Rad Editor , I can not "grab" the window and move it to where I want it , the cursor "jumps" of the window and when I release the window "jumps" back

here is a link to a video which shows the problem: Movie
Dobromir
Telerik team
 answered on 25 Jun 2010
2 answers
124 views
Here is my problem,

I have a toolbar at the top of my page and a radSplitter bellow it. The splitter consist of two radPane that will contain something. I want to make the splitter occupy 100 % of the remaning space on the page, because the toolbar occupy some height and if I collasped the bottom pane, the splitbar goes outside the page (so I can't set the height to 100%).

Here is a sample code :
<div style="height:100%"> 
       <telerik:RadToolBar ID="RadToolBar1" runat="server" Width="100%"> 
            <Items> 
                <telerik:RadToolBarButton runat="server" Text="Précédent"> 
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" Text="Suivant"> 
                </telerik:RadToolBarButton> 
            </Items> 
        </telerik:RadToolBar> 
        <telerik:RadSplitter ID="RadSplitter1" Runat="server" Orientation="Horizontal" Height="100%" Width="100%"> 
        <telerik:RadPane ID="RadPane1" Runat="server" Height="50%"> 
            <p>Pane 1</p> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="RadSplitBar1" Runat="server" CollapseMode="Backward"> 
        </telerik:RadSplitBar> 
        <telerik:RadPane ID="RadPane2" Runat="server" Height="50%" Collapsed="True"> 
            <p>Pane 2</p> 
        </telerik:RadPane> 
        </telerik:RadSplitter> 
    </div> 

Thanks
Sébastien
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
142 views
I have a tabstrip that is associated with a MultiPageView. The tabs are created clientside from an XML data file that includes the associated PageViewID.

The tabs are all created correctly but the XML also indicates which tab is to be selected. The set_selected (true) method of this tab is called once the tabstrip has been completed and triggers an event handler associated with the OnClientTabSelected event. The selected tab is highlighted correctly but the PageView shown is always the one associated with the first tab.

If you subsequently click on other tabs everything works OK and the corresponding pageview is shown so the tabs have been setup correctly. It is only following the initial setup that the correct pageview is not shown.

Do you have any suggestions as to what I might be doing wrong?

Bob Boffin

Using Telerik.Web.UI version 2008.3.1314.35
Bob Boffin
Top achievements
Rank 2
 answered on 25 Jun 2010
3 answers
362 views
Hi,

I am getting the above error when trying to run my application. I have AJAX Control Toolkit 3.5 April 2010 Release and RadControls for ASP.NET AJAX Q1 2010 NET3.5 installed. I am using a RadScriptManager in my MasterPage as shown below:

<body> 
    <form id="form1" runat="server">  
        <div style="text-align: center; padding-top: 5px;">  
          
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>  
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"/> 

My web.config has the following sections:
<pages> 
            <controls> 
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            </controls> 
        </pages> 
<httpHandlers> 
            <remove verb="*" path="*.asmx"/>  
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
            <add verb="GET,HEAD" path="ScriptResource.axd" 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" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>  
        </httpHandlers> 
<httpModules> 
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>  
        </httpModules> 

The only solution I have found is to replace the RadScriptManager with the ToolkitScriptManager, but I then get the following error:

"Microsoft JScript runtime error: Sys.InvalidOperationException: Two components with the same id 'ctl00_ContentPlaceHolder2_RadMultiPage1' can't be added to the application."

There is only one control named RadMultiPage1 in the application.

Hope someone can help.
Pavlina
Telerik team
 answered on 25 Jun 2010
2 answers
114 views
Howdy!

So my customer just came across a rather interesting issue. Using the code snippet button, if they click on the edge of the icon, see attached screenshot028, the editor pastes in the last used code snippet. It will also paste it in if we click the code snippet icon on the left of the button. If we click the little black triangle, attached screenshot029, it gives us the menu. I was able to recreate this on the Telerik's website.

Any chance we can set the entire button to show the menu regardless?

Thanks,
Delphi
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
100 views
Howdy,

I have the following class in my editor CSS file

body

{

 

font-family: Times New Roman !important;

 

 

font-size: 12pt !important;

 

 

background-image: url(policy_bg.jpg) !important;

 

 

background-repeat:repeat-y !important;

 

 

background-position:right !important

 

}



I can't get the background to show! I also tried

RadEditor1.CssFiles.Clear();

RadEditor1.CssFiles.Add(

"edit.css");

 


And that didn't appear to work either.

My background is plain white, help!
Delphi
Top achievements
Rank 1
 answered on 25 Jun 2010
1 answer
156 views
I have my FileExplorer nested in a RadWindow, but no matter what I try, I can't open folders?

I can create/delete a folder, but when I double click or right click>open, nothing happens? Therefore I don't think it's a rights issue, and I have had success moving the FileExplorer unchanged to an empty page outside any RadWindow, where I could open the folders no problem.

My code is:

    <telerik:RadWindow runat="server"  
        Width="800px" Height="541px" VisibleStatusbar="false" 
        ID="winFileExplorer" Modal="true" Behaviors="Close" 
        Title="Select image"> 
        <ContentTemplate> 
            <div class="floatr" style="width:210px;"> 
            <fieldset> 
                <legend>Preview</legend> 
                <div class="c"><asp:Image ID="imgPreview" runat="server" style="margin:10px 0;max-width:180px;max-height:500px;" /></div> 
            </fieldset> 
            </div> 
            <telerik:RadFileExplorer ID="fileExplorer" runat="server"  
                Width="570" TreePaneWidth="150"  
                ExplorerMode="Default" VisibleControls="ContextMenus,Toolbar,Grid" DisplayUpFolderItem="true" 
                EnableOpenFile="true" EnableCreateNewFolder="true" 
                OnClientItemSelected="OnClientItemSelected" OnClientFileOpen="OnFileOpen"> 
            </telerik:RadFileExplorer> 
        </ContentTemplate> 
    </telerik:RadWindow> 

Paths are set server-side, but there's no change if I put them in directly. What could be wrong??
Fiko
Telerik team
 answered on 25 Jun 2010
8 answers
394 views

If you create a menu, you are given the ability to create separators which come across as class="rmSeparator" in the html, but if you link your menu to an xml datasource, you lose this ability... how do you add separators if you are linking to an xml datasource?

XML Example without separators below:

<?xml version="1.0" encoding="utf-8" ?> 
<Items Text="">  
  <Item Text="Visitors" Url="" Level="Lvl1" > 
    <Item Text="Event Calendar" Url="#" Level="Lvl2" /> 
    <Item Text="City Road Map" Url="#" Level="Lvl2" /> 
    <Item Text="Contact Us" Url="#" Level="Lvl2" /> 
    <Item Text="Historic Preservation" Url="#" Level="Lvl2" /> 
    <Item Text="Interactive Maps" Url="#" Level="Lvl2" /> 
    <Item Text="Latest News" Url="#" Level="Lvl2" /> 
    <Item Text="Ocala Municipal Arts Commission" Url="#" Level="Lvl2" /> 
    <Item Text="Security &amp; Hurricane Information" Url="#" Level="Lvl2" /> 
  </Item> 
.....

Do you add them to the XML somehow??
Yana
Telerik team
 answered on 25 Jun 2010
1 answer
312 views
I need to save the value of my RadComboBox to a SQL Server Database.  When the form is updated, the value of the RadCombo is always blank, even after I select a value.  Also,  I have no option in the .aspx for assigning a SelectedValue.  Here is a code snippet:

<

 

 

telerik:GridTemplateColumn HeaderText="Job No" DataField="JOB_NO">

 

 

 

<ItemTemplate> 

 

<%# DataBinder.Eval(Container.DataItem, "JOB_NO")%>

 

 

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID="cboJob" runat="server" Sort="Ascending" AppendDataBoundItems="true" EnableLoadOnDemand="true" Width="350px" Height="140px" DataValueField="JOB_NO" EmptyMessage="Select a Job" AutoPostBack="true" DataTextField="JOB_NO" MarkFirstMatch="true" AllowCustomText="false" DropDownWidth="300px"

 

 

 

OnItemDataBound="cboJob_ItemDataBound" HighlightTemplatedItems="true" >

 

 

 

 

 

<HeaderTemplate>
<table style="width:300px; text-align:left">

 

 

 

 

<tr>

 

<td style="width:100px;">Job No</td>

 

 

 

<td style="width:200px;">Part No</td>

 

 

</tr>

 

</table>

 

 

</HeaderTemplate>

 

 

 

 

 

 

<ItemTemplate>

 

 

 

<table style="width:300px; text-align:left">
<tr>

 

 

<td style="width:100px;"><%# DataBinder.Eval(Container.DataItem,"JOB_NO")%></td> <td style="width:300px;"><%# DataBinder.Eval(Container.DataItem,"JOBR_PART_NO")%></td>

 

 

</tr>

 

 

</table>

 

 

 

</ItemTemplate>

 

 

</telerik:RadComboBox>

 

</EditItemTemplate>

 

 

 

 

</telerik:GridTemplateColumn>

//******In the C# code behind I have the following code in the ItemDataBound for the RadGrid:
 

if

 

 

(e.Item is GridEditFormItem && e.Item.IsInEditMode)

 

 

 

{

 

 

 

GridEditFormItem editFormItem = (GridEditFormItem)e.Item;

 

TextBox txt = (TextBox)editFormItem.FindControl("CUST_ID");

 

 

 

 

GridEditableItem edititem = e.Item as GridEditableItem;

 

RadComboBox combobox = (RadComboBox)edititem.FindControl("cboJob");

 

 

 

 

DataTable dt = cData.getDataTable("SELECT DISTINCT JOB_NO, JOBR_PART_NO FROM JOB_REVISION WHERE CUST_ID = '" + txt.Text.ToString() + "' ORDER BY JOB_NO", "JOB_REVISION");

 

combobox.DataSource= dt;

combobox.DataTextField = 

 

"JOB_NO";

 

 

combobox.DataValueField = 

 

"JOB_NO";

 

 

combobox.DataBind();

 

combobox.SelectedValue =

 

DataBinder.Eval(e.Item.DataItem, "JOB_NO").ToString();

 

 

 

//*******I also have the following code for the combo:
 

 

 

 

 

protected void cboJob_ItemDataBound(object sender, RadComboBoxItemEventArgs e)

{

e.Item.Text = ((D

 

ataRowView)e.Item.DataItem)["JOB_NO"].ToString();

 

 

 

e.Item.Value = ((

 

DataRowView)e.Item.DataItem)["JOB_NO"].ToString();

 

 

 

e.Item.DataBind();

}

 

 

 

 

 

 

Kalina
Telerik team
 answered on 25 Jun 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?