Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
203 views

I have seen few threads discussing about cursor but none of them are including all these 3 issues. So opening a new thread.

we are using Telerik 2014.2.724.45. I know there are latest versions available. Since our application is already has gone live, we cannot upgrade the version now. So please suggest any hotfix available.

We are facing cursor issue in multiple scenarios.
     1) when some special characters are copy pasted, like ' ' , '\r' or 'char(10)', on editing or deleting cursor moves to some different position.
          we have provided the fix which is mentioned below but still users has reopened this issue. so can you please suggest anything else has to be taken care?
          we have added OnClientPasteHtml="RemoveHtmlContents"
          function RemoveHtmlContents(editor, args) {
                 var pasteText = args.get_value();
                 if (pasteText.indexOf(" ") > -1) {
                         pasteText = pasteText.replace(/ /g, '');
                 }
                 if (pasteText.indexOf("&") > -1) {
                        pasteText = pasteText.replace(/&/g, '&');
                 }
                 pasteText = pasteText.replace(/\r\n|\n|\r/g, ' ');
                args.set_value(pasteText);
          }

2) When track changes are enabled and on pressing enter some time cursor moves back to previous line but on typing it will come to next line
I have found this issue for different version here -  http://feedback.telerik.com/project/108/Feedback/Details/134999-incorrect-behavior-when-pressing-enter-with-enabled-track-changes  will this fix this issue?

 

3) When started editing after enabling track changes. In between if I come back and edit at position a it goes back position b, (a & b are shown in the image attached.

Marin Bratanov
Telerik team
 answered on 15 Aug 2016
1 answer
180 views
we are using Telerik 2014.2.724.45. I know there are latest versions available. Since our application is already has gone live, we cannot upgrade the version now. So please suggest any hotfix available.

We are enabling track changes property
1) When making the content Bold using shortcut (CTRL + B) or from the option provided by radeditor, there appears box some times(please see the attachment).

2) Some times there are more than 1 reject track changes button appears on the screen. (please see the attachment).
Marin Bratanov
Telerik team
 answered on 15 Aug 2016
1 answer
144 views

Hi I have added a date column using 

         // Add a new column for the date
                GridTemplateColumn gridTemplateColumn1 = new GridTemplateColumn();
                gridTemplateColumn1.HeaderText = "Creation Date";
                gridTemplateColumn1.SortExpression = "Date";
                gridTemplateColumn1.UniqueName = "Date";
                gridTemplateColumn1.DataField = "Date";
                RadFileExplorer1.Grid.Columns.Add(gridTemplateColumn1);

 

But i cant see how to populate the column. 

 

Vessy
Telerik team
 answered on 15 Aug 2016
3 answers
144 views

Hi I am trying to rename the Upload item in the contextual menu. But i cant find anywhere how to do this.

 

Any help would be appreciated.

Vessy
Telerik team
 answered on 15 Aug 2016
7 answers
798 views
If a radwindow with a contenturl is rendered as an iframe, how is one with a content template rendered?

Also,
What is the actual effect of using the destroy onclose property? If it is not used, how is the form "stored"?
Marin Bratanov
Telerik team
 answered on 15 Aug 2016
3 answers
167 views

Hello,

I would like to ask you, how to use em or % unity instead of px when calling radalert from client side. I follow code script from documentation:

http://docs.telerik.com/devtools/aspnet-ajax/controls/window/alert,-confirm,-prompt-dialogs/radalert-dialog

Parameters width and height accept only values in px. But what If I want to change radalert window width based on different screen resolutions ?

My example is in the attachment. The radalert has width 420px. When user changes screen resolution to small, it means @media only screen and (min-width: 361px) and (max-width: 768px). Font has been changed but radalert window width remained the same (I want to decrease its width based on resolution).

Please help me to solve this issue.

Thank you.

Best regards

Vasssek

Marin Bratanov
Telerik team
 answered on 15 Aug 2016
1 answer
787 views

I am not getting the DataValueField from AutoCompleteBox using JAVASCRIPT.

