Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
99 views
I am trying to line up my linkbutton with the rad autocomplete but no matter what I do it always goes to the next line and the linkbutton is on next line instead of inline with the autocomplete.  Dont know hat kind of wierd styling this thing has but it will not allow anything inline with it.  how can I put my linkbutton inline with the autocomplete.  Even tried using a div but also no go.

<table style="width:100%">
       <tr>
           <td style="width:100%;text-align:center">
                <telerik:RadAutoCompleteBox ID="radAutoComplete" runat="server" OnClientRequesting="requesting" EmptyMessage="Enter Users Last Name First Name."
                   InputType="Text" TextSettings-SelectionMode="Single">
                   <WebServiceSettings path="../AutoComplete.asmx" Method="UserAccounts" />
               </telerik:RadAutoCompleteBox>
                <asp:LinkButton ID="lnkView" runat="server" Text="ViewUser"></asp:LinkButton>   
           </td>
       </tr>
   </table>


<div class="CenterDiv">
                <telerik:RadAutoCompleteBox ID="radAutoComplete" runat="server" OnClientRequesting="requesting" EmptyMessage="Enter Users Last Name First Name."
                   InputType="Text" TextSettings-SelectionMode="Single">
                   <WebServiceSettings path="../AutoComplete.asmx" Method="UserAccounts" />
               </telerik:RadAutoCompleteBox>
                <asp:LinkButton ID="lnkView" runat="server" Text="ViewUser"></asp:LinkButton>   
      </div>



































Kevin
Top achievements
Rank 1
 answered on 06 Sep 2013
2 answers
132 views
Thanks all in advance.

We understand how the set_cancel method works within the OnClientFileUploading event.  However, we need to confirm the behaviour when set_cancel(true) is executed.  Does it cancel all the files in a multiple file upload or just the one file?

Also, we would like to do some custom validation within the OnClientFileUploading event but need to get the file extension in order to do this.  We see how to issue args.get_fileName() but need to inspect the extension based on our own invalid extension list.  Is there a file extension method available for this?

Thanks...Bob Baldwin
Trabon Solutions
Bob
Top achievements
Rank 1
 answered on 06 Sep 2013
3 answers
746 views
Hi,
I have added a drop down column in my grid and I managed to get the values that populate it from SqlDataSource2 as following:
<telerik:GridDropDownColumn DataSourceID="SqlDataSource2" ListTextField="Tipo" ListValueField="Tipo" UniqueName="ddl1" HeaderText="A-Tipo" DataField="Tipo"  >
Now what I would like to achieve is to post the selected value, when in edit mode, to a field in a different table that is  DataSource1 "Tipo"
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Test1_managDocDBConnectionString %>" DeleteCommand="DELETE FROM [TableCasaFi] WHERE [TransazioneID] = @TransazioneID" InsertCommand="INSERT INTO [TableCasaFi] ([Tipo], [Scadenza], [InizioPeriodo], [FinePeriodo], [Note], [Pagata]) VALUES (@Tipo, @Scadenza, @InizioPeriodo, @FinePeriodo, @Note, @Pagata)" SelectCommand="SELECT * FROM [TableCasaFi]" UpdateCommand="UPDATE [TableCasaFi] SET [Tipo] = @Tipo, [Scadenza] = @Scadenza, [InizioPeriodo] = @InizioPeriodo, [FinePeriodo] = @FinePeriodo, [Note] = @Note, [Pagata] = @Pagata WHERE [TransazioneID] = @TransazioneID">
        <DeleteParameters>
            <asp:Parameter Name="TransazioneID" Type="Int32" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="Tipo" Type="String" />
            <asp:Parameter DbType="Date" Name="Scadenza" />
            <asp:Parameter DbType="Date" Name="InizioPeriodo" />
            <asp:Parameter DbType="Date" Name="FinePeriodo" />
            <asp:Parameter Name="Note" Type="String" />
            <asp:Parameter Name="Pagata" Type="Boolean" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="Tipo" Type="String" />
            <asp:Parameter DbType="Date" Name="Scadenza" />
            <asp:Parameter DbType="Date" Name="InizioPeriodo" />
            <asp:Parameter DbType="Date" Name="FinePeriodo" />
            <asp:Parameter Name="Note" Type="String" />
            <asp:Parameter Name="Pagata" Type="Boolean" />
            <asp:Parameter Name="TransazioneID" Type="Int32" />
        </UpdateParameters>
    </asp:SqlDataSource>
