Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
Hello,

I am new to all these chart stuff and so it is very hard for me to understand the mechanism underlying those charts. But my superiors want me to show some "simple" charts and after a couple of days reading through the documentation here I am.

What I want to do is simple: show male/female population per city. I think a bar chart is proper. The sample under Demos > Chart > Application Scenarios > Dynamic Data Binding uses a bar chart to show values of categories etc. (the 2nd chart in the sample). I tried to change the code to fit my needs I couldn't.

The query is simple :
SELECT [IdentityCity] AS City, [Sex] AS M/F, COUNT(*) AS Population
FROM [Students]
GROUP BY [IdentityCity],[Sex]
ORDER BY [IdentityCity]

The Cities should be on the X-Axis, the population count should be on the Y-Axis, the series should be male and female which also should be shown in legend. At the end we should have a nice chart showing 2 bars for each city: one for male pop other for female pop..

It isn't so hard, I guess, but I couldn't do it. Do I miss something.

Best regards and thanks for any help.
Evgenia
Telerik team
 answered on 18 Oct 2010
1 answer
58 views

The Radtree is within a step of a wizard control with chekboxes=”true”, TriStateBoxes=”true”, CheckChildNodes=”false” as it’s behaviour.

There is a single top level node and two to three levels of child nodes. If you tick the check box on a 2nd level node, with none of its child nodes selected, when you then change steps in the wizard, and then go back to the step with the radtree, the node you have selected appears un-checked. To tick the node again, you seem to have to click the tick box twice.

On submitting the wizard and iterating through the checked nodes in the code behind like this:

IList<RadTreeNode> nodeCollection = rdtGroups.CheckedNodes;

 

foreach (RadTreeNode CheckedGroupNode in nodeCollection)

{

                …

}

 

If I put a breakpoint in this loop, I can see that the node that appeared to have unchecked itself is actually in the tree controls ‘CheckedNodes’ collection, but it’s ‘CheckedState’ property reads ‘Unchecked’.

Does anyone know a fix or work around for this? Am I missing something here, that I am doing wrong ?

Nikolay Tsenkov
Telerik team
 answered on 18 Oct 2010
3 answers
96 views
Hi!

We have replaced the standard SharePoint navigation tree with a RadTreeView, in order to do things that SharePoint cannot. 
One problem, though, is that when the site hierarchy gets deep and/or the text of the nodes get too long, the screen estate needed to represent the entire path from the root down to the leaf node is too big - the navigation takes too big space from the "real" content on the page.

So, we are looking at other clever ways to let the user navigate the site hierarchy, but without taking so much space. Any good ideas? I should mention that we are already using tabs at the top of the screen (standard SharePoint stuff) which takes the user one level down the hierarchy.

Thanks!
/Fredrik 
Sebastian
Telerik team
 answered on 18 Oct 2010
5 answers
74 views
I probably am overlooking something very simple here, but if I copy formatted text from one rad editor to another, it copies <link id="RADEDITORSTYLESHEET0" href="../../WebResource.axd?d=DD6d.. amongst other style information.
Since I am using the control to enable the user to add HTML text to a form, this ruins the form.

How do I keep the formatted text but avoid having the style links included?
Thanks
Mark Austin
Dobromir
Telerik team
 answered on 18 Oct 2010
1 answer
69 views
I have a grid that is created programmatically during page.init , I then add the grid to a radpanelitem  which has also been created programmatically during page.init I can find the panel item but the instance of the grid is not maintained , How the grid instance be maintained ?

 
Tsvetina
Telerik team
 answered on 18 Oct 2010
1 answer
110 views
I have implemented a custom FileBrowserContentProvider which is used with RadEditor. I am searching for a way to pass a parameter to the custom FileBrowserContentProvider during its creation. It can be through the constructor or another way but it must be passed on creation of the object. Is it possible?
If not, is there another way that the dialogs and the file browser could query for this parameter? I was able to pass it with querying the content Request url referrer but when the dialogs were opened, the referrer changed and the parameter was no longer present.
Fiko
Telerik team
 answered on 18 Oct 2010
1 answer
92 views
Dear,
I add new custom attribute to RadTreeNode using the following code:

Nod.Attributes.Add("Key", "Value")
Where Nod is a RadTreeNode, the attributes is added (Node attributes count is increased) but when I retrieved its value using: Nod.Attributes(Key) I always got Nothing.
Best Regards


