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

By default every item text gets wrapped if its longer than width of RadListBox.
How to set width of RadListBox dynamically based on text of item. Basically I want to expand width of RadListBox, without wrapping text of item.
In below example, 3rd item gets wrapped automatically. I want to expand RadListBox in a way that it can fully accommodate 3rd item without wrapping or scroll bar.
 
  <telerik:RadListBox
        runat="server" ID="RadListBoxSource"
        Height="200px">
        <Items>
            <telerik:RadListBoxItem Text="China" Value="1"/>
            <telerik:RadListBoxItem Text="Egypt" Value="1"/>
            <telerik:RadListBoxItem Text="England England England England England England England England England" Value="1"/>
            <telerik:RadListBoxItem Text="France" Value="1"/>
        </Items>
    </telerik:RadListBox>

Appreciate any help.

Thanks
Paresh
Bozhidar
Telerik team
 answered on 01 Mar 2012
5 answers
127 views
HI,

I tried Implementing A Provider That Supports Multi-valued Resources. It works fine for appointment without recurrence. When I switch from day view to week view it will show following message if  there is an appointment with recurrence.

Error: Sys.WebForms.PageRequestManagerServerErrorException: Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

By the way, I tried to create a appointment with recurrence on your demo site using following link. It also throws exception:

http://demos.telerik.com/aspnet-ajax/scheduler/examples/multipleresourcevalues/defaultcs.aspx


Please let me know how to fix this

Alan
Peter
Telerik team
 answered on 01 Mar 2012
1 answer
122 views
I am unable to get border for my label on the chart. Please suggest. 

Code:
 <Appearance> 
                                                                    <LabelAppearance Position-AlignedPosition="Center" LabelLocation="Inside">
                                   <Border Color="#38b0ef" />
                                                                     </LabelAppearance>
                                                                </Appearance>
Evgenia
Telerik team
 answered on 01 Mar 2012
1 answer
86 views
If you add a table as the very first thing you do in the editor, you can't position the cursor before or after the table in design view.

FYI, our end users only have access to design and preview views.

One worth fixing, I think.

--
Stuart
Rumen
Telerik team
 answered on 01 Mar 2012
1 answer
43 views
Hi there

We are using RADEditor (6.2) with SharePoint 2010 with a slightly modified version of the News site.  The page has 3 fields ('Title' [single line of text], 'Page Description' [multiple lines of text] and 'Page Content' [publishing html]).

The problem we have is that the 'Page Description' field is rendered with the HTML treated as part of the text (so the the user is shown the raw HTML).  However, when in edit mode, the field renders correctly.  The other fields on the page behave as expected in both modes.

Could someone tell me what is going on here?

Thanks,
AndrewvR

Rumen
Telerik team
 answered on 01 Mar 2012
1 answer
49 views
In my current project the scheduler is bound to an array list and renders fine in Internet Explorer and chrome, however in Firefox it never renders first time. If I am lucky I will see the title bar and may be the days when in month view. Although if I then hit F11 or F12 to bring up Firebug the scheduler does becomes visible in its entirety.


Matthew
Top achievements
Rank 1
 answered on 01 Mar 2012
4 answers
398 views
Hi All,

I have button inside the rad grid control. I want to fetch the particular grid row data (ex. hidden field value) on button click. For this I wrote code like this...

    protected void btnOne_OnClick(object sender, EventArgs e)
    {
        Button btn = (Button)sender;
        GridDataItem item = (GridDataItem)btn.NamingContainer;    
        HiddenField hdn = (HiddenField)item.FindControl("hdnOne");
    }

It is working, but some time it shows the value is repeating (i.e. showing some other value for hidden field). Is there any other way, to do this..
Thanks in advance.
Akki
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Mar 2012
3 answers
93 views
Hi,

I'm trying to use the RadTreeView with fixed width and with overflow: auto. In IE9 after the horizontal scrollbar has appeared if you hover with mouse over any node the TreeView enlarges (mean it's higher). This happend every time, so the TreeView is higher and higher. Here is a sample code:

aspx:
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="rsmMain" runat="server" EnablePageMethods="true" EnableScriptGlobalization="true" EnablePartialRendering="true"/>
    <telerik:RadTreeView ID="rtvTree" runat="server" style="width: 150px; overflow: auto; border: 1px solid black;" />
    </form>
