Telerik Forums
UI for ASP.NET AJAX Forum
14 answers
421 views
I've a TreeView in asp.net User control page. In Firefox the control renders fine, But in IE7 and IE8 the TreeView looks like a List with bullet points instead of tree structure. The skin also not applied in IE.

<div style="padding-left: 10px;" class="minwidth_650">
    <table width="100%">
        <tr>
      <td colspan="2"
     <telerik:RadTreeView ID="rtvAssignedNodes" runat="server" EnableDragAndDrop="True" OnNodeDrop="rtvGroups_HandDrop"
       OnClientNodeDropping="onNodeDropping" OnClientNodeDragging="onNodeDragging" MultipleSelect="true"
                                            EnableDragAndDropBetweenNodes="true">
                                        </telerik:RadTreeView>
                                    </td>
                                </tr>
                            </table>


Have attached the screen shot of Firefox and IE,  Please help me to identify the issue

Plamen
Telerik team
 answered on 19 Feb 2014
2 answers
91 views
Hi,
Using a Radgrid which have 2 dates column
When in edit mode on a row, i show 2 RadDateTimePicker for each date column :

<telerik:GridBoundColumn DataField="ACT_DATEFROM" HeaderText="Date" UniqueName="DateDebut" ReadOnly="true" HeaderStyle-Width="120" />
                    <telerik:GridTemplateColumn UniqueName="DateDebutTp" Display="true" HeaderText="De" DataField="ACT_DATEFROM" HeaderStyle-Width="10" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<ItemTemplate>
<asp:Label runat="server" />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDateTimePicker runat="server" ID="rdtpDebut" ToolTip="Date/heure de début" TimeView-StartTime="11:00:00" TimeView-EndTime="22:00:00" TimeView-Interval="00:15:00" Calendar-FirstDayOfWeek="Monday" >
                                <ClientEvents OnDateSelected="DateSelected" />
</telerik:RadDateTimePicker>
</EditItemTemplate>
</telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="DateFinTp" Display="true" HeaderText="A" DataField="ACT_DATETO" HeaderStyle-Width="10" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" >
<ItemTemplate>
<asp:Label runat="server" />
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDateTimePicker runat="server" ID="rdtpFin" ToolTip="Date/heure de fin" TimeView-StartTime="11:00:00" TimeView-EndTime="22:00:00" TimeView-Interval="00:15:00" Calendar-FirstDayOfWeek="Monday" />
</EditItemTemplate>
</telerik:GridTemplateColumn>

What i want to do is to synchronise the second RadDateTimePicker named rdtpFin with the first RadDateTimePicker rdtpDebut => when i select a date in the first, i want the date to be automaticaly put in the second
I tried with javascript events OnDateSelected, but in the javascript function, i can't find/access the second RadDateTimePicker, searching it by id...
How can i do that ? 
Thanks
yoan








Yoan
Top achievements
Rank 1
Iron
 answered on 19 Feb 2014
6 answers
351 views
Hi there,

I have a form with several fields and I need to allow our users to upload some files.
Those files need to be stored under current entity id, i.e., I need them to be uploaded with the form itself, not before, just like old upload control did, so I could do something like this:

var data = new MyEntity(); // it can be a new object, so I do not have an ID until I save it
data.Title = txtTitle.Text; // and so on...
data.Save();
 
foreach(var file in asyncUpload.UploadedFiles)
{
     data.Attachments.Add(file);
}


How can I achieve that?

Thank you,
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
1 answer
144 views
Hi,

The issue I'm facing is that the selected Radlistbox item gets deselected while clicking the selected item along with shift key.

I want it to remain selected.

How can I change this behavior?

Thanks,
Priyank
Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
10 answers
245 views
I have a RADGrid that generates columns automatically by assigning the DataSource to a LIST (OF <Object>) array. (I generate the grid entirely through server-side code). My client now wants to be able to filter off any column. There are some columns that have very specific data, and I would like to show then a "DropDownList" as opposed to a textbox. I created an ITemplate object, and within the "InstantiateIn()" method I created my RADCombobox (I also tried using a regular ASP DropdownList). I also implemented code in Delegate Methods to handle both the DataBind() and the SelectedIndexChanged() events for the control.

I then added code to the Grid's "ColumnCreated()" method that replaced the FilterTemplate with my custom ITemplate if the column name matched the one that I want to replace. So far, everthing worked perfectly...my control appeared in place of the usual filter control, and it was populated with the correct data.

I had an extremely irritating problem with an out-of-sync ViewState error whenever any control on the same page tried to perform a
PostBack...after hours of searching, I ended up turning "EnableViewState" off on the DropDownList control.


Now, when I select an item in my DropDownList filter control, I see the AjaxPanel's rotating circle skin appear as usual, however the control's "SelectedIndexChanged()" event never fires. Any thoughts?
Princy
Top achievements
Rank 2
 answered on 19 Feb 2014
6 answers
679 views
Hello,

Is there a way to get the LabelAppearance.DataformatString = "{0:d}" to work?  No matter which way I try to format this using, including trying  {0:MM/dd/yyyy}, I cannot get the string to format correctly and remove the time component of the data returned.  I have seen in many searches on the internet that HTMLEncode should be set to false to resolve this, but this is not something that I can set with the control.

Thanks,
Ron
msigman
Top achievements
Rank 2
 answered on 18 Feb 2014