Shinu
Top achievements
Rank 2
 answered on 18 Oct 2010
1 answer
89 views
Hi,

I set the tab index in the Telerik combobox. When i try to check the tab sequence in the form when it comes to the telerik combo box. it stops over there. Is it problem in the Rad Combo Box?  What is the solution for this problem? Could you please send example sample form with the tab index set in the Rad combo box working?

Thanks & Regards
Yana
Telerik team
 answered on 18 Oct 2010
1 answer
80 views
I have a multi-select combobox defined on my page with checkboxes and radio buttons in the template.
I am observing a strange behavior with the dropdown.
To close the dropdown I have to click outside of the combo.
On my save I pop-up a radalert that says that data is saved.  If the user checks something in the combo and directly clicks save without clicking out anywhere on the form the pop-up takes two clicks to close. If I again repeat the same steps it increments another click till the time i refresh the page.

combo declaration:
<telerik:RadComboBox runat="server" ID="RadComboBoxParticipants" EnableLoadOnDemand="false"
                                Width="350px" OnPreRender="RadComboBoxParticipants_PreRender" AllowCustomText="true"
                                LoadingMessage="loading.." OnClientSelectedIndexChanging="OnClientSelectedIndexChanging" CloseDropDownOnBlur="true"
                                OnClientDropDownOpening="OnClientDropDownOpening" OnClientDropDownClosing="OnClientDropDownClosing"
                                OnClientBlur="OnClientBlur" OnItemDataBound="RadComboBoxParticipants_ItemDataBound">
                                <ItemTemplate>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="stopPropagation(event, this);"
                                                    ToolTip="Adds as option" />
                                            </td>
                                            <td>
                                                <asp:RadioButton ID="RadioButton1" runat="server" GroupName="Type" onclick="SetUniqueRadioButton();"
                                                    ToolTip="Sets as default" />
                                            </td>
                                            <td>
                                                <%# DataBinder.Eval(Container.DataItem,"FullName") %>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                            </telerik:RadComboBox>


Javascript:
var supressDropDownClosing = false;
  
            function OnClientDropDownClosing(sender, eventArgs) {
                eventArgs.set_cancel(supressDropDownClosing);
            }
  
            function OnClientSelectedIndexChanging(sender, eventArgs) {
                eventArgs.set_cancel(supressDropDownClosing);
            }
  
            function OnClientDropDownOpening(sender, eventArgs) {
                supressDropDownClosing = true;
            }
  
            function OnClientBlur(sender) {
                supressDropDownClosing = false;
  
                sender.toggleDropDown();
            }
  
  
            function stopPropagation(e, chk) {
                e.cancelBubble = true;
                if (e.stopPropagation) {
                    e.stopPropagation();
                }
}


This is very annoying for the client. Can you suggest something.
Yana
Telerik team
 answered on 18 Oct 2010
4 answers
187 views

I'm currently using version 2009.1.527.35 of the Telerik RadControls for ASP.NET Ajax.  When I use the Default Content Filters ( or none) and the user edits the content using the HTML view and adds an &nbsp; then clicks Design and back to HTML, the entity is translated to a space.  I narrowed down the issue to the the ConvertToXhtml content filter by a process of elimination.

Is this expected behavior?  I did notice that Firefox doesn't exhibit the same behavior--only IE 8.  I didn't try IE7 or Chrome.

I don't really care for the result--I'd like to keep XHTML formatting, but I don't really have a choice since the &nbsp; is more critical to the CMS.

Here's how to reproduce the issue:

1)  Create a page with the following markup:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="WebpPrototype._Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<!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">
    </asp:ScriptManager>
    <div>
    <telerik:RadEditor ID="RadEditor1" runat="server" Skin="Black" ContentFilters="ConvertToXhtml,RemoveScripts,FixUlBoldItalic,IECleanAnchors,FixEnclosingP,MozEmStrong,ConvertFontToSpan,IndentHTMLContent,OptimizeSpans">
    </telerik:RadEditor>
    </div>
      
    </form>
</body>
</html>

2)  View the page in the browser.  Click HTML.  Add an &nbsp; to the content.  Click design.  Click back and the &NBSP; has been replaced with spaces.
3)  In the page markup, remove the ConvertToXhtml form the ContentFilters.  Repeat and see the expected results.

Radoslav
Telerik team
 answered on 18 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?