I am getting the Text name of the field but not there ID/Value.\

i go thru various Telerik post ,i founf get_value() function but  when i am using it dosn't work.

suggest me the what can i do.

<p> function textChanged(sender, eventArgs) {</p>
alert("The text currently present in the input area of RadAutoCompleteBox is: " + eventArgs.get_text());<br>
 }

this textChanged function i put on

<telerik:RadAutoCompleteBox RenderMode="Lightweight" ID="txtPatient" runat="server" Filter="Contains" Width="100%"<br>InputType="Text" DataValueField="MTPatientID" DataTextField="Patient" EmptyMessage="Select Patient" WebServiceSettings-Method="BindAllpatient" MinFilterLength="4" OnClientTextChanged="textChanged"><br> <WebServiceSettings Method="GetCompanyNames" Path="QAFileProcess.aspx" /><br>                                <TextSettings SelectionMode="Single" /><br></telerik:RadAutoCompleteBox>

 

please suggest me how can i find the value.

Nencho
Telerik team
 answered on 15 Aug 2016
1 answer
430 views

Hello, Does anyone know if Telerik has any controls that can create a gui decision tree?  I am looking to create something similar to http://www.activecampaign.com/automation/

 

Thanks in advance!

Vessy
Telerik team
 answered on 15 Aug 2016
0 answers
126 views

telerik:RadRibbonBar crashed when put telerik:RadRibbonBar  inside another telerik:RadRibbonBar and place telerik:RibbonBarTemplateItem in child telerik:RadRibbonBar.

Error on page is:  "Cannot read property 'width' of undefined"

 

 

<telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" EnableMinimizing="true" Width="100%" Minimized="True" RenderMode="Lightweight">
        <Tabs>
            <telerik:RibbonBarTab Text="Dashboard">
                <telerik:RibbonBarGroup Text="Dashboard">
                    <Items>
                        <telerik:RibbonBarTemplateItem>
                            <telerik:RadRibbonBar ID="RadRibbonBar2" runat="server" EnableMinimizing="true" Width="100%" Minimized="True" RenderMode="Lightweight">
                                <Tabs>
                                    <telerik:RibbonBarTab Text="My Account">
                                        <telerik:RibbonBarGroup Text="Accounts">
                                            <Items>
                                                <telerik:RibbonBarTemplateItem>
                                                    <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton"></telerik:RadButton>
                                                </telerik:RibbonBarTemplateItem>
                                            </Items>
                                        </telerik:RibbonBarGroup>
                                    </telerik:RibbonBarTab>
                                </Tabs>
                            </telerik:RadRibbonBar>
                        </telerik:RibbonBarTemplateItem>
                    </Items>
                </telerik:RibbonBarGroup>
            </telerik:RibbonBarTab>
        </Tabs>
    </telerik:RadRibbonBar>
SURYA
Top achievements
Rank 2
 asked on 14 Aug 2016
4 answers
402 views
I have in my aspx page the following structure where i load the data from a datatable.

<telerik:RadBinaryImage runat="server" ID="rbiTeste" AutoAdjustImageControlSize="true" />
  
