Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
I have a strange thing when entering values in a RadNumericTextbox with and without decimals. I was able to reproduce the behavior with this simple form:
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
       <telerik:RadScriptManager ID="rcmMain" runat="server"></telerik:RadScriptManager>
    <div>
        <h2>Sample</h2>
         <telerik:RadNumericTextBox ID="txtNumber" runat="server"></telerik:RadNumericTextBox>
         <telerik:RadNumericTextBox ID="txtNumber2" runat="server"></telerik:RadNumericTextBox>
    </div>
    </form>
</body>
</html>
 
To reproduce do the following:
1) In the first textbox enter 2.2 (i have Swedish culture set so comma (,) is my my decimal separator).
2) Using the mouse, click the second textbox.
3) My first textbox now shows 2.20 (and thats what i expected).
4) Click the first textbox again (value selected).
5) Just enter a 2 on the keyboard
6) Click on the second textbox

My first textbox still shows 2.20 but I was expecting 2.00!

This surely cannot be an expected behavior, is there something I am missing?  A property that must be set?

The funny thing is that I can cure this behavior by pressing [ENTER] while in the first textbox. After that all works as expected.

Using v.2012.2.607.40 components.

Anyone got an idea what this is all about?
Milena
Telerik team
 answered on 17 Jul 2012
7 answers
291 views
Hi,

I am using the timeline view to schedule jobs to our users. I need to be able to show the full subject name which can be rather long. I have setup some custom CSS  classes that get applied to appointments with long names. (This can be seen in LongApName.png)

These appointments look fine, until you put two on the same day. Then they can overlap.

In thisTimeline Demo the "Margaret Morrison Main Room" Row has a height of 75px, Where is this set? I believe this could be a workaround to my real problem.

Cheers, Grant Cannan
Andy
Top achievements
Rank 1
Iron
 answered on 17 Jul 2012