</body>
</html>

code behind:
protected void Page_Load(object sender, EventArgs e) {
      rtvTree.Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01", "1"), new RadTreeNode("test Node 02", "2") });
      rtvTree.Nodes[0].Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01 - 01", "3"), new RadTreeNode("test Node 01 - 02", "4") });
      rtvTree.Nodes[0].Nodes[0].Nodes.AddRange(new List<RadTreeNode>() { new RadTreeNode("test Node 01 - 01 - 01", "5"), new RadTreeNode("test Node 01 - 01 - 02", "6") });
    }

If you'll expand all nodes, horizontal scroll bar will appear.
Please let me know whether I miss something important or whether is there some work-around.

Thanks,

Petr Kotal.
Ivan Zhekov
Telerik team
 answered on 01 Mar 2012
7 answers
179 views
Hello,

The following are the div IDs which we bind in the editor control. But these div ids are removed when i click in the indent command.

<div id="VTL"></div>
<div id="D7"></div>
<div id="Med"></div>
<div id="Dia"></div>
<div id="Ord"></div>
<div id="Imm"></div>
<div id="D142"></div>

If DIV ID has data then DIV ID is not removed when click in the indent.

The following is the example of DIV ID has data:
<div id="All"><span style="color: #000000;"><span style="font-size: 11pt; font-weight: bold; font-family: tahoma; color: #000000;">Allergies</span><br />
<span style="font-size: 11pt; font-weight: bold; font-family: tahoma; color: #000000;">Drug Allergies:</span> <span style="font-size: 11pt; font-family: tahoma; color: #000000;">5-hydroxytryptophan (Generic: 5-hydroxytryptophan), Onset Date: 03/03/2011, Reaction: high, Intolerable.</span></span></div>

And I also used these code but no solution:

 <script type="text/javascript">
        function OnClientCommandExecuted(editor, args) {
            var commandName = args.get_commandName();
            var editorParentSelection = editor.getSelection().getParentElement();

            switch (commandName) {

                case "Indent":
                    var selectedElement = editor.getSelectedElement();

                    while (!Telerik.Web.UI.Editor.Utils.isEditorContentArea(selectedElement) && !(selectedElement.tagName.toLowerCase() == "blockquote")) {
                        selectedElement = selectedElement.parentNode;
                    }

                    var tempDiv = editor.get_document().createElement("div");
                    tempDiv.style.cssText = "margin-left:30px";
                    tempDiv.innerHTML = selectedElement.innerHTML;

                    selectedElement.parentNode.replaceChild(tempDiv, selectedElement);

                    break;

                case "Outdent":
                    editorParentSelection.outerHTML;
                    break;

                default:
                    break;
            }

        }
 
    </script>
<telerik:RadEditor ID="RadEditor1" runat="server" OnClientCommandExecuted="OnClientCommandExecuted">
    <Content>test</Content>
</telerik:RadEditor>


These is the major problem.

Please help me as soon as possible.
Thanks
Best Regards
Jiten Mutum



Rumen
Telerik team
 answered on 01 Mar 2012
3 answers
133 views
I'm creating a treeview via a database. Currently, only the root node is displayed when the page loads. Is there an equivilent to the Microsoft Treeview ExpandDepth so that I can display the first level underneath the root as well?

I tried expanding root node in the code behind without success. Here is my code:

<telerik:RadTreeView ID="RadTreeView1" runat="server" DataSourceID="DataMart" DataFieldID="cellkey" 
    DataFieldParentID="cellparent" DataTextField="celldescriptor"   
    LoadingStatusPosition="BeforeNodeText" SingleExpandPath="True">  
    <CollapseAnimation Duration="100" Type="None" /> 
    <ExpandAnimation Duration="100" Type="None" />      
</telerik:RadTreeView> 
<asp:SqlDataSource ID="DataMart" runat="server" ConnectionString="<%$ ConnectionStrings:DataMart %>" 
    SelectCommand="SST.PR_GET_JUPITER_TREE" SelectCommandType="StoredProcedure">  
    <SelectParameters> 
        <asp:Parameter DefaultValue="2" Name="Starting_Node" Type="Int32" /> 
    </SelectParameters> 
</asp:SqlDataSource> 

Thanks!
Frederik
Top achievements
Rank 1
 answered on 01 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?