<telerik:RadGrid runat="server" ID="radGridUsuarios" GridLines="None" ShowFooter="False"
    AllowSorting="True" ShowGroupPanel="False" AutoGenerateColumns="False" AllowPaging="True"
    OnPreRender="radGridUsuarios_PreRender" OnNeedDataSource="radGridUsuarios_NeedDataSource"
    OnItemCommand="radGridUsuarios_ItemCommand" OnItemDataBound="radGridUsuarios_ItemDataBound"
    PageSize="30">
    <MasterTableView DataKeyNames="ID_USUARIO" EnableHeaderContextMenu="False" AllowMultiColumnSorting="False">
        <Columns>
            <telerik:GridBoundColumn DataField="ID_USUARIO" HeaderText="Id" SortExpression="ID_USUARIO" Visible="false" />
            <telerik:GridBoundColumn DataField="USU_NOME" HeaderText="Nome" SortExpression="USU_NOME" />
            <telerik:GridBoundColumn DataField="SEX_DESC" HeaderText="Sexo" SortExpression="SEX_DESC" />
            <telerik:GridBoundColumn DataField="USU_EMAIL" HeaderText="E-mail" SortExpression="USU_EMAIL" />
            <telerik:GridBoundColumn DataField="USU_DTNASC" HeaderText="Aniversário" SortExpression="USU_DTNASC" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" />
            <telerik:GridBoundColumn DataField="USU_DTCADASTRO" HeaderText="Data de Cadastro" SortExpression="USU_DTCADASTRO" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" />
            <telerik:GridBoundColumn DataField="PF_DESC" HeaderText="Perfil" SortExpression="PF_DESC" />
            <telerik:GridBoundColumn DataField="USU_ATIVO" HeaderText="Ativo?" SortExpression="USU_ATIVO" />
        </Columns>
        <NestedViewTemplate>
            <asp:Panel runat="server" ID="pnlDetalhes">
                <telerik:RadTabStrip runat="server" ID="radTabDetalhes" MultiPageID="radMultiDetalhes"
                    SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Detalhes" PageViewID="pgDetalhes" />
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage runat="server" ID="radMultiDetalhes" SelectedIndex="0" RenderSelectedPageOnly="false">
                    <telerik:RadPageView runat="server" ID="pgDetalhes" Width="500px">
                        <div>
                            <table border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td valign="top">
                                        <div style="padding: 10px;">                                          
                                            <telerik:RadBinaryImage runat="server" ID="rbiAvatarSelecionado" DataValue='<%# Eval("USU_FOTO") == null ? null : (byte[])Eval("USU_FOTO") %>' AlternateText='<%# Eval("USU_NOME", "Avatar de {0}") %>' AutoAdjustImageControlSize="true" Visible='<%# Eval("USU_FOTO") == null ? false : true %>' />
                                        </div>
                                    </td>
                                    <td>
                                        <asp:DetailsView ID="dvUsuarioDetalhes" AllowPaging="false" GridLines="None" runat="server"
                                            Font-Italic="true" AutoGenerateRows="false" BorderStyle="None">
                                            <Fields>
                                                <asp:BoundField DataField="USU_CPF" HeaderText="CPF:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="EN_ENDERECO_DESC" HeaderText="Endereço:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="EN_BAIRRO" HeaderText="Bairro:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="EN_CIDADE" HeaderText="Cidade:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="UF_SIGLA" HeaderText="Estado:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="EN_CEP" HeaderText="Cep:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_CEL" HeaderText="Celular:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_TEL" HeaderText="Telefone:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_MSN" HeaderText="MSN:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_FACEBOOK" HeaderText="Facebook:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_TWITTER" HeaderText="Twitter:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                                <asp:BoundField DataField="CON_SKYPE" HeaderText="Skype:" HeaderStyle-Font-Italic="false" HeaderStyle-Font-Bold="true" />
                                            </Fields>
                                        </asp:DetailsView>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </asp:Panel>
        </NestedViewTemplate>
    </MasterTableView>
    <ClientSettings AllowDragToGroup="False" AllowColumnsReorder="False">
        <Resizing AllowColumnResize="False" />
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="False" />
</telerik:RadGrid>

In my control (<telerik:RadBinaryImage ID=rbiAvatarSelecionado /> in <NestedViewTemplate>) is not showing the image.
But doing a test with this control (<telerik:RadBinaryImage ID=rbiTeste  />) works fine!

DataTable dtUsuarioDetalhes = new DataTable();
dtUsuarioDetalhes = new UsuarioBLL().ListarDetalhes(1);
rbiTeste.DataValue = (byte[])dtUsuarioDetalhes.Rows[0]["USU_FOTO"];

Why i can't show the image in grid?

Thank you in advance!
Ahmad
Top achievements
Rank 1
 answered on 13 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?