Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
179 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
238 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
111 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
223 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
305 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
5 answers
341 views
Hello,

Is it possible to cause text to trim with (...) on a combo box for the visible text when the combobox is closed?

We're using the combo boxes where the text can be 100 characters in length.  When selecting the items from the combo box this is not a problem because it can wrap or we can do other things.

If we have test such as:"

A really long long long long description

Instead of being just trimmed we would like it to display

A really long lon...   

I know how to do this for silverlight or WPF.  Can we do something with asp.net Ajax controls?
Yana
Telerik team
 answered on 28 Oct 2010
1 answer
172 views
I have a page with essentially three user controls:
1) Contains only a listbox for selection of a location
2) Contains only a date picker.
3) Contains a grid which dynamically changes based on the selections above.

For the date picker we're limiting selection to the "first" day of the week, which may be different depending on the location.  The styling of the first day is different than other days so users know what can be clicked.  So there is an event attached to 4-5 dates per month, and some custom styling.

If date selection is limited to something like 2 months back and 1 month forward, the unique styling is limited, so the control weighs in at only about 11k.  Recently the client asked to allow selection to go back up to one  year back and any time in the future.  After this change the control consumed close to 7MB and overall app performance tanked.  The client is now reconsidering whether that's a "nice to have" feature or a real requirement.  I suspect they will prefer better performance over a long-term date selection.

But I'd like to work out the best way to approach this.  I'm thinking I can limit the control to a few months back and forward, and when they click on Previous or Next outside of the current scope, I can use code behind to regenerate the control with a wider range in the chosen direction.  But that requires more postbacks and that itself will affect performance.

So is there an elegant way to go about managing this?  What about some in-depth detail on doing this on the client side?  Is this a good application for some rigorous JavaScript?

Another thing I'm thinking is that for this specific application we don't really need to see every day of every week, since they can only select one day from any week.  Can we limit the number of days displayed in the calendar control, or might I need to create/find a custom control that elegantly renders only the first day of every week?

Thanks!
Dimo
Telerik team
 answered on 28 Oct 2010
2 answers
172 views
I'm looking for a way to take the selected file in teh FileExplorer and grab it's file path and make it availble in the clipboard as a copy/paste.

If the file has been uploaded to a folder location like /Documents/Secured/Downloads/ and the file name is Fall2010.pdf. I want to be able to copy that full path including the filename and paste the text (not the actual file) into a text box in another window of my CMS tool.

I have a working solution using the zeroClipboard solution, Flash and jQuery. It works but several of my users are running into a problem where the computer clipboard is not updating and the copy of a new file path is failing. I've reinstalled Flash on those PC's and it's still very hit or miss.


Are there any methods already available in the FileExplorer that I may be overlooking? Has anyone implemented a different solution that works?


Looking closer at the tool, I see that the current folder path is displayed below the menu bar. But when I select a file the path doesn't update. That would be a good workaround if the path updated. I'll look at the docs and forum posts to see if I can do this.
Craig Tarr
Top achievements
Rank 2
 answered on 28 Oct 2010
1 answer
143 views
Please see attached. When I click on the dropdown list inside the radtoolbarbutton itemtemplate, the entire toolbarbutton closes. How do I keep it open? I only want it to close if the user clicks outside of the radtoolbarbutton area.

Thanks!
Yana
Telerik team
 answered on 28 Oct 2010
3 answers
236 views
I have a page that is fairly large and broken up into tabs with RadTabStrip and RadMultiPage. Each PageView in the multipage is a usercontrol. The hosting page uses MS Ajax to host a javascript application that the child usercontrols leverage. So it's a fairly complex page. To make matters worse I have a scenario where I need to postback and load two more tabs and make one of those tabs and the corresponding multipage the active tab. I use RadAjaxManager to do this. The button that initiates this action is in a RadToolBar.

I have two AjaxSettings that wire up the toolbar to the tabstrip and the multipage control. The only way I've been able to get it to work is to wire up the ajax setting to the RadMultiPage control. The downside to this is that it is very slow now when anything is done in the toolbar because it has to reload the entire multipage rather than just the appropriate portions. On one hand it makes sense that the ajax setting has to be wired up to the entire multipage control, but I sure wish it didn't have to be and figured I'd see if someone had a better idea on how to do this.

Another reason why I'm asking is that I get the pesky IE prompt "a script on this page is causing internet explorer to run slowly" which I'm sure has to do with all the javascript I have in the hosting page and the usercontrols that have to be reloaded each time a toolbar button is pressed.

Note that I can't use the RadMultiPage capability of loading each page on demand because I need the switching of tabs be really fast (except for the two tabs that are loaded by the toolbar buton). My users are on the phone with customers when they are on this page so they need to be able to switch around really fast to enter data or answer questions.
Sathish
Top achievements
Rank 1
 answered on 28 Oct 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
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
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?