Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
307 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
113 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.4K+ 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
95 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
125 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
97 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
135 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
310 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
2 answers
123 views
Hi,

I used RadGrid's simple data-binding through the DataBind() method, so there is only two steps to make the datagrid, which is on page load event

RadGridID.DataSource = FRManager.GetAllFRData();
RadGridID.DataBind();

Now i can drag and drop the row and i got the event of protected void RadGridID
_RowDrop(object sender, GridDragDropEventArgs e)
{
}

Whatever example is given on the telerik on below link, i used it to bind but not get success.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx?

please let me know what to write in this event to work out this, i took one field named OrderNumber in the table, this field is in hidden in my datagrid.

Thanks,
Viktor Tachev
Telerik team
 answered on 14 Nov 2013
2 answers
126 views
I make use of the RadPanelBar and each one has the appropriate Treeview with available columns.  I would like to take the columns on the left and drag them to the RadListBox on the right.  This would allow me to reference the database with only the columns listed in the RadListBox and not have to go through each RadTreeView and determine which columns are checked.  As I have implemented the Telerik example here, curious if there is a way to modify this script that would allow me to go from multiple RadTreeView's to 1 RadListBox?

The list on the Left is "static" as each of the Trees are populated with XML data.  How do I reset the values, if they would like to perform another search within the same session?  Or is it possible to just leave the values on the Left and I could simply just reset the Listbox?
Kate
Telerik team
 answered on 14 Nov 2013
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?