So the user can select the value from the drop down list and save it in the record.
How can I achieve that? 
Felice
Top achievements
Rank 1
 answered on 06 Sep 2013
1 answer
192 views
Hi,

I am launching a RadWindow using the following Javascript function:

function openRadWindow(url,title,width,height)
            {
                var oWindow = window.radopen(url, null);
                oWindow.set_autoSize(true);
                oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Resize);
                oWindow.set_modal(true);
                oWindow.set_centerIfModal(true);
                oWindow.set_title(title);
                oWindow.set_visibleStatusbar(false);
                oWindow.add_close(OnClientClose);
                oWindow.set_destroyOnClose(true);  // Added to see if it fixes the entire screen becoming modal upon second launching
                //oWindow.set_height(height);
                //oWindow.set_width(width);
                var popupElem = oWindow.get_popupElement(); 
                popupElem.style.zIndex = "" + 7001;
            }

In FireFox and Chrome, things work just fine.
However, in IE8 the page on top of which the window pops up is blank.
See the attached screenshots.

Any suggestions?

Thanks in advance.

Jim
Marin Bratanov
Telerik team
 answered on 06 Sep 2013
1 answer
35 views
Currently we are using Radeditor control. We have set the 4000 maxlenght for this control.If user enter 4000 character and then apply some format/alignment on the text and then again try to add the text then we will lost all the formatting or alignment that we had applied for the text. So according to me, this might be the limitation of this control because if we apply any formatting to the text,HTML text is also gets added into the normal text.

So please any one help on this. How to resolve this or Is it a default behavior of radeditor control.

Telerik version : 2012.1.411.40
Stanimir
Telerik team
 answered on 06 Sep 2013
1 answer
81 views
I have two RadPane left and right of the page

In Left pane  is with radgrid and right pane is RadTabstrip.When i click the row in the radgrid (Itemdatabound event) the right side pane has to change.

This is working fine in Local but giving error in the web.

The error is


Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)
Timestamp: Tue, 3 Sep 2013 11:22:01 UTC


Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.
Line: 868
Char: 13
Code: 0
URI: https://qaizentest.qatarairways.com.qa/QACC.UI/ScriptResource.axd?d=TN7G-b6RTbtU3hFe2Qnj4pTcTZu3eM5TRIgccusA_okb9b_I6S5xI0Cy_mmx5SlvJ3ami41e1_UhcWfR8isM2s3UYrTZ-GWcKqwz_GpS_gm3w_96fIEk2n8lSb5hd-sD0&t=16ab2387


Konstantin Dikov
Telerik team
 answered on 06 Sep 2013
1 answer
497 views
I am trying to update the contents of the control using Javascript.   I can update the value of a simple text box but not the RadEditor.  

In order to update a simple aspx textbox I use the code

var editor = document.getElementById('<%= txtTest.ClientID %>');

editor.value = "some text";

How do i do the same for a RadEditor rich text box?   

Thanks.

(I am using the lastest version of the control)

 

Marin Bratanov
Telerik team
 answered on 06 Sep 2013
3 answers
309 views
I am using Rad Editor version -2010.3.1109.35.

According to my client requirement i need to create font sizes in pts.

For this i have made below changes (I am adding the RadEditor through code)

1.)In ToolsFile by adding "RealFontSize"

 <tools name="MainToolbar" enabled="true">
    <tool name="Bold" />
    <tool name="Italic" />
    <tool name="Underline" />
    <tool separator="true"/>
    <tool name="FontName" />
    <tool separator="true"/>
    <tool name="RealFontSize" />
    <tool separator="true"/>
    <tool name="ForeColor" />
  </tools>
 <realFontSizes>
    <item value="8pt"></item>
    <item value="9pt"></item>
    <item value="10pt"></item>
    <item value="11pt"></item>
    <item value="12pt"></item>
    <item value="14pt"></item>
    <item value="16pt"></item>
    <item value="18pt"></item>
    <item value="20pt"></item>
    <item value="22pt"></item>
    <item value="24pt"></item>
    <item value="26pt"></item>
    <item value="28pt"></item>
    <item value="36pt"></item>
    <item value="48pt"></item>
    <item value="72pt"></item>
  </realFontSizes>
2.)Added event   txtRichTextEditor.OnClientSelectionChange = "OnClientSelectionChange";
    To convert px to pts

   function OnClientSelectionChange(editor, args) {
              var tool = editor.getToolByName("RealFontSize");
            if (tool) {
                setTimeout(function () {
                    var toolval = tool.get_value();
                    if (toolval.indexOf("px") != -1) {
                        var pointval = Math.round(parseInt(toolval) * 0.75) + "pt";
                        tool.set_value(pointval);
                    }
                }, 0);
            }
        }
3.)Content area css file
body
{
   font-family: Arial !important;
   font-size: 14px !important;
   color: black !important;
   background-color: white !important;
   text-align: left !important;
}
blockquote
{
    margin-left:40px !important;
    margin-bottom:0px !important;
    margin-right:0px !important;
    margin-top:0px !important;
}

I have two issues here
1.)Font Size could not be selected beforehand in Chrome and Safari browsers
   NOTE: Able to chage pts in mozilla and IE for the first time with out entering any text in RadEditor
2.)On selecting the font size for the first time and clicking in Text editor the Font Size is getting changed to 12 pt in FF browser and 11 pt in I.E 10 browser
Ex :- Say select the Font Size 22 pt for the first time and click in Text editor. Observed that the Font Size is getting changed to 12 pt/11pt

How can the two issues i have mentioned above be fixed?
How to achieve proper working of RealFontSizes(in pts) in all the browsers(IE,Mozilla,Chrome & Safari)?
Nikolay
Telerik team
 answered on 06 Sep 2013
1 answer
85 views
Hi I have several Rad Combo boxes that could potentially have tens of thousands of results in them and the performance of the combo boxes seems degrade after about 6000.

now i accept the argument that is far to many result to have in a combo anyway so my idea to fixes this was to pre-populate the combo with say 100 results and then allow the user to type in to the combo and get the combo to repopulate with the top 100 result for the search they are doing.  

problem is I needed to access the FilterText property to do this and it defined as a friend and will not let me access it. 

anyone know of a way round this?
Hristo Valyavicharski
Telerik team
 answered on 06 Sep 2013
1 answer
163 views
Hi,

I'm working with a Client that is using RadEditorSharePoint on a SharePoint 2007 solution where in the editor one can add any kind of link manually (f.ex. a mailto link) or choose to browse for a document/page in the SharePoint solution (see Attached screenshots).

Now, the Client has upgraded the site to SharePoint 2010 and also upgraded to the latest Version of RadEditorSharePoint.
Now, when a user chooses to add a link using the editor, a Site Asset dialog (SharePoint) appears, with no possibility to add a external link of any kind. Can only browse for SharePoint-assets (documents, pages, images etc.).

I have tried changing to LinkManager (instead of SPLinkManager) in the ToolsFile.xml file. The Telerik dialog appears where one can add custom links. However, when the user CLICKs the Document Manager, the start path is the current site, with no possibility to navigate up to f.ex. the site colleciton Level (nor any other site).

In the ConfigFile.xml file, I have the following property:
<property name="DocumentsPath"><item>/Documents</item>
According to Telerik's documentation, this should make the dialog start at the site Collection Level. It doesn't.

Is there a different property for the Link dialog or am I just doing something else wrong?

Thanks!
Stanimir
Telerik team
 answered on 06 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?