Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
133 views
I keep my radEditor configuration in a.skin file. I have tried to set the allowed file extensions in the skin file using this syntax:

<DocumentManager UploadPaths="~/Docs" ViewPaths="~/Docs" DeletePaths="~/Docs" MaxUploadFileSize="1100000" SearchPatterns="*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.zip"/>

It does not work. I use the radEditor in multiple locations within the site, so I do not want to set the searchPatterns for each instance. How can I achieve this?

Thanks
Stewart Ellis
Top achievements
Rank 1
 answered on 13 Dec 2010
4 answers
98 views

Hi,

We have a strange behavior with the target attribute on links: 
- When we add a link in HTML mode an specify a target attribute other than "_blank" then switch to the Preview mode and back to the HTML mode, the attribute is renamed original_target=... and a new target attribute is added an it's value is always "_blank". Lik this:

<a href="http://www.google.com/" target="_blank" original_target="_top">www.google.com</a>

We had this issue while using version 5.7.1 and we've been told to upgrade to 5.8.4 but after the upgrade the problem is still present.

What should I do ?

Sébastien Nunes
Top achievements
Rank 1
 answered on 13 Dec 2010
1 answer
46 views
Hi,

just wanted to expand my panelbar client side and found the code in the online documentation. But it didn't work, but i i found another working way.

- not working:

http://www.telerik.com/help/aspnet-ajax/panel_clientsidebasics.html

function expandItem(text)
{
var panelBar = $find("<%= RadPanelBar1.ClientID %>");
var item
= panelBar.findItemByText(text);
if (item)
{
  
item.expand();
}
else
{
  
alert("Item with text not found.");
}
}


- working:

function ExpandPanelBarItem()
            {
                var panelBar = $find("<%= RadPanelBar1.ClientID %>");
                panelBar.get_allItems()[0].expand();
            }

(Care -> in this example this is enough because its just 1 panelbaritem in the panelbar which i want to be opened.)

- Mario
Yana
Telerik team
 answered on 13 Dec 2010
3 answers
106 views
Hello,

I am grouping my appointments by a resource: 'Rooms'.

There are three Rooms and when I insert an appointment in say, 'Mr. Smith's Room', I want to be able to obtain the value: 'Mr. Smith's Room' in my 'OnClientAppointmentInserting' function.

How can I achieve this?

Regards,
Anthony
Anthony
Top achievements
Rank 1
 answered on 13 Dec 2010
3 answers
2.2K+ views
I am using Custom Dropdown Filter for a template comun in detail grid , the dropdown is coming fine but when i selected value to filter i am getting the below error
Unable to cast object of type 'System.Web.UI.WebControls.TextBox' to type 'Telerik.WebControls.RadComboBox'.
the same thing working fine with parent grid but failing in Detail Grid.

Can anyone help me to resolve this issue.
Radoslav
Telerik team
 answered on 13 Dec 2010
3 answers
171 views
Hi,

When i am using add and edit in radgrid i am using Validation summary. validation summary showing error message correctly. but the image has been displayed. i want display error message in bulletList mode without image.

How to i get this validationSummary in BulletList without Image.


Here this is the code what i am using,

 <asp:ValidationSummary ID="vsDepError" runat="server" Font-Names="Verdana" Font-Size="8pt"
                                            Style="text-align: left" DisplayMode="BulletList" ValidationGroup="ValidateDep" />

And also i have attached image.

Please give me a tips.

Thanks in Advance,
Dhamu
Dhamodharan
Top achievements
Rank 1
 answered on 13 Dec 2010
1 answer
59 views
Hi,
I am new to telerik. Is there is a way to directly get an array of unselected nodes in clientside without doing get_allnodes()-get_selectednodes();
Is there is a way like get_unselectednodes()?
Thanks.
Dimitar Terziev
Telerik team
 answered on 13 Dec 2010
1 answer
56 views
Hello

Good Day!

I have a problem with my RadEditor when we use Spelling Checker.
The problem is that when I press the Spelling Checker toolbar, the height of the Editor adjust. It will make its height bigger but i have seen in a demo:

http://demos.telerik.com/aspnet-ajax/editor/examples/spellchecker/defaultcs.aspx

that when i press the Spelling checker, the content of the editor adjust. This is very helpfull for me since i dont want to adjust its height during Spelling Checking...

Thanks you

Erwin


Rumen
Telerik team
 answered on 13 Dec 2010
1 answer
238 views
I have a .ASPX page that is loaded server side using the ContentURL= property, server side when the user clicks on a tab using the RadTabStrip click event:

 protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        RadPageView pageView = AddPageView(e.Tab);
       
        switch (e.Tab.PageViewID)
        {
            case "DriverList":
                pageView.ContentUrl = "DriverList.aspx";
                break;
        }

        e.Tab.PageView.Selected = true;
    }


Inside the DriverList.aspx page I have a javascript function which I would like to call from the parent page where the MultiPage/PageView control is situated using client-side javascript.

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript">

            $(window).load(function () {
                window.parent.parent.HideLoadingPanel('DataPane');
            });

            function showAlert() {
                alert("Here");
            }
        </script>


I'm trying to call this javascript function from the onTabSelected client side event on the parent page:

function onTabSelected(sender, args) {
    var tab = args.get_tab();
    var value = tab.get_value();
    if (tab.get_pageViewID()) {

        var pageView = document.getElementById(tab.get_pageViewID());
        var contentWindow = pageView.getExtContentElement();
        contentWindow.showAlert();

    }
}


This is not working. Any advice ?
Dimitar Terziev
Telerik team
 answered on 13 Dec 2010
8 answers
267 views
Hi,

I've found that while a RadButton will trigger AJAX calls - the loading panel will show and the codebehind code will all trigger, when it comes to updating controls on the webpage that doesn't happen.

Interestingly adding some javascript to the responsescripts of the ajaxmanager does work.

In the example that I've done below there are two buttons.  The first is a normal button and simply updates a div with the time.  The second button is a radbutton and this one when pressed should do the same as the normal button.  The codebehind works as does the response script BUT the time is not shown...

Is there an easy to implement work around for this?

Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 13 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?