Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
221 views
Hello,

Is it possible programmatically shows the Fileexplorer sorted by filename?

Thank you

Dobromir
Telerik team
 answered on 20 Mar 2012
6 answers
177 views
Is there a setting through which the radeditor does not change the content at all??

if my user enter's
<test>
</test>
i want it to remain so and not change to
<test />

This happen's on postback (of the other button's which are there on the page) as well as on save button click. i am new to radeditor, could you please help me out?

Rumen
Telerik team
 answered on 20 Mar 2012
2 answers
133 views
Hi,

I have a RadDock that has a user control inside it. The control is embedded in a RadAjaxPanel. The rough structure is something like this

<telerik:RadDock id="xxxxx"..........................>
<ContentTemplate>
     <telerik:RadAjaxPanel id="xxxx"......................>
         <Usercontrol:Mycontrol   Id="xxx" runat="server" onButtonClick="Button_Click"............ />
     </telerik:RadAjaxPanel>
 </contentTemplate>
</telerik:RadDock>


Whenver the Button_Click event is fired, I want the RadDock title to be updated.
Is there a way we could achieve this ?

Phil
Top achievements
Rank 2
 answered on 20 Mar 2012
1 answer
87 views
Hi Team,

In your site describe OnClientSelectionChange - fired when the selection within the editor content area has changed

In my case, ONClientSelection change event fired , even the drop down is selected from the tool bar.
I need to fire the event only the editor content area is selceted.

Could you suggest me, which event is used.

Thanks
Uma
Rumen
Telerik team
 answered on 20 Mar 2012
1 answer
85 views
Hi,

all Demos on AJAX Q1 2012 Website crash when we use it behind a Content Firewall.
Some of the example runs once. Then all Samples are brocken. Only Solution at Client site is to delete Browser Cache.
After i set Telerik.com to white List it runs fine.
But when we will provide a Software based on AJAX Tools to a customer i can´t Control which content Firewall they use.

Do you have Informatuions about Problems with this?

Thanks
Rumen
Telerik team
 answered on 20 Mar 2012
4 answers
284 views
I have a requirement to wants me to disable the switching "&" into "&amp" (happens when I go to HTML mode from design mode)

Scenario:
I would like to use RADEditor to add jQuery pl see attached radeditor.png
(when RadEditor1.EditModes = Telerik.Web.UI.EditModes.Html)

When switching from designmode to HTML, mode & becomes &amp;
(may also apply to "£ converted to &pound")

Check the post(link below)
http://www.telerik.com/support/kb/aspnet-ajax/editor/converting-unicode-symbols-to-numeric-html-entities-using-a-content-filter.aspx

And I tried with Built-in Content Filters.
http://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx
But does not stop from converting & to &amp (also £ to &pound)

pl see the attached files contentfilter1.png and contentfilter2.png

Also tried adding code as well as specified in http://www.telerik.com/support/kb/aspnet-ajax/editor/converting-unicode-symbols-to-numeric-html-entities-using-a-content-filter.aspx

pl can someone help
A code example to download would be better.

thanks
ami
Rumen
Telerik team
 answered on 20 Mar 2012
1 answer
257 views
Hi,
 Based on certain criteria Im binding items in RadMenu, in which am supposed to populate the RadTreeView inside one of the RadMenuItem (named "Tools") dynamically. Ive done this using ItemDataBound of RadMenu. (below is the Code)  :      
protected void TopMenu_ItemDataBound(object sender, RadMenuEventArgs e)
{
    if (!string.IsNullOrEmpty(e.Item.NavigateUrl))
        e.Item.Attributes["onclick"] = "return Redirect(this.href);";
 
    if (e.Item.Text.ToLower() == "Tools".ToLower())
    {
        RadMenuItem radTools = new RadMenuItem();
 
        RadTreeView radToolTreeView = new RadTreeView();
        radToolTreeView.DataTextField = "Text";
        radToolTreeView.DataFieldID = "MenuID";
        radToolTreeView.DataFieldParentID = "ParentID";
        radToolTreeView.DataNavigateUrlField = "Url";
        radToolTreeView.LoadingMessage = "Loading...";               
        radToolTreeView.Skin = "Web20";
        radToolTreeView.CssClass = "MenuTreeView";   
        radToolTreeView.DataSource = BindToolMenu1();
        radToolTreeView.BackColor = System.Drawing.Color.Aqua;   
        radToolTreeView.DataBind();
        radToolTreeView.ExpandAllNodes();
        radTools.Controls.Add(radToolTreeView);
 
        e.Item.Items.Add(radTools);
    }
}