1 answer
119 views
Hi, I want to change htm's name and his links too, for this i'm trying to use radeditor, my question is, it's posible to modify links in htm with radeditor in c#?, i'm trying with this code:
 RadEditor1.Content = ReadFile(Server.MapPath("~/"+Root()+"/example.htm");
                    string mod = Root().Replace(" ", "%20");
                    RadEditor1.Content.Replace("href='"+mod,"href='"+NewRoot);
                     using (StreamWriter externalFile = new StreamWriter(Path.Combine(Server.MapPath("~/"+NewRoot), "Newexample.htm"), false, Encoding.UTF8))//Open file for writing and write content
                    {
                        externalFile.Write(RadEditor1.Content);
                    }
 protected string ReadFile(string path)
    {
        if (!System.IO.File.Exists(path))
        { return string.Empty; }//fin if file exists
        using (System.IO.StreamReader sr = new System.IO.StreamReader(path, Encoding.GetEncoding("macintosh")))
        { return sr.ReadToEnd(); }
    }
but I think that Replace() no work with html, please help me
Rumen
Telerik team
 answered on 17 Jul 2012
1 answer
173 views
Hi, 

Since 2012.2.607.35 my delete column imageurl is not showing my custom image anymore. It is showing the Telerik default one.

I didn't change anything in my code.

ASPX:
<telerik:RadGrid ID="gridAllergies" runat="server" CellSpacing="0" GridLines="None">
            <ClientSettings>
                <Selecting CellSelectionMode="None"></Selecting>
            </ClientSettings>
            <MasterTableView CommandItemDisplay="Top">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column"
                        ButtonType="ImageButton" EditText="Modifier" Resizable="False" EditImageUrl="Images/Icons/006-Write-New-Icon.png"
                        UniqueName="colEdit">
                        <HeaderStyle Width="32px"></HeaderStyle>
                        <ItemStyle Width="32px" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn CommandName="Delete"
                        FilterControlAltText="Filter column column" Text="Supprimer" UniqueName="colDelete"
                        ButtonType="ImageButton" ImageUrl="Images/Icons/059-Close-Delete-circle-Icon.png"
                        ConfirmDialogType="Classic">
                        <HeaderStyle Width="32px"></HeaderStyle>
                        <ItemStyle Width="32px" />
                    </telerik:GridButtonColumn>
                    <telerik:GridBoundColumn DataField="palg_noauto" FilterControlAltText="Filter column1 column"
                        UniqueName="colNoAuto" Visible="False" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="allergie" FilterControlAltText="Filter column2 column"
                        UniqueName="colAllergie" CurrentFilterFunction="StartsWith" FilterDelay="1500"
                        ShowFilterIcon="false" ReadOnly="True">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="isGroupe" DataType="System.Boolean" FilterControlAltText="Filter column column"
                        ReadOnly="True" UniqueName="colIsGroupe" ShowFilterIcon="false" AllowFiltering="False">
                        <ItemStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" Width="64px" />
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridDateTimeColumn DataField="Date" FilterControlAltText="Filter column3 column"
                        UniqueName="colDate" CurrentFilterFunction="StartsWith" FilterDelay="1500" ShowFilterIcon="false"
                        DataType="System.String" EditFormHeaderTextFormat="">
                    </telerik:GridDateTimeColumn>
                    <telerik:GridDropDownColumn FilterControlAltText="Filter column8 column" UniqueName="colGenerique"
                        ListValueField="gene_numero" ListTextField="gene_nom" ShowFilterIcon="False"
                        Visible="False" DropDownControlType="RadComboBox" DataField="gene_numero">
                    </telerik:GridDropDownColumn>
                    <telerik:GridDropDownColumn FilterControlAltText="Filter column7 column" UniqueName="colGroupeDesc"
                        ListValueField="gral_numero" ListTextField="gral_description" ShowFilterIcon="False"
                        Visible="False" DropDownControlType="RadComboBox" DataField="gral_numero">
                    </telerik:GridDropDownColumn>
                    <telerik:GridBoundColumn DataField="palg_texte_1" FilterControlAltText="Filter column4 column"
                        UniqueName="colTexte1" CurrentFilterFunction="StartsWith" FilterDelay="1500"
                        ShowFilterIcon="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="palg_texte_2" FilterControlAltText="Filter column5 column"
                        UniqueName="colTexte2" CurrentFilterFunction="StartsWith" FilterDelay="1500"
                        ShowFilterIcon="false">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="isImprime" FilterControlAltText="Filter colImprimer column"
                        UniqueName="colImprimer" Visible="False">
                    </telerik:GridCheckBoxColumn>
                </Columns>
                <SortExpressions>
                    <telerik:GridSortExpression FieldName="allergie" SortOrder="Ascending" />
                </SortExpressions>
                <EditFormSettings>
                    <EditColumn ButtonType="PushButton" CancelText="Annuler" UpdateText="Enregistrer"
                        InsertText="Ajouter" FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <EditItemStyle BackColor="Silver" />
        </telerik:RadGrid>

Thanks.
Shinu
Top achievements
Rank 2
 answered on 17 Jul 2012
1 answer
54 views
Hi,

how can i fire Javascript function when "Check All" in RadCombobox is checked.

Thanks
Princy
Top achievements
Rank 2
 answered on 17 Jul 2012
1 answer
138 views
Hi,

I was using the file explorer to load files from a shared path as shown in the article http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/physical-paths-and-different-content-types.aspx.
I have a couple of file explorer controls on my page. For one of them the shared path is formed dynamically. When I run the project I am not able to see files in that control. Is it because I don't have a mapping specified for that particular path. How can i resolve this?
Dobromir
Telerik team
 answered on 17 Jul 2012
1 answer
79 views

What is wrong with what I did below. the current directory has 149 files. I change directories to one I know has 0 file and I still get 149 files for the count.

var explorer = $find("RadFileExplorer1");
var treeDir = explorer.get_tree().get_selectedNode();
var currentDir = explorer.getFileExplorerItemFromNode(treeDir).get_path(); // explorer.get_currentDirectory();
explorer.set_currentDirectory(currentDir, 0);
explorer.clearFolderCache();
var filesCnt = explorer.get_fileList().get_items().length;
Dobromir
Telerik team
 answered on 17 Jul 2012
1 answer
65 views
On Firefox (not with IE or Chrome) with the latest version of Telerik editor I get a new <br /> at end of text at every post to the page.

This occur only when switching to html view . Any way to avoid this ???


UPDATE: this occur only with ConvertToXhtml enabled. 


Currently we have this filters enabled:
RemoveScripts,EncodeScripts,FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,OptimizeSpans,ConvertToXhtml,ConvertCharactersToEntities,IndentHTMLContent


with newlinemode P
Rumen
Telerik team
 answered on 17 Jul 2012
1 answer
673 views
Ok, I have a radgrid (nothing fancy)

<telerik:RadGrid runat="server" ID="rgdGroupOrder" CellSpacing="0" GridLines="None">
    <MasterTableView AutoGenerateColumns="False">
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>
        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridBoundColumn DataField="Accession" DataType="System.Int64" FilterControlAltText="Filter Accession column"
                HeaderText="Acc #" SortExpression="Accession" UniqueName="Accession">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Description" FilterControlAltText="Filter Description column"
                HeaderText="Exam" SortExpression="Description" UniqueName="Description">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Status column"
                HeaderText="Status" SortExpression="Status" UniqueName="Status">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ScheduleTime" DataType="System.DateTime" FilterControlAltText="Filter ScheduleTime column"
                HeaderText="Time" SortExpression="ScheduleTime" UniqueName="ScheduleTime" DataFormatString="{0:t}">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Modality" FilterControlAltText="Filter Modality column"
                HeaderText="Modality" SortExpression="Modality" UniqueName="Modality">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ExamDate" DataType="System.DateTime" FilterControlAltText="Filter ExamDate column"
                HeaderText="ExamDate" SortExpression="ExamDate" UniqueName="ExamDate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Resource" FilterControlAltText="Filter Resource column"
                HeaderText="Resource" SortExpression="Resource" UniqueName="Resource">
            </telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings>
            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
            </EditColumn>
        </EditFormSettings>
    </MasterTableView>
    <FilterMenu EnableImageSprites="False">
    </FilterMenu>
</telerik:RadGrid>

And I have a radiobutton list (also not fancy)
<asp:RadioButtonList ID="rblGroupOptions" runat="server" AutoPostBack="false">
    <asp:ListItem Text="Apply to this exam only" Value="single"></asp:ListItem>
    <asp:ListItem Text="Apply to all in this group with same modality" Value="modality"
        Selected="True"></asp:ListItem>
    <asp:ListItem Text="Apply to all in this group for all modalities" Value="all"></asp:ListItem>
</asp:RadioButtonList>

And I have javascript functions that filter the grid based off of the radiobuttonlist
<telerik:RadCodeBlock ID="radcodeblock1" runat="server">
    <script type="text/javascript">
 
        function filterByAcc() {
            var grid = $find("<%=rgdGroupOrder.ClientID %>");
            if (grid != null) {
                var acc = "<%= AccessionNumber %>";
                var master = $find('<%=rgdGroupOrder.ClientID %>').get_masterTableView();
                master.filter("Modality", "", "NoFilter");
                master.filter("Accession", acc, "EqualTo");
            }
        }
        function filterByModality() {
            var grid = $find("<%=rgdGroupOrder.ClientID %>");
            if (grid != null) {
                var modality = "<%= Modality %>";
                var master = $find('<%=rgdGroupOrder.ClientID %>').get_masterTableView();
                master.filter("Accession", "", "NoFilter");
                master.filter("Modality", modality, "EqualTo");
            }
        }
        function clearFilters() {
            var grid = $find("<%=rgdGroupOrder.ClientID %>");
            if (grid != null) {
                var master = $find('<%=rgdGroupOrder.ClientID %>').get_masterTableView();
                master.filter("Modality", "", "NoFilter");
                master.filter("Accession", "", "NoFilter");
            }
        }
    
    </script>
</telerik:RadCodeBlock>

I've tied these javascript functions to the clientside clickevents of the radiobuttons. 

Not only do they not work, but they cause a postback that I have to handle using the radajaxmanager.  Which is what I was trying to avoid because this is in a usercontrol and some of the pages may have a lot of data on them.

Now, because it IS posting back I can set the filters server-side which I want to completely avoid.

Any suggestions?
Eyup
Telerik team
 answered on 17 Jul 2012
1 answer
65 views
ASP.NET AJAX: 2012.2.607.40
Visual Studio 2010 SP1
Browsers: Internet Explorer 8, Firefox 13, Opera 11

Hello,

If the ID of a RadGrid contains the word "Header", Javascript exeption raises on filter button of a column, the filter menu doesn't appear (see annexed image BugIDGrid_FilterJavascript.jpg), doesn't matter the DataSource of the RadGrid.

Below a list of IDs containing the word "Header" that give or not the mentionned javascript expection.
  • "Header_...": exception raised
  • "_Header_...": ok
  • "M_Header...": exception raised
  • "MHeader....": ok

Can Telerik and someone else confirm this problem?

Line raising the exception:

this._buildFilterMenuItemList(this._filterMenu,f._data.FilterListOptions,f._data.DataTypeName,f._data.CurrentFilterFunction,f);
The variable 'f' is null, because the following function, getColumnByUniqueName(), above the previous line returns null:
var f=a.getColumnByUniqueName(i);
The function getColumnByUniqueName() calls "this.get_columns()" of RadGrid that returns an empty list in this case even if columns are added declaratively in RadGrid.

One workaround, of course, is not to use the word "Header" for an ID of Telerik controls.

Best regards,
Alain

Eyup
Telerik team
 answered on 17 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?