Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
173 views
Hi EveryOne,

I have a question about the TreeView ExpandMode.
Currently, I set childNode.ExpandMode = TreeNodeExpandMode.WebService;

After Initialize the tree, and  I click button. In the button event, I set some nodes of the tree expanded = true
My question is that Will these nodes are expanded or not? 

Thanks.


Boyan Dimitrov
Telerik team
 answered on 14 Nov 2013
1 answer
125 views
Hi Telerik group,


I am trying to show a cellphone conversation inside the lightbox, I would like to have scroll on that. I am using ajax to put the text into the light box but I notice the the lightbox opens before the text gets into it and I want to re-size dynamically the lightbox. Do you think I can show the conversation as is showed in the image attached?

Thank you very much


 function jsListen(notificationType, reminderId, sessionId, accountId) {
            var lightBox = $find('<%= LightBoxListen.ClientID %>');
            var items = notificationType + "," + reminderId + "," + sessionId + "," + accountId;
            var sUserName = "aaaa";
            if (!(notificationType == null && reminderId == null && sessionId == null)) {
                sendData();
                lightBox.show();
                return false;
            }
            return true;
            function sendData() {
                //var loc = location.protocol + "//" + location.hostname + ":" + location.port + "/Account/CallHistory.aspx/GetListen";
                var loc = location.protocol + "//" + location.hostname + ":" + location.port + "/ListenWS.asmx/GetListen";
                loc = (loc.substr(loc.length - 1, 1) == "/") ? loc + "CallHistory.aspx" : loc;
                $.ajax({
                    type: "POST",
                    //url: "http://localhost:8080/Account/CallHistory.aspx/GetListen", 
                    //url: "http://localhost:8080/ListenWS.asmx/GetListen",                            
                    //url: loc + "/GetListen", 
                    url: loc,
                    cache: false,
                    data: '{"items":"' + items + '"}',

                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    success: function (msg) {

                        //                        if (msg.d)
                        //                            alert("The User Name is valid");
                        //                        else
                        //                            alert("The User Name is invalid")
                    },
                    complete: function (xhr, status) {
                        var msg = $.parseJSON(xhr.responseText);

                        $("#message2").html("");
                        $("#message2").append(msg.d);

                        $("#message").html("");
                        $("#message").append(msg.d);

                    },
                    error: function (e) {
                        alert("An unexpected error has occurred during processing.");
                    }
                });
            }
        }


    <telerik:RadLightBox   ID="LightBoxListen" Font-Size="Medium"  runat="server"  Modal="true"  PreserveCurrentItemTemplates="true">
            <ClientSettings   >
                <AnimationSettings HideAnimation="Resize" NextAnimation="Fade" PrevAnimation="Fade"  ShowAnimation="Resize" />
            </ClientSettings>
            <Items>
                <telerik:RadLightBoxItem >
                    <ItemTemplate>
                        <div>
                            <div id="message"></div>
                            <br />
                            <br />
                        </div>
                    </ItemTemplate>
                </telerik:RadLightBoxItem>
            </Items>
        </telerik:RadLightBox>


Kostadin
Telerik team
 answered on 14 Nov 2013
5 answers
297 views
Hi,

I have a strange behavior of RadWindow with the following code:
<telerik:RadWindow OpenerElementID = "hyp_YT" BackColor="Yellow" Style="z-index: 9999" Height="446px" Width="784px" ShowContentDuringLoad="false" VisibleStatusbar="false" Animation="Fade" ID="RadWindow1" runat="server">
<ContentTemplate>aaaaaaaaaaaaaaaaaa</ContentTemplate>
</telerik:RadWindow>
 when i fill the property "BackColor" the the contenttemplate, the RadWindow is showing on Page.Load.
See behavior live on http://axxent.ontwikkelruimte.nl

Marc
Marin Bratanov
Telerik team
 answered on 14 Nov 2013
1 answer
110 views
Hello,

I have a Q3 2012 HtmlRadChart, trying to bind it with List<> values. A list item object has properties CreatedDate, Name and Value. I want to display CreatedDate on XAxis, Name as legend and Value as series. Code:

var source = (from r in readData join sen in equipments on r.EquipmentId equals sen.Id
                          select new
                            {
                                Id = r.Id,
                                CreatedDate = r.CreatedDate,
                                Value = r.Value,
                                Name = sen.Name,
                                EquipmentId = sen.Id
                            }) 
            .ToList();
            chart.PlotArea.Series.Clear();
            foreach (var equipment in source.Select(src => src.Name).Distinct())
            {
                var equipmentLineSeries = new LineSeries
                                       {
                                           DataField = "Value",
                                           Name = equipment,
                                       };
                chart.PlotArea.Series.Add(equipmentLineSeries);
            }
            chart.DataSource = source;
            chart.DataBind();

The problem is that chart does not "filter" values, and displays all values for every Name in the names list, overriding the other series displayed.
As you can see in attachment, I have 13 values for all 3 Names (PT206, PT208, PT205) and all of them are displayed for every Name, thus, lines are overriten by each other.
How can I filter data source by names, to display the series correctly?

Thanks, 
Ion
Danail Vasilev
Telerik team
 answered on 14 Nov 2013
23 answers
1.3K+ views
Hello team

I've the following issue with the radWindow -

I've two buttons "Open Popup" and "Do Postback". Open Popup opens a page in radwindow and Do Postback just does an empty postback.

I'm opening a page in the radwindow when Open Popup is clicked. I've a cancel button in the popup page which simply closes the radwindow (using client side script).

Now when i do an empty postback the popup is getting opened again. Why is that happening?

I've uploaded the project here to duplicate the issue - http://dl.dropbox.com/u/3971218/Code%20Samples/RadWindowAsPopup.zip.

Kindly check it out.

Regards
NLV
Marin Bratanov
Telerik team
 answered on 14 Nov 2013
2 answers
89 views

Hi:



I have a Pivot Grid with vertical scrolling and RowGrandTotalHeaderCellTemplate set to some text for every aggregate field. It is set to some text because I did not wanted the aggregate function displayed such as SUM or AVE, etc … I have noticed that the vertical scrolling causes problems on the RowGrandTotalHeaderCellTemplate. The set text of the last aggregate field’s RowGrandTotalHeaderCellTemplate is repeated on all the other aggregated fields’ RowGrandTotalHeaderCellTemplate. These are some of the set properties:

 

<telerik:RadPivotGrid ID="Name" runat="server" AggregatesLevel="5" ShowDataHeaderZone="False" AggregatesPosition="Rows" Height="700px"

OnNeedDataSource="Name_NeedDataSource" OnCellDataBound="Name_CellDataBound" OnItemCommand="Name_ItemCommand">

                   

<PagerStyle ChangePageSizeButtonToolTip="Change Page Size" PageSizeControlType="RadComboBox"></PagerStyle>

<ClientSettings>

<Scrolling AllowVerticalScroll="True" ScrollHeight="700px"/>

</ClientSettings>

 

<TotalsSettings ColumnGrandTotalsPosition="None" ColumnsSubTotalsPosition="None" RowsSubTotalsPosition="None" />

5 filters fields

1 column fields

5 rows fields

 

9 aggregated fields

 

Is there way I can correct this behavior?



I am using ASP.NET 4.5, Windows 8, Internet Explorer 10.0.9200.16721, Telerik v.2013.2.717.45, C#.

The provided help will be appreciated.

 

Thanks!

Jose

Jose
Top achievements
Rank 1
 answered on 14 Nov 2013
3 answers
112 views
Hi,

We're recently began experiencing some odd behavior when cutting and pasting text in the RadEditor using Firefox (v25).  If you cut a line of text and paste in another area, then cut a different line of text and paste in another area, when you paste a break tag is added and you have to perform the paste command a second time.

For example, using Telerik's demo (https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx)...
1.Cut the first word "RadEditor" at the beginning of the paragraph
2. paste the word "RadEditor" on the line after the paragraph
3. Cut some of the text anywhere in the paragraph (e.g., cut the word "spellchecker")
4. Past the cut text at the beginning of the paragraph where the word "RadEditor" used to be

You'll get a blank line inserted the first time, then if you past again the cut text will show up.  The above is just an example; it doesn't matter what text you cut/paste first, any text you cut/paste after that creates a blank line and requires you to paste again.  

Here's the HTML code from where I swapped the words "'Textbox" and "spellchecker" using cut/paste commands:
<h2 class="titleText">RadEditor for ASP.NET AJAX</h2>
<p style="text-align: justify;"><span style="font-size: 19px; color: #4f6128;"><strong>RadEditor</strong></span><span style="color: #4f6128;"> </span>is not simply an HTML<a href="#HTMLDescription"><sup>1</sup></a> Editor. It is what Microsoft chose to use in <strong>MSDN</strong>, <strong>CodePlex</strong>, <strong>TechNet</strong>, <strong>MCMS</strong> and even as an alternative to the default editor in <a href="http://www.telerik.com/products/aspnet-ajax/sharepoint.aspx">SharePoint</a>. Whether you need a mere<br />
spellchecker with Google-like Textbox , or a Word-like content authoring environment, the result is the same: clean <strong>XHTML</strong> output, fast rendering, widest cross-browser support, and <a href="http://www.telerik.com/products/aspnet-ajax/editor.aspx">tons of features</a>: <br />
<br />

You can see above where a break tag was inserted after the text "Whether you need a mere", it took performing the paste command a second time to get the word "spellchecker" to be pasted.

This happens with both the keyboard and browser menu commands.  

I tried the same thing in Chrome, but the cut/paste seems to work as expected.

Any thoughts or suggestions?
Thanks,
Amy
Amy
Top achievements
Rank 1
 answered on 14 Nov 2013
1 answer
93 views

Is it possible to put a RadButton inside a bound DataList?



I have a dataset with two columns returned (bound in the code-behind). First column is called HowFoundDesc (a description), and second is FoundThisWay (a Boolean). I can bind the HowFoundDesc to the Text attribute of the DataList, but I don't know how to bind the FoundThisWay Boolean flag to the RadButton so as to toggle the state of the button (it is a toggle radio button with images).

When I run it, I get the descriptions fine for each, but all the images are defaulting to the off value. Also, when I click on the buttons, they are all acting separate instead of a group, even though I have the groupname defined in the RadButton.



Any ideas?





<div Style="font-size: 14px; top: 4px; left: 5px; position: absolute;">
 <asp:DataList ID="HowFound" runat="server" RepeatDirection="Horizontal" RepeatColumns="5"  >
     <ItemTemplate>
         <telerik:RadButton ID="rbHowFound" runat="server" ForeColor="Blue" AutoPostBack="false" ButtonType="ToggleButton" GroupName="grpHowFound"
             ToggleType="Radio" Text=<%# Eval("HowFoundDesc")%>  >
             <ToggleStates>
                 <telerik:RadButtonToggleState PrimaryIconCssClass="rbRemove" />
                 <telerik:RadButtonToggleState PrimaryIconCssClass="rbOk" Selected="true" />
             </ToggleStates>
         </telerik:RadButton>
     </ItemTemplate>
 </asp:DataList>
 </div>








Danail Vasilev
Telerik team
 answered on 14 Nov 2013
3 answers
126 views
Currently the RadEditor is only adding the following when inserting an image: 

style="width: 166px; height: 98px;"

I need the Height and Width tags added to the img as follows:

height="166" style="height: 166px; width: 98px;" width="98" 

What can be done so that the RadEditor will automatically add the height and image tags as bolded in the above? 

Edit:

Please note that I am using the latest version of Telerik Asp.Net Ajax tools aka (ASP.NET AJAX Q3 2013)

Ianko
Telerik team
 answered on 14 Nov 2013
3 answers
288 views
I have radGrid1 and inside radGrid1  pageView and Tabs with 2 more radGrid2 and ragGrid3.
In edit mode radGrid2 and radGrid3 shown.
in radGrid2  and radGrid3 users can add new items however I ran into the issue where I can't get the keys from radGrid1 .
Could you help me?
Princy
Top achievements
Rank 2
 answered on 14 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?