from the above code, I am able to set the attributes for RadMenuItem

e.Item.Attributes["onclick"] = "return Redirect(this.href);";

I need to set the same attribute on clicking on TreeViewNode. Please tell me how to do this?

Thanks in advance
KSP
Prabhu
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
162 views
I'm hoping someone can help me by either pointing me to a straight forward example or pointing out the error(s) in my code.  I'm attempting to provide history points when a user is interacting with an ajax grid.  I've started just with paging but eventually want to get this working with sorting as well.  

I have a master page which defines a RadScriptManager:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="true" EnableHistory="true" EnableSecureHistoryState="false"></telerik:RadScriptManager>

On a content page I have a ScriptManagerProxy to invoke the OnNavigate event (when a browser back/forward button is clicked):

<asp:ScriptManagerProxy ID="ProxyScriptManager" runat="server" OnNavigate="ScriptManager_OnNavigate" />

The ScriptManager_OnNavigate handler is defined as such:

protected void ScriptManager_OnNavigate(object sender, HistoryEventArgs e)
        {
            if (e.State.Count <= 0)
            {
                // setup default state
                RadGrid1.MasterTableView.CurrentPageIndex = 0;
                RadGrid1.Rebind();
                return;
            }
  
            string key = e.State.AllKeys[0];
            string state = string.Empty;
  
            if (string.Equals(key, GridPageHistoryKey))
            {
                state = e.State[key];
                int pageIndex;
                if (int.TryParse(state, out pageIndex))
                {
                    RadGrid1.MasterTableView.CurrentPageIndex = pageIndex;
                    RadGrid1.Rebind();
                }
            }
  
  
        }

On the grid's OnPageIndexChanged event handler, I set a private variable to true which is then checked in the grids OnPrerender event:

protected void RadGrid1_PageIndexChanged(object sender, GridPageChangedEventArgs e)
        {
            _saveState = true;
        }

protected void RadGrid1_PreRender(object sender, EventArgs e) {
if (_saveState)
            {
                if (RadScriptManager.GetCurrent(this.Page).IsInAsyncPostBack && !RadScriptManager.GetCurrent(this.Page).IsNavigating)
                {
                    var state = RadGrid1.MasterTableView.CurrentPageIndex.ToString();
                    RadScriptManager.GetCurrent(this.Page).AddHistoryPoint(GridPageHistoryKey, state);
                } 
            }

It appears that the add history point is getting created and the OnNavigate code is executing but the grid doesn't update when clicking the back button.  Am I missing a crucial step?  Is there an example that doesn't just point me to:  http://www.telerik.com/help/aspnet-ajax/ajax-back-forward-btns.html 

Thanks for any help!

Walter
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
92 views

Server Error in '/' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

Source Error:

Line 21: 		if (!IsPostBack)
Line 22: 		{
Line 23: 			RadGrid1.Rebind();
Line 24: 			SelectFirstGridRow();
Line 25: 		}

Source File: d:\Test_telerik\WebMail\Default.aspx.cs    Line: 23




Could you please to help
Tsvetina
Telerik team
 answered on 20 Mar 2012
4 answers
122 views
We are having a form section with a vertical scroll. We have placed a Rad Textbox at the top. We have noticed that when IE renders in IE 7.0 compatibility mode (default mode for Intranet sites), the textbox stays fixed when user scrolls.

I've pasted the sample code below:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="RadControlsWebApp1.WebForm2" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <style type="text/css">
        body
        {
            font-family: Arial, Helvetica, Sans-Serif;
            font-size: 11pt;
            color: Black;
        }
          
        div.MasterContainer
        {
            width: 600px;
            height: 400px;
            padding: 0px;
            margin: auto;
        }
          
        div.FormContainer
        {
            width: 95%;
            margin: 0px;
            padding: 0px;
            border-style: solid;
            border-width: 1px;
            border-color: Black;
            border-collapse: collapse;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <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" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.        
    </script>
    <div class="MasterContainer">
        <div style="width: 100%; height: 150px; overflow: auto;">
            <div class="FormContainer">
                <telerik:RadTextBox ID="txtTab2Title" runat="server" EmptyMessage="Enter Something Here"
                    Label="Enter:" Width="250px">
                </telerik:RadTextBox>
            </div>
            <div style="width: 95%; margin-top: 10px;">
                Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis
                egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet,
                ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est.
                Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra.
                Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean
                fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus
                lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent
                dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna
                eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor,
                facilisis luctus, metus
            </div>
        </div>
    </div>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    </form>
</body>
</html>

mosswgreentea
Top achievements
Rank 1
 answered on 20 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?