2 answers
482 views
In mainpage.aspx having radcombobox and TabStrip, radmutipage and radpageview.
In radpageview content url page (page1.aspx) how to get the mainpage.aspx radcombobox. And if radcombobox onselecteditemchanged event i need to refresh the selected tab content url page(page1.aspx). 

<telerik:RadComboBox ID="rcb1" runat="server" OnSelectedIndexChanged="rcb1_SelectedIndexChanged">
</telerik:RadComboBox>
<telerik:RadTabStrip ID="radtab1" runat="server" SelectedIndex="0" MultiPageID="radmulti1">
    <Tabs>
           <telerik:RadTab runat="server" Text="Discipline" PageViewID="pageview1"></telerik:RadTab>
            <telerik:RadTab runat="server" Text="Sub-Discipline" PageViewID="pageview1"></telerik:RadTab>
     </Tabs>
 </telerik:RadTabStrip>
 <telerik:RadMultiPage ID="radmulti1" runat="server" SelectedIndex="0" Width="400">
     <telerik:RadPageView ID="pageview1" runat="server" ContentUrl="Page1.aspx">
      </telerik:RadPageView>
      <telerik:RadPageView ID="pageview2" runat="server" ContentUrl="Page2.aspx">
      </telerik:RadPageView>
  </telerik:RadMultiPage>
Dave
Top achievements
Rank 1
 answered on 18 Feb 2014
6 answers
147 views
Hi,

One of our ASP.NET WebForms application pages is using 4 RadEditors and we have noticed major browser memory leaks running in IE8 (using sIEve to detect the memory leaks). All the RadEditors have a toolbar and spellcheck support. I have tried removing the toolbar and spellcheck code to see if that makes a difference, but the leaks appear to be with the RadEditor itself. I can get the leaks to stop by setting Enabled = false for all the RadEditors. Also note in my results that leaks occur when page is loaded - I'm not doing a spell check or clicking toolbars - only posting back the page as I click on the different tabs. The RadEditors are contained in various user controls that represent the tab contents.

I created a sample app that I attached in order to isolate the problem as much as possible. You can see below that the sample app with one RadEditor leaks memory (although at a lower rate).

It is likely that upgrading to a newer browser would correct the leaks, but unfortunately, we're mandated by corporate IT to use IE8 and have no choice for upgrading the browser (Chrome and Firefox are not an option either).

Both the main app and sample app are built in VS2012 .NET 4.0 using Telerik RadControls for Ajax Q3 2013 v 2013.3.1114.40.

Thanks in advance for any assistance you can provide.

sIEve results of main app (leaks detected when moving between tabs):



Main app code (only snippets, since I can't post entire app):

Typical RadEditor tags:

                <telerik:RadEditor ID="uxContactNotesTextBox" runat="server" style="width:100%;height:100%;" ToolsWidth="144px" EditModes="Design" ToolbarMode="Default" OnClientLoad="OnContactNotesEditorLoad" BorderStyle="Solid" BorderWidth="1px">
                    <Tools>
                        <telerik:EditorToolGroup>
                            <telerik:EditorTool Name="Save" />
                            <telerik:EditorSeparator />
                            <telerik:EditorTool Name="Cut" />
                            <telerik:EditorTool Name="Copy" />
                            <telerik:EditorTool Name="Paste" />
                            <telerik:EditorTool Name="AjaxSpellCheck" />
                        </telerik:EditorToolGroup>
                    </Tools> 
                </telerik:RadEditor>
                <telerik:RadSpell ID="uxContactNoteSpellCheck" runat="server" ControlToCheck="uxContactNotesTextBox" ButtonType="PushButton" Style="display: none;" />

function OnContactNotesEditorLoad(editor, args) {
    // set defaults for editor style
    var style = editor.get_contentArea().style;
    style.fontFamily = 'Segoe UI';
    style.fontSize = '16px';
    style.color = "black";

    // detect when spell check is running
    editor.add_spellCheckLoaded(function () {
        var spell = editor.get_ajaxSpellCheck();

        spell.add_spellCheckStart(function (editor, args) {
            isContactNotesSpellChecking = true;
        });

        spell.add_spellCheckEnd(function (editor, args) {
            isContactNotesSpellChecking = false;
        });
    });
}

sIEve results of sample app (auto-refresh enabled):



Sample app default.aspx:

default.aspx:
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" validateRequest="false"%>
<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>RadEditor Leak</title>
</head>
<body>
    <form id="Form1" runat="server">
    <asp:ScriptManager runat="server">
        <Scripts>
        </Scripts>
    </asp:ScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server" UpdatePanelsRenderMode="Inline"/>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />
    <telerik:RadEditor ID="uxRadEditor" runat="server">
    </telerik:RadEditor> 
</form>
</body>
</html>

-ScottP
Scott
Top achievements
Rank 1
 answered on 18 Feb 2014
0 answers
158 views
I have an application and in it I am trying to pop a popup.

<a href="#" onclick='return ShowForm(<%# Eval("Id") %)'>
    <aps:Label Text='<%#Eval("Id") %>' runat="server />
</a>


This works fine when the id is numeric , but in come cases the id is something like  fp0003223
when I click that link I get a javascript error  0x800a1391- JavaScript runtime error: 'fp0003223' is undefined

Can I only pass numeric

Eric Klein
Top achievements
Rank 1
 asked on 18 Feb 2014
3 answers
125 views
Is there some functionality built into the Telerik Mover Box that would tell me if the control was "dirty" or Has Changed?

Thanks
Thomas
Boyan Dimitrov
Telerik team
 answered on 18 Feb 2014
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?