Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
90 views

2010.2.809.35  VS2008 IE8

I have an item that is declarative set to enabled false that cannot be re-enabled with item.enable.   It stays disabled.
If it was NOT declarative disabled then I can disable then enable using the client API.
 
   <telerik:RadListBoxItem Enabled="false" Text="Apple" Value="Apple" />

 var items = listbox.get_items();  items.forEach(function(item) { item.enable(); item.check(); });

Update:  If the item is set to disabled in code, it could not be enabled in Javascript.
Yana
Telerik team
 answered on 21 Oct 2010
1 answer
118 views
On the y axis of my bar chart I have Number of Households.  Obviously, this number is always an integer but I am sometimes getting the following on the y axis:  0, 0.5, 1, 1.5, 2, 2.5, etc.

The plot is coming out correctly.  The x axis shows dates and the plot is usage by y-number of households on a given date.

How can I force the y axis to show only integers?


Thanks.
Evgenia
Telerik team
 answered on 21 Oct 2010
7 answers
655 views
Hi,

I have a RadWIndow, which opens an external ASPX page.
This page has some fields which stores data after clicking the save button.

I want on the click event of the save button, the radwindow should be closed automatically.

Please suggest.

Thanks,
Debashis
Andrey
Top achievements
Rank 1
 answered on 21 Oct 2010
3 answers
347 views
I'd like that when the user press "Enter" on my RadNumericTextBox it would be the same as if he would give a click on a especific button.
The definition of my RadNumericTextBox is:

<telerik:RadNumericTextBox ID="radMyNumericTextBox" runat="server" Width="132px">
        <ClientEvents OnKeyPress="radMyNumericTextBox_KeyDown" />
</telerik:RadNumericTextBox>
My code is:
private void radMyNumericTextBox_KeyDown(object sender, KeyEventArgs e)

 

{

 

    if (e.KeyCode == Keys.Enter)

 

    {

        btnMyButton_Click(sender, e);

    }
}
Note: Actually if I press "Enter" in the RadNumericTextBox close's my window.
Any help?
Thank you very much.

David

Dimo
Telerik team
 answered on 21 Oct 2010
0 answers
86 views
Hai All,

In my RadCombo box i displaying fields like..

Header--> Item1         Item2
                -------------------------
                     a                 1
                     b                  2
                     c                  3
                     c                   4

Can u please help me if i select row 1 means need "a" in one variable and  "1" in another variable on
radcombox selectedindex change.

Thanks
salvio
Top achievements
Rank 1
 asked on 21 Oct 2010
3 answers
166 views
Hi

I am having trouble working out the correct style to add to Radtreenode so that the text is indented after the first line if the text wraps.

Like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head>

    <title>Untitled Page</title>

       <style> 

      p { 

        text-indent: -2.0em; 

      } 

      div{

            padding:3.0em;

      }

    </style> 

</head>

<body>

<div>

    <p> 

      "On the contrary," said Holmes, quietly, "I have every reason 

      to believe that I will succeed in discovering Mr. Hosmer Angel." 

    </p> 

    <p> 

      Mr. Windibank gave a violent start, and dropped his gloves. 

      "I am delighted to hear it," he said. 

    </p> 

    <p> 

      "It is a curious thing," remarked Holmes, "that a typewriter 

      has really quite as much individuality as a man's handwriting. 

      Unless they are quite new no two of them write exactly alike. 

      Some letters get more worn than others, and some wear only on 

      one side. Now, you remark in this note of yours, Mr. Windibank, 

      that in every case there is some little slurring over the e, and 

      a slight defect in the tail of the r. There are fourteen other 

      characteristics, but those are the more obvious." 

    </p> 

</div>

</body>

</html>

I will need to apply the text-indent: -2.0em;  and padding:3.0em; style to particular elements but i'm not sure what ones.

Cheers

Aaron

           

Yana
Telerik team
 answered on 21 Oct 2010
2 answers
146 views
Hello

We are using "out of the box" RadGrids with no special formattings other than Skin="Sunset". Our RadGrid page buttons are somehow split in the middle what makes them too wide and strange looking:

Screenshot of our RadGrid page buttons

Is this the normal appearance of RadGrid buttons? Do we have to do some custom formatting to make them look "normal" (not split and not so wide) ?

This is how our RadGrid is defined in the aspx file:

<telerik:RadGrid ID="RadGridApplicationLogs" runat="server" 
    AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" GridLines="None" DataSourceID="ObjectDataSourceApplicationLogs" ShowGroupPanel="False" Skin="Sunset" >
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ApplicationLogID" CommandItemDisplay="Bottom">
        <Columns>
...
        </Columns>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="False" EnablePostBackOnRowClick="true">
        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="300px" />
        <Selecting AllowRowSelect="True" />
        <Resizing AllowRowResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="True" AllowColumnResize="True"></Resizing>
    </ClientSettings>
</telerik:RadGrid>
 
Thanks
Cedo
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
58 views
Hi,

I am upgrading radeditor MCMS 7.3.1 version on a CMS site running on asp.net 1.1 framework from 6.x version or radeditor MCMS premium.

The upgrade went successful and I also taken care to remove all removed and obsolete property.

Now when I click on edit on a page I see a script error 'RadEditorIsPathKeeperAnchorActive' is undefined which lead me to the radEditorMCMS.js file where this variable is validated -

if (RadEditorIsPathKeeperAnchorActive) {
    //.............
}

Any idea what could trigger this error.
Thanks in advance.
Regards,
Tabrez
Rumen
Telerik team
 answered on 21 Oct 2010
3 answers
185 views

I have a treeview

1.<telerik:RadTreeView ID="RadTreeViewCombo" runat="server" DataFieldID="IdGroup" DataFieldParentID="IdParentGroup"
2.                    DataTextField="Name" DataValueField="IdGroup" OnDataBound="RadTreeViewCombo_DataBound"
3.                    DataSourceID="edsCosts" CheckBoxes="True" CheckChildNodes="True">
4.                    <DataBindings>
5.                        <telerik:RadTreeNodeBinding Depth="0" Expanded="false" />
6.                    </DataBindings>
7.                </telerik:RadTreeView>
and filter (textbox) that search all nodes by Text.

The problem is when a check node then filter by name (filter do only visible = false to unwanted nodes) 

then from result nodes I check some nodes after submiting (press button) the property CheckedNodes.Count=0 ?!?!?

If I do only filtering and then checking of result nodes or only checking without filtering there is no problem.

Search algorithm:

01.protected void btnSearch_Click(object sender, ImageClickEventArgs e)
02.    {
03.                SearchByName(RadTreeViewCombo.Nodes);
04.                RadTreeViewCombo.ExpandAllNodes();
05.    }
06.  
07.private void SearchByName(RadTreeNodeCollection radTreeNodeCollection)
08.    {
09.        foreach (RadTreeNode node in radTreeNodeCollection)
10.        { RecursiveSearhInNodes(node); }
11.  
12.    }
13.  
14.    private void RecursiveSearhInNodes(RadTreeNode node)
15.    {
16.        if (!node.Text.ToLower().Contains(txtSearch.Text.Trim().ToLower()))
17.        { node.Visible = false; }
18.        else
19.        { GoToParent(node.ParentNode); node.Visible = true; }
20.  
21.        foreach (RadTreeNode childNodes in node.Nodes)
22.        { RecursiveSearhInNodes(childNodes); }
23.    }
24.  
25.    private void GoToParent(RadTreeNode parentNode)
26.    {
27.        if (parentNode != null)
28.        {
29.            if (parentNode.ParentNode != null)
30.                GoToParent(parentNode.ParentNode);
31.  
32.            parentNode.Visible = true;
33.        }
34.    }

Nikolay Tsenkov
Telerik team
 answered on 21 Oct 2010
1 answer
123 views
We are running Telerik version 2008.2.826.35 (and cannot update it for this particular project).

In the Editor, when I first click the Symbol icon the popup appears and I select a symbol and it enters it into the content area.

However, after the symbol is inserted, when I click the Symbol Icon again, it just inserts the same character again, the popup does not appear for me to select a different symbol. This occurs in all browsers (but we are specifically coding for IE6).

This is an urgent matter (of course :)

Thanks,
-Tamara
Rumen
Telerik team
 answered on 21 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?