Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
965 views
Hello,

I have tried to set the text property in code-behind to "\n", Environment.Newline, Server.HtmlDecode("Carriage
return");
and "<br />" but nothing has created multiline text on RadButton. My searching for answers has also found the aspx
templating : 
<
ContentTemplate>
        <span>RadButton Content</span><br />
<span>RadButton Content2</span>
 </ContentTemplate>
but even this is not giving me multiple lines.
Is there any other workaround for this ?

Martin

Doncho
Telerik team
 updated answer on 13 Oct 2022
1 answer
285 views

Hello,

Is it possible to put Aggregate="sum" on the header as on the screenshot below?

I'm able to do it on the footer. I would like to also show it on the header.

Regards,

Nicolas

Doncho
Telerik team
 answered on 13 Oct 2022
1 answer
176 views
Hello,

I would like to know the smallest way to change an image to text when exporting to excel.

My column is of type GridTemplateColumn with a literal object carrying the image, as in the example below, inside an ItemDataBound.

  If CBool(e.Item.DataItem("Read")) = True Then
                 litStatus.Text = "<i Class=""fa fa-envelope-open-o fa-2x"" title=""Read""></i>"
             Else
                 litStatus.Text = "<i Class=""fa fa-envelope-o fa-2x"" title=""Unread""></i>"
             End If

Thank you very much in advance
Attila Antal
Telerik team
 answered on 13 Oct 2022
1 answer
215 views

I'm trying to add ToolTip content dynamically with items selected/unselected from the Multiselect control.  The code seems to work with no errors. However, the tooltip doesn't show on mouse over the Multiselect control. 

I also attempted to add an mouseover client attribute event on the Multiselect as well.

Code snippets attached. 

 

Thank you for any help with this issue!

 

 

 

 
Doncho
Telerik team
 answered on 11 Oct 2022
0 answers
190 views

I am trying edit Control buttons within my RadWindow; however I cannot find where I would do this, after hours of researching the code, and documentation of this; no luck.

The page in question generates after clicking a button on a webpage we have setup; I have tried to add style using a few methods:

  • styling the titlebar: .RadWindow table .rwTitlebar inside a styletag and adding more width (no luck)
  • using the master page to do the same
  • Editing the width in the aspx
  • Removing a behavior to see if the controls would align

I have attached pictures for reference, and you can see which file I am showing; please let me know, the picture showing the behaviors, (maximize, minimize, close) are the behaviors/buttons I want to adjust, the close (x button) I want to be aligned with the rest.

 

The button redirects to the pop up/RadWindow is the Review.Aspx page, the Pending.aspx is the page which has the button to click generating the Review page in question.

 

 

Jared
Top achievements
Rank 1
 asked on 10 Oct 2022
0 answers
223 views

I have a use case of displaying athlete weights over time. There is also a constraint of a weight range that is being targeted to which is defined over time as well.

With that, I am trying to display multiple plot bands showing the target weight range (y axis) for a given period (x axis).. I am able to plot the weights however the plot bands do not show up.

For example, one target range is between March 3, 2019 and February 10, 2022 and  the second range is February 11, 2022 onwards.

Matt Smith
Top achievements
Rank 1
Iron
 asked on 08 Oct 2022
1 answer
240 views

I have a grid (gridTask) that has an edit form with a textbox (txtCustomer_Care_Note) and a dropdownlist (listResponsesForTasks). At this point, a user can type into the textbox and save, but I also want the user to be able to select a value from the dropdownlist and the value of their selection go into the textbox. I'm using the dropdown as "canned responses" for responses that are used often so the user doesn't have to type the response over and over.

I have this working somewhere else but with these fields being inside an edit form on the grid, I don't know how to do this. I've included my grid below and have removed quite a bit and only left what I thought was necessary. Can anyone provide an example of how I can achieve this?

<telerik:RadGrid ID="gridTasks" runat="server" >
    <MasterTableView DataKeyNames="Record_ID" EditMode="EditForms" AllowAutomaticUpdates="true" AllowAutomaticDeletes="true">
        <Columns>
            <telerik:GridEditCommandColumn UniqueName="EditCommandColumn"</telerik:GridEditCommandColumn>
            <telerik:GridBoundColumn DataField="Customer_Care_Note" HeaderText="Note from Customer Care"></telerik:GridBoundColumn>
        </Columns>
        <EditFormSettings EditFormType="Template" InsertCaption="Add New Task" CaptionFormatString="Edit Task">
            <FormTemplate>
                <telerik:RadTextBox ID="txtCustomer_Care_Note" Text='<%# Bind("Customer_Care_Note") %>' runat="server" Width="100%" MaxLength="300" TextMode="MultiLine" Rows="3"></telerik:RadTextBox>
                <telerik:RadDropDownList ID="listResponsesForTasks" CssClass="w3-margin-right" runat="server" DataSourceID="sqlResponses" OnItemSelected="listResponsesForTasks_ItemSelected" AutoPostBack="true" DataTextField="Title" DataValueField="Response" Width="250px" DefaultMessage="My Responses"></telerik:RadDropDownList>

                <telerik:RadPushButton runat="server" Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Insert", "Update") %>' CommandName='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "PerformInsert", "Update")%>' CausesValidation="true" Primary="true"></telerik:RadPushButton>
                <telerik:RadPushButton runat="server" Text="Cancel" CommandName="Cancel" CausesValidation="false" Primary="true"></telerik:RadPushButton>
            </FormTemplate>
        </EditFormSettings>
    </MasterTableView>
</telerik:RadGrid>

Attila Antal
Telerik team
 answered on 07 Oct 2022
3 answers
236 views

Hello everyone!

I've got the below RadSiteMap being coded from codebehind (VB). I want to add small icons to the left of each submenu's text however I do not know how. The ImageUrl property apparently does not exist for the RadSiteMap and I cannot think of another way to insert my icons.

Check the attached screenshot to see how my menu looks like and where would I want to add icons. I basically want to add them into the titles and then a different icon to each submenu as well.

Note: My RadMenu is being populated entirely from a database (all of it, parent and childs). If you wish to see the code for a better understanding, I can also leave that in the comments.

Thanks a lot!


Private Function CreateSiteMap(ByVal container As Control, ByVal Id As String) As RadSiteMap
        Try
            System.Diagnostics.Debug.WriteLine("id: " &Id)

            Dim acd As New SiteWeb.AccesDonnees

            'On créer le controle de type RadSiteMap
            Dim SiteMap1 As New RadSiteMap

            'On le configure comme souhaité
            SiteMap1.ID = "SiteMapMenu"
            SiteMap1.DataTextField = "Libelle"
            SiteMap1.DataFieldID = "Identifiant"
            SiteMap1.DataFieldParentID = "Parent"
            SiteMap1.DataValueField = "Libelle"
            SiteMap1.DataNavigateUrlField = "Lienpage"
  
            'This sql receives all the submenus under the current Parent menu
            SiteMap1.DataSource =
            acd.RetournerDataReader("SELECT RTRIM(Identifiant) as Identifiant,RTrim(Libelle) As Libelle,RTrim(Parent) as Parent,RTRIM(Lienpage) as Lienpage,RTRIM(ParentGlobal) As ParentGlobal FROM lobdjetBDD WHERE  NomUser = '" & hf_fonction.Value & "' AND (Parent = '" & Id & "' OR ParentGlobal = '" & Id & "' OR Identifiant = '" & Id & "') Order By Libelle, ChapitreParentGlobal, ChapitreParent,ChapitreEnfant", "EU_BREST")

            SiteMap1.DataBind()

            [.....] I removed this part of the code to make my post smaller on the forums.
 
 container.Controls.Add(SiteMap1)

            Return SiteMap1

        Catch ex As Exception
            Return Nothing
 Exit Function
 End Try
 End Function

 

Valentin Dragnev
Telerik team
 answered on 07 Oct 2022
1 answer
180 views

After I enter a character and press the backspace button, the character does not delete.

However, when I press and hold backspace, or when I select the entire text, the characters will delete .

Like in the image, the 'S' will not be deleted when I am tapping backspace.

This happens only on Android but not on IOS or Web.

Valentin Dragnev
Telerik team
 answered on 07 Oct 2022
1 answer
175 views

I'm using a RadComboBox to search through clients via WebService


<telerik:RadComboBox ID="txtcontraente" runat="server" EmptyMessage="Seleziona un cliente" LoadingMessage="Caricamento in corso..." WebServiceSettings-Method="GetText" WebServiceSettings-Path="/Modules/WS/TContraente_radws_fullname.asmx" MinFilterLength="3" EnableLoadOnDemand="true" MarkFirstMatch="false" Style="max-width: 300px" Width="100%" OnClientKeyPressing="OnClientKeyPressing" DropDownWidth="400px">

    <ClientItemTemplate>
        <table style="width: 100%;">
            <tr>
                <td>#= Attributes.Nominativo #
                </td>
                <td style="text-align: right;">#= Attributes.DataNascita #
                </td>
            </tr>
            <tr>
                <td>#= Attributes.Convenzione #
                </td>
                <td style="text-align: right;">#= Attributes.Societa #
                </td>
            </tr>
        </table>
        <hr style="padding: 0px; margin: 0px;"></hr>
    </ClientItemTemplate>
</telerik:RadComboBox>

The problem I'm having is that sometimes requests overlap and are received at wrong times.
E.g. I search for 'abcd' (which would yield no results), then I delete the 'd' and search becomes 'abc' (which should yield results).
The problem is that sometimes the 'abcd' request is received after the 'abc' request, thus yielding no results.

Attila Antal
Telerik team
 answered on 07 Oct 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?