Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
162 views
Hi
I have an ASP.NET website which works fine.
One one page I use the radchart and it's all working fine.
at the top of that working page I have ...

<%

@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>

Now I create a new page and I want a radchart on it

I do this ...

 

<%

@ Register Assembly="RadChart.Net2" Namespace="Telerik.WebControls" TagPrefix="radC" %>

and i put in this code ....

 

<

 

radC:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">

 

 

 

 

 

 

 

 

 

</radC:RadChart>

and it says "Chart has no or empty series?"

but if I put in this code ....

 

<

 

radC:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">

 

 

 

 

 

 

 

<Series>

 

 

 

 

 

<radC:ChartSeries Name="1">

 

 

 

 

 

<Items>

 

 

 

 

 

<radC:ChartSeriesItem YValue="1" Name="1"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="2" Name="2"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="3" Name="3"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="4" Name="4"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="5" Name="5"></radC:ChartSeriesItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</radC:ChartSeries>

 

 

 

 

 

<radC:ChartSeries Name="2" YAxisType=Secondary>

 

 

 

 

 

<Items>

 

 

 

 

 

<radC:ChartSeriesItem YValue="10" Name="1"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="20" Name="2"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="30" Name="3"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="40" Name="4"></radC:ChartSeriesItem>

 

 

 

 

 

<radC:ChartSeriesItem YValue="50" Name="5"></radC:ChartSeriesItem>

 

 

 

 

 

</Items>

 

 

 

 

 

</radC:ChartSeries>

 

 

</Series>

 

 

 

</radC:RadChart>

It says 
Error 1 Unknown server tag 'radC:ChartSeries'. 

thanks
p

 

Giuseppe
Telerik team
 answered on 20 Mar 2012
6 answers
214 views
Hello,

Is it possible programmatically shows the Fileexplorer sorted by filename?

Thank you

Dobromir
Telerik team
 answered on 20 Mar 2012
6 answers
172 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
132 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
84 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
83 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
282 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
255 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
156 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
90 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?