Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
If I put a RadSplitter inside a DIV that has margins set on it, the RadSplitter behaves as expected. However, if the RadSplitter is nested inside another RadSplitter (and still inside a DIV with margins set on it) then the width gets messed up.

Here is an example:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Sample.aspx.cs" Inherits="Sample" %>
  
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
  
    <telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Horizontal" Height="100%" Width="100%">
        <telerik:RadPane ID="ContentPane" runat="server">
            <div style="margin: 0 30px 0 30px;">
                <telerik:RadSplitter ID="RadSplitter1" runat="server" Orientation="Horizontal" Height="100%" Width="100%">
                    <telerik:RadPane ID="TopPane" runat="server" Height="50%">
                        Top Pane
                    </telerik:RadPane>
                    <telerik:RadSplitBar ID="SplitBar" runat="server" />
                    <telerik:RadPane ID="BottomPane" runat="server" Height="50%">
                        Bottom Pane
                    </telerik:RadPane>
                </telerik:RadSplitter>
            </div>
        </telerik:RadPane>
    </telerik:RadSplitter>
    </form>
</body>
</html>

Naturally the actual layout is much more complex, but I've narrowed my problem down to this sample code. I would expect this page to render without any scrollbars at all. Is there a way to accomplish this?

Scott
Dobromir
Telerik team
 answered on 28 Oct 2010
4 answers
2.0K+ views
Here's a thing.

I have a grid on which I display a GridClientSelectColumn.

In my ItemDataBound event handler, I do some testing to see if the user actually has the rights to carry out the operation they are proposing on each row, and if they don't I disable the checkbox.

All good so far.

Prompted my a customer request I added the "Select All" option.

Now if the user checks the checkbox in the header of the GridClientSelectColumn, the rows where the checkbox is disabled don't  - as you would expect - have the checkboxes checked but the grid STILL SELECTS THE COLUMN.

Now surely that can't be right!

-- 
Stuart
Martin
Telerik team
 answered on 28 Oct 2010
6 answers
658 views
How to use an Image button as a hyperlink in a radGrid?

I have a grid that displays customerID, firstname, lastname. The customerID field contains "View Details" image. When I click the "View Details" image button, I want the user to be redirected to: customerdetails.aspx?customerID = ALFKI

The following code does not work for an imageButton:-
CommandArgument="customerdetails.aspx?customerID=customerID.....does not work.

Appreciate your help.

Luv.

Karl
Top achievements
Rank 1
 answered on 28 Oct 2010
6 answers
210 views
Good Day,
I have an issue, I'm editing a rad grid when I click the edit button I able to edit the complete row (horizontal), but I want to see the edition fields in a vertical order.  I attached a couple of pictures. I want so see it in vertical order.
Thanks in advance.
The Best.

William

<telerik:RadGrid  runat="server" ID="grid" AutoGenerateColumns="false"
    AllowPaging="true" OnNeedDataSource="grid_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand"
    OnInsertCommand="RadGrid1_InsertCommand"  OnItemCommand="RadGrid1_ItemCommand"
    onpageindexchanged="grid_PageIndexChanged"  OnItemDataBound="RadGrid1_ItemDataBound" Culture="es-CO" >
    <MasterTableView DataKeyNames="" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="InPlace">
        <Columns>         
        <telerik:GridTemplateColumn  UniqueName="CompanyID" DataField="CompanyID" HeaderText="Sociedad"
             ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >              
              <EditItemTemplate>   
                        <asp:DropDownList CssClass="dropdownlist" ID="ddlContainer" runat="server"></asp:DropDownList>   
                    </EditItemTemplate>
             </telerik:GridTemplateColumn>
      <telerik:GridBoundColumn DataField="BranchID" HeaderText="Sucursal" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>  
      <telerik:GridBoundColumn DataField="CenterCostID" HeaderText="Centro de Costo" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="Descripcion" HeaderText="Descripcion" 
            ForceExtractValue="InEditMode" ConvertEmptyStringToNull="true" >
      </telerik:GridBoundColumn>      
       <telerik:GridTemplateColumn UniqueName="Active" DataField="Active" HeaderText="Activo"  >
                  <ItemTemplate>
                      <asp:CheckBox  Checked='<%#Eval("Active") %>' ID="CheckBox1" runat="server"   />
                  </ItemTemplate>
        </telerik:GridTemplateColumn>
           
       <telerik:GridEditCommandColumn ButtonType="ImageButton" />          
        </Columns>   
    </MasterTableView>
    <PagerStyle Mode="NextPrevAndNumeric" />
</telerik:RadGrid>
william
Top achievements
Rank 1
 answered on 28 Oct 2010
2 answers
139 views
Hello,

I have a RadAjaxManager in a master page, and a RadAjaxManagerProxy in a user control.  I have this setting:

<tel:RadAjaxManagerProxy ..>
<AjaxSettings>
<tel:AjaxSetting AjaxControlID="lnkCreateNew">
<UpdatedControls>
<tel:AjaxUpdatedControl ControlID="rapNewForm" />
			<tel:AjaxUpdatedControl ControlID="rtsForm" />
			<tel:AjaxUpdatedControl ControlID="rapUpdateSection" />
</UpdatedControls>
</tel:AjaxSetting>
</AjaxSettings>
</tel:RadAJaxManagerProxy>

OK, so when the create new button is clicked, the rad ajax panel is also updated, as well as a few other controls.  What I need to have happen is that when create new is clicked, a JavaScript method needs to run

I tried the following, neither work:

RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("runCallback();");
rapUpdateSection.ResponseScripts.Add("runCallback();");

I have a debugger; in that client method and nothing runs.

Any ideas?

Brian
Brian Mains
Top achievements
Rank 1
 answered on 28 Oct 2010
1 answer
149 views
i have a radgrid which is populated using the needdatasource, i then have a radfilter set to visible="false". i then have a textbox and two dropdowns that i use to filter the results in the radgrid.

all this works fine.

problem - One of the columns "Catagories" which has datafield="NodeParentId", if the results are filtered down and you just have say two records and they are both in the same cagagory, if you sort that column then it returns no records!

Does anyone have any ideas?

Heres my code

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="Controls_Search" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadCodeBlock ID="code" runat="server">
<script type="text/javascript">
 function comboLoad(sender, eventArgs) {
        sender.set_text(sender.get_items().getItem(0).get_value());
    }
 
    function StopPropagation(e) {
        if (!e) {
            e = window.event;
        }
 
        e.cancelBubble = true;
    }
 
    function nodeClicking(sender, args) {
        var comboBox = $find("<%= CategoryFilter.ClientID %>");
        var nodeValue = document.getElementById("<%= NodeValue.ClientID %>");
         
        var node = args.get_node()
        comboBox.set_text(node.get_text());       
        nodeValue.value = node.get_value();
 
        comboBox.trackChanges();
        comboBox.get_items().getItem(0).set_value(node.get_text());
        comboBox.commitChanges();
 
        comboBox.hideDropDown();
    }
 
    function FindNode() {
        var comboBox = $find("<%= CategoryFilter.ClientID %>");
        var treevw = comboBox.get_items().getItem(0).findControl("RadTree");
        var node = treevw.findNodeByValue(SelectedValue.value);
        node.select()
 
        comboBox.set_text(node.get_text());
 
        comboBox.trackChanges();
        comboBox.get_items().getItem(0).set_value(node.get_text());
        comboBox.commitChanges();
    }
   
</script>
</telerik:RadCodeBlock>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" >
    <AjaxSettings>              
        <telerik:AjaxSetting AjaxControlID="QuickSearchBox">
            <UpdatedControls>                   
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="SearchGrid">
            <UpdatedControls>                   
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting
        <telerik:AjaxSetting AjaxControlID="FilterBtn">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="TypeFilter">
            <UpdatedControls>                   
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="CategoryFilter">
            <UpdatedControls>                   
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="ResetBtn">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="SearchGrid" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                <telerik:AjaxUpdatedControl ControlID="QuickSearchBox"></telerik:AjaxUpdatedControl>
                 <telerik:AjaxUpdatedControl ControlID="CategoryFilter"></telerik:AjaxUpdatedControl>
                  <telerik:AjaxUpdatedControl ControlID="TypeFilter"></telerik:AjaxUpdatedControl>
            </UpdatedControls>
        </telerik:AjaxSetting>     
    </AjaxSettings>   
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Transparency="20" BackColor="#ffffff" runat="server">
    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." BorderWidth="0px" ImageUrl="~/Includes/images/ajax/Loading.gif" />
</telerik:RadAjaxLoadingPanel>  
<fieldset
    <asp:Label ID="SearchLabel" runat="server" AssociatedControlID="QuickSearchBox">Search Critical Care</asp:Label><br />
    <telerik:RadTextBox ID="QuickSearchBox"  runat="server"></telerik:RadTextBox><br />     
    <telerik:RadComboBox ID="TypeFilter" runat="server" OnSelectedIndexChanged="TypeFilter_SelectedIndexChanged" ></telerik:RadComboBox>
    <telerik:RadComboBox ID="CategoryFilter" runat="server"  OnClientLoad="FindNode" OnSelectedIndexChanged="CategoryFilter_SelectedIndexChanged">
    <ItemTemplate>
        <div onclick="StopPropagation(event)">
            <telerik:RadTreeView ID="CategoryTreeView" runat="server" CheckBoxes="false"  DataFieldID="NodeID" DataFieldParentID="NodeParentID" DataTextField="CategoriesName" DataValueField="NodeID" OnClientNodeClicking="nodeClicking"></telerik:RadTreeView>
        </div>
    </ItemTemplate>
    <Items>
        <telerik:RadComboBoxItem Text=""/>
    </Items>
    </telerik:RadComboBox>
    <input id="NodeValue" value="" runat="server" enableviewstate="true" type="hidden" /><br />
    <asp:Button ID="FilterBtn" OnClick="Filter_Click" runat="server" Text="Filter" />
    <asp:Button ID="ResetBtn" OnClick="Reset_Click" runat="server" Text="Reset" />
    <telerik:RadFilter ID="SearchRadFilter" runat="server" Visible="false" ShowApplyButton="true" ExpressionPreviewPosition="None" ShowLineImages="true" FilterContainerID="SearchGrid"></telerik:RadFilter>
</fieldset>
    <br />
    <br />
<telerik:RadGrid ID="SearchGrid" runat="server" MasterTableView-ViewStateMode="Enabled" OnNeedDataSource="SearchGrid_NeedDataSource" OnItemDataBound="SearchGrid_ItemDataBound" OnItemCommand="SearchGrid_ItemCommand" AllowSorting="true" AllowPaging="true" PageSize="5">
    <GroupingSettings CaseSensitive="false"/>
    <MasterTableView AutoGenerateColumns="false">   
    <Columns>
        <telerik:GridTemplateColumn HeaderText="Title" HeaderButtonType="TextButton" DataField="Title" SortExpression="Title" UniqueName="ArticleTitle" AutoPostBackOnFilter="true">
            <ItemTemplate>
                <asp:Label ID="TitleLabel" Text='<%# Eval("Title") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Date" HeaderButtonType="TextButton" DataField="Date" SortExpression="Date" UniqueName="ArticleDate" AutoPostBackOnFilter="true">
            <ItemTemplate>
                <asp:Label ID="DateLabel"  Text='<%# String.Format("{0:dd MM yyyy}",Eval("Date")) %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Synopsis" HeaderButtonType="TextButton" DataField="Synopsis" SortExpression="Synopsis" UniqueName="ArticleSynopsis" AutoPostBackOnFilter="true">
            <ItemTemplate>
                <asp:Label ID="SynopsisLabel"  Text='<%# Eval("Synopsis") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Author"  HeaderButtonType="TextButton" DataField="Author" SortExpression="Author" UniqueName="ArticleAuthor" AutoPostBackOnFilter="true">
            <ItemTemplate>
                <asp:Label ID="AuthorLabel" Text='<%# Eval("Author") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
          <telerik:GridTemplateColumn HeaderText="Category" HeaderButtonType="TextButton" DataField="NodeParentID" SortExpression="NodeParentID" UniqueName="ArticleCategory">
            <ItemTemplate>
                <asp:Label ID="CategoryLabel"  Text='<%# Eval("NodeParentID") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Link" HeaderButtonType="TextButton" DataField="Link" SortExpression="Link" UniqueName="ArticleTitle" AutoPostBackOnFilter="true">
            <ItemTemplate>
                <asp:HyperLink ID="ArticleLink" NavigateUrl='<%# Functions.GetUrl(DataBinder.Eval(Container, "DataItem.NodeAliasPath")) %>' runat="server">Read</asp:HyperLink>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn  Visible="false" HeaderText="Text" HeaderButtonType="TextButton" DataField="Text" SortExpression="Text" UniqueName="ArticleText" AutoPostBackOnFilter="true">
           <ItemTemplate>
                <asp:Label ID="TextLabel" Text='<%# Eval("Text") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>        
        <telerik:GridTemplateColumn Visible="false" HeaderText="ClassDisplayName" HeaderButtonType="TextButton" DataField="ClassDisplayName" SortExpression="ClassDisplayName" UniqueName="ArticleClassName" AutoPostBackOnFilter="true">
           <ItemTemplate>
                <asp:Label ID="ClassDisplayName" Text='<%# Eval("ClassDisplayName") %>' runat="server"></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>      
    </Columns>
    </MasterTableView>   
</telerik:RadGrid>


and c#

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
using CMS.CMSHelper;
using CMS.GlobalHelper;
using CMS.ISearchEngine;
using Telerik.Web.UI;
 
 
public partial class Controls_Search : System.Web.UI.UserControl
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadItemGroups();
            LoadDocTypes();
        }
    }
 
    void LoadItemGroups()
    {
        DataSet ds = TreeHelper.SelectNodes("/%", false, "CriticalCare.Categories", null, "NodeOrder");
 
        if (!DataHelper.DataSourceIsEmpty(ds))
        {
            RadTreeView catagoryTreeview = (RadTreeView)this.CategoryFilter.Items[0].FindControl("CategoryTreeView");
             
            int x = 0;
 
            foreach (DataRow row in ds.Tables[0].Rows)
            {
                if (ds.Tables[0].Rows[x].ItemArray.GetValue(9).ToString() == "1")
                {
                    row[9] = DBNull.Value;
                }
                x++;
            }
 
            catagoryTreeview.DataSource = ds;
            catagoryTreeview.MaxDataBindDepth = 2;
            catagoryTreeview.DataBind();
            catagoryTreeview.ExpandAllNodes();      
             
        }
   }
 
    void LoadDocTypes()
    {
        DataSet ds = TreeHelper.SelectNodes("/%", false, "CriticalCare.Conclusion;CriticalCare.Literature;CriticalCare.Theory;CriticalCare.ClinicalApps;CriticalCare.CaseStudies;CriticalCare.Downloads;CriticalCare.Video", null, "ClassDisplayName Asc", -1, true);
 
        if (!DataHelper.DataSourceIsEmpty(ds))
        {
            DataTable dt = new DataTable();
            for (int i = 0; i < ds.Tables.Count; i++)
            {
                dt.Merge(ds.Tables[i]);
            }
 
            IEnumerable<DataRow> types = (from row in dt.AsEnumerable()
                                                   group row by row.Field<string>("ClassDisplayName") into g
                                                   select g.FirstOrDefault());
 
            DataTable dtType = types.CopyToDataTable();
 
            TypeFilter.DataSource = dtType;
            TypeFilter.DataTextField = "ClassDisplayName";
            TypeFilter.DataValueField = "ClassDisplayName";
            TypeFilter.DataBind();
 
            TypeFilter.Items.Insert(0, new RadComboBoxItem("Filter by article type"));
        }
    }
 
    protected void SearchGrid_ItemCommand(object sender, GridCommandEventArgs e)
    {
        if (e.CommandName == RadGrid.SortCommandName)
        {
 
            SearchGrid.Rebind();
            SearchRadFilter.FireApplyCommand();
        }
    }
 
    protected void SearchGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        DataSet ds = TreeHelper.SelectNodes("/%", false, "CriticalCare.Conclusion;CriticalCare.Literature;CriticalCare.Theory;CriticalCare.ClinicalApps;CriticalCare.CaseStudies;CriticalCare.Downloads;CriticalCare.Video", null, "Date Asc", -1, true);
 
        if (!DataHelper.DataSourceIsEmpty(ds))
        {
            DataTable dt = new DataTable();
 
            for (int i = 0; i < ds.Tables.Count; i++)
            {
                dt.Merge(ds.Tables[i]);
            }
 
            dt.DefaultView.Sort = "Date Desc";
            SearchGrid.DataSource = dt;
            
        }
        else
        {
            SearchGrid.Visible = false;
        }      
    }
 
    protected void SearchGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridDataItem)
        {
            DataRowView dr = (DataRowView)e.Item.DataItem;
 
            GridDataItem item = (GridDataItem)e.Item;
            Label Category = item.FindControl("CategoryLabel") as Label;
            int parentid = Convert.ToInt32(dr["NodeParentID"].ToString());
            int docid = TreeHelper.SelectSingleNode(parentid).DocumentID;
            CMS.TreeEngine.TreeNode node = TreeHelper.SelectSingleDocument(docid);
            string documentname = node.DocumentName.ToString();
            Category.Text = documentname;
        }
    }
 
    protected void Filter_Click(object sender, EventArgs e)
    {
        SearchRadFilter.RootGroup.Expressions.Clear();    
 
 
        if (QuickSearchBox.Text != "")
        {
            RadFilterGroupExpression textbox = new RadFilterGroupExpression();
            textbox.GroupOperation = RadFilterGroupOperation.Or;
            RadFilterContainsFilterExpression expression1 = new RadFilterContainsFilterExpression("Synopsis");
            RadFilterContainsFilterExpression expression2 = new RadFilterContainsFilterExpression("Title");
            RadFilterContainsFilterExpression expression3 = new RadFilterContainsFilterExpression("Text");
            expression1.Value = QuickSearchBox.Text;
            expression2.Value = QuickSearchBox.Text;
            expression3.Value = QuickSearchBox.Text;
            SearchRadFilter.RootGroup.AddExpression(textbox);
            textbox.AddExpression(expression1);
            textbox.AddExpression(expression2);
            textbox.AddExpression(expression3);
        }
 
        if (TypeFilter.SelectedIndex != 0)
        {
            RadFilterGroupExpression type = new RadFilterGroupExpression();
            RadFilterContainsFilterExpression expr = new RadFilterContainsFilterExpression("ClassDisplayName");
            expr.Value = TypeFilter.SelectedValue;
            SearchRadFilter.RootGroup.AddExpression(type);
            type.AddExpression(expr);
        }
 
        if (NodeValue.Value != "")
        {
            RadFilterGroupExpression category = new RadFilterGroupExpression();
            RadFilterContainsFilterExpression expr2 = new RadFilterContainsFilterExpression("NodeParentID");
            expr2.Value = NodeValue.Value;
            SearchRadFilter.RootGroup.AddExpression(category);
            category.AddExpression(expr2);
        }
         
        SearchRadFilter.FireApplyCommand();     
    }
 
    protected void TypeFilter_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        
        
        SearchRadFilter.FireApplyCommand();
    }
 
    protected void CategoryFilter_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
         
        SearchRadFilter.FireApplyCommand();
    }
 
    protected void Reset_Click(object sender, EventArgs e)
    {
         
        SearchRadFilter.RootGroup.Expressions.Clear();
        QuickSearchBox.Text = "";
        TypeFilter.SelectedIndex = 0;
        NodeValue.Value = "";
        SearchRadFilter.FireApplyCommand();
        
    }
}
Daniel
Telerik team
 answered on 28 Oct 2010
9 answers
187 views
I am creating a gadget (a custom toolbar button) to allow users to add audio/video to an html page. My code generates the correct object/embed tag and calls insertHtml to add it to the editor. I have found two problems, which seem to be related to the ConvertToXhtml filter.

First, when the xhtml filter is not set, the <param> elements of the <object> tag get duplicated. You can reproduce this in the editor content filter demo. Turn off the xhtml filter and paste in the <object> tag below in html view. Switch to design view and back to html view. You will see the <param>s are repeated. Do it again and you will get another set. This behavior does not happen if the xhtml filter is enabled.

Next is a problem when the xhtml filter is enabled. When I insert my code (see below) with pasteHtml, the video start playing immediately (so I know the <object> tag is valid). I also put an alert() in my code so I could see exactly what was being inserted, and it matched the code below. When I switch to html view, the <param> elements have been removed. If I go back to design, the video no longer plays, since the tag is no longer valid. (Note that I am using IE for this testing.) However, if I go to html view and manually paste in the <object> tag, it works fine. I can switch to html view and the video plays - I can go back and forth and save the changes and all is well. It is only a problem if I use insertHtml to add the content. If I disable the xhtml filter, this problem does not occur.

Finally, <embed> portion contains extra attributes 'originalAttribute' and 'originalPath' when the xhtml filter is enabled. These attributes  also get repeated in the editor (like the <param>s).

I should also note that, while this example uses flowplayer, the same things seem to happen with any flash movie (and presumably with any <object> tag.

I will have to operate with the xhtml filter disabled for now, since the extra attributes and <param>s don't seem to hurt the function of the flash player. But I would really like to get this behaving properly.

Here is the <object> tag I use for this testing:
 

 

<object width="500" height="500" id="flowplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">   
<param name='movie' value='/media_player/flowplayer-3.1.5.swf'/>   
<param name='flashvars' value="config={'clip':'/media_player/video.flv'}"/>   
<embed type='application/x-shockwave-flash' width='500' height='500' 
src='/club/media_player/flowplayer-3.1.5.swf' flashvars="config={'clip':'/media_player/video.flv'}">   
</embed></object>   
   
 
 

Edit 1-31:

I have found another issue. When I use pasteHtml to insert an object tag when another object tag is already present in the html, the param elements of the new object tag are removed. I added an 'alert' in my process so I can see that the html I generate has the param elements, but when I look at the html view in the editor, the paramas are gone. I cannot reproduce this on your demo site, since the pasteHtml demo replaces the entire content of the editor, rather than inserting or appending.
Rumen
Telerik team
 answered on 28 Oct 2010
1 answer
77 views
Hi,

We are planning on using the Scheduler timeline view for large amounts of reservations and have run in to some performance problems.

We would like to show a full week in the time-line view and use a slot duration of 30 minutes. Since actually showing the whole grid of 7 days x 30 minutes makes the scheduler pretty much unusable in Internet Explorer we would like to show only a column per day but have multiple appointments per day without stacking the appointments vertically.

I have attached a modified screenshot of the example timeline view, which looks like what we are after. What I did in the example was set the rsWrap class to absolute positioning + a narrow width and setting the rsApt class to relative positioning and a width relative to the appointment duration (with Firebug).

Before we try to implement this behavior, we would like to know if anyone has already done something similar? Or has it been tried and decided that it is not possible without very large amounts of work? Are there possibly some features built in to the scheduler that would help produce this kind of behavior? Are we going to run in to trouble trying to modify the styles of the rsWrap and rsApt classes and elements?

--
Lasse
Peter
Telerik team
 answered on 28 Oct 2010
4 answers
176 views
I've installated the version Q1.2010 Service Pack1.
I wanted to use the Localization for RadEditor for Italian Language.
I've visited this page
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-for-asp-net-ajax-localizations.aspx
and I download the 099307_it-IT_App_GlobalResources.zip. (It's old but It's the only one that I could find).
I've copy the 4 files
RadEditor.Dialogs.it-IT.resx
RadEditor.Main.it-IT.resx
RadEditor.Modules.it-IT.resx
RadEditor.Tools.it-IT.resx

in
App_GlobalResources folder.

When I open the page with my RadEditor control I received an .NET Error

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources.RadEditor.Tools.resources" was correctly embedded or linked into assembly "App_GlobalResources.zltqkje5" at compile time, or that all the satellite assemblies required are loadable and fully signed.

The file resx is too old for this version? Where I can download the latest version of this files? Or I did a mistake?

Thanks,
Marco
Rumen
Telerik team
 answered on 28 Oct 2010
6 answers
243 views
Is it possible to set the scheduler's SelectedDate with a client side javascript call?
DoomerDGR8
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 28 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?