Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
169 views

I've found a bug, it's strange but it's working if i remove a parameter.

I'm french and i've got an application made since year and use Telerik 2017.3 (same in recent) the problem was found by a user who use "point" in numeric pad.

I know this problem was resolved since years, and other website in my society. but i've searched why is again present. and make sample to find difference and remove parameter by parameter of RadNumericTextbox to find who blocked :

Originale code

<telerik:RadNumericTextBox ID="rntbMontantMensuel" runat="server" Enabled="true" IncrementSettings-InterceptArrowKeys="False" IncrementSettings-InterceptMouseWheel="False" DataType="Currency" ShowSpinButtons="false" MinValue="0" NumberFormat-DecimalDigits="2" RenderMode="Auto" EnabledStyle-Width="220px" EmptyMessage="0 " EnabledStyle-HorizontalAlign="right" FocusedStyle-HorizontalAlign="right" ReadOnlyStyle-HorizontalAlign="Center" HoveredStyle-HorizontalAlign="right" Type="Currency" AutoPostBack="true" ClientEvents-OnFocus="disableValide" ClientEvents-OnBlur="enableValide" NumberFormat-KeepNotRoundedValue="True"></telerik:RadNumericTextBox>

Code worked :

<telerik:RadNumericTextBox ID="rntbMontantMensuel" runat="server" Enabled="true"  IncrementSettings-InterceptMouseWheel="False" DataType="Currency" ShowSpinButtons="false" MinValue="0" NumberFormat-DecimalDigits="2" RenderMode="Auto" EnabledStyle-Width="220px" EmptyMessage="0 " EnabledStyle-HorizontalAlign="right" FocusedStyle-HorizontalAlign="right" ReadOnlyStyle-HorizontalAlign="Center" HoveredStyle-HorizontalAlign="right" Type="Currency" AutoPostBack="true" ClientEvents-OnFocus="disableValide" ClientEvents-OnBlur="enableValide" NumberFormat-KeepNotRoundedValue="True"></telerik:RadNumericTextBox>

Yes if i've IncrementSettings-InterceptArrowKeys="False"

when user press "." in numeric pad, i've got an icon "block" (red cross inside circle) and don't change my point to coma (French decimal separator)

 

Vincent
Top achievements
Rank 1
Iron
Iron
 answered on 16 Jul 2021
1 answer
142 views

Hi, 

Currently working with a RadGrid on ASP.Net AJAX, I'm using a GridTemplateColumn to display some informations. Here's the code :

<telerik:GridTemplateColumn AutoPostBackOnFilter="true" UniqueName="UniqueName1" HeaderText="Header text" HeaderStyle-HorizontalAlign="Center" FilterControlWidth="80%" >
   <ItemTemplate>
      <asp:Literal ID="Literal1" Text='<%# MyFunction(DataBinder.Eval(Container.DataItem, "myField").ToString())%>' runat="server" />
   </ItemTemplate>
</telerik:GridTemplateColumn>

The problem is : I've got a code "myField" wich is returned from the datasource. Then I load a full string from this code with the function "MyFunction".

What I would like to do is to be able to group the column on the resulting string of the function, not on the code.

Hope you can help.

Doncho
Telerik team
 answered on 16 Jul 2021
1 answer
103 views

Here is my code

 

Markup

<EditFormSettings EditFormType="Template">
   <FormTemplate>
      <table id="tblEmployeeDetails" style="width:100%">
         <tr class="EditFormHeader">
            <td colspan="2">
               <b>EMPLOYEE DETAILS</b>
            </td>
         </tr>
         <tr>
            <td class="labelHeader">Manager Full Name:</td>
            <td>
               <telerik:RadComboBox RenderMode="Lightweight" ID="rcbManageFullNameEdit" DataSourceID="SQL_Employees" 
                  DataTextField="FULLNAME" DataValueField="IDNUM" Width="200px" AppendDataBoundItems="true" 
                  SelectedValue='<%#Eval("MANAGER_IDNUM")%>' runat="server" OnItemCreated="rcbManageFullNameEdit_itemCreated">
                  <Items>
                     <telerik:RadComboBoxItem Text="-- CHOOSE --" Value ="0" />
                  </Items>
               </telerik:RadComboBox>
    </td>
         </tr>
      </table>   
   </FormTemplate>
</EditFormSettings>

VB.Net Code

Protected Sub rcbManageFullNameEdit_itemCreated(ByVal sender As Object, ByVal e As RadComboBoxItemEventArgs)
        Dim item As RadComboBoxItem = e.Item
        Dim x = item.Value

        Dim dt1 As DataTable = New DataTable
        dt1 = DAL.spHR_GetManagerList()

        Dim dv1 As DataView = dt1.DefaultView

        For Each row1 As DataRowView In dv1
            If item.Value = row1!IDNUM Then
                item.CssClass = "manager"
            End If
        Next
End Sub

 

My item.Value is always empty.

Attila Antal
Telerik team
 answered on 15 Jul 2021
0 answers
174 views

Hi,

I created a test RadMap and I'm getting some odd results. Here is the code:

 

<telerik:RadMap RenderMode="Lightweight" runat="server" ID="RadMap1" Zoom="6" Width="600" Height="500" >
    <CenterSettings Latitude="51.525619" Longitude="-0.111802" />
    <LayersCollection>
        <telerik:MapLayer Type="Tile" Subdomains="a,b,c"
                    UrlTemplate="https://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png"
                    Attribution="&copy; <a href='http://osm.org/copyright' title='OpenStreetMap contributors' target='_blank'>OpenStreetMap                    contributors</a>.">
                </telerik:MapLayer>
    </LayersCollection>
    <MarkersCollection>
        <telerik:MapMarker Shape="pinTarget" Title="London, UK">
            <LocationSettings Latitude="51.525619" Longitude="-0.111802"/>
        </telerik:MapMarker>
        <telerik:MapMarker Shape="pin" Title="Test">
            <LocationSettings Latitude="53.525619" Longitude="-1.111802"/>
        </telerik:MapMarker>

    </MarkersCollection>
</telerik:RadMap>

 

So the pin target and pin show the same icon, the icon is clipped, and when you zoom out the marker is in the completely wrong location. I'm not sure where to go from here. I haven't modified any css or applied any custom styles to the icons. Any help would be appreciated.

 

Thanks!

Ryan
Top achievements
Rank 1
 asked on 12 Jul 2021
0 answers
146 views
I am trying to add a multiselect drop down inside a rad grid. Can someone direct me to a simple example for this?
h
Top achievements
Rank 1
 asked on 09 Jul 2021
1 answer
225 views

Hi there,

              I have used your example code to be able to export a chart to PDF

<script>
     function exportChartToPDF() {
         var $ = $telerik.$;
         $get('<%=RadClientExportManager1.ClientID%>').exportPDF($(".RadHtmlChart"));
     }
     function exportChartToImage() {
         var $ = $telerik.$;
         $find('<%=RadClientExportManager1.ClientID%>').exportImage($(".RadHtmlChart"));
     }
</script>

I have this triggered by a button and it is working, but I need to be able to export a specific RadHTMLchart.

I have limited knowledge of this in page scripting.

 

the supplied function finds the first instance of the type requested, is there a way to find a specific control?

Please excuse my lack of understanding, I am finding my feet with this stuff.

Thanks.

Vessy
Telerik team
 answered on 09 Jul 2021
1 answer
342 views

Is there any option to enable or show the horizontal scroll bars in Multicolumncombobox on VB.Net 2012 development environment?

Thanks in advance

Sachin

 

Vessy
Telerik team
 answered on 08 Jul 2021
1 answer
297 views

I have inherited a solution from a developer that's no longer here. I am new to Telerik and not sure what the problem is with this project. In the extensions menu, it tells me to convert to a Telerik project even though it is already a telerik project. I have been told not to use the convert option because it causes problems when it's already an existing Telerik solutions. I have manually removed references that were marked when the build failed and tried to re-add them but I can't find Telerik.Web, only Telerik.Win

Is there something I can update in the web.config or elsewhere that will allow the project to references to reconnect?

Doncho
Telerik team
 answered on 08 Jul 2021
0 answers
114 views

This is odd, I am using the latest SP1 libraries and have followed all the steps and only see this in the WPF application. The Activities column should look like a drop-down combo box when the green checkbox is showing. Obviously, I am missing something, but not sure what it is. I hope I can look at it fresh in the morning and figure it out, but if there are tips, please let me know.

My XAML has this definition for the column:

<telerik:GridViewComboBoxColumn Header="Activities" Width = "271" DataMemberBinding = "{Binding Description}" SelectedValueMemberPath = "SicCodeValue" DisplayMemberPath = "SicCodeDescription" IsLightweightModeEnabled="true" IsComboBoxEditable="True">
</telerik:GridViewComboBoxColumn>


and I set up my itemssource via code using the following line on data load:

(this.myList.Columns[2] as GridViewComboBoxColumn).ItemsSource = (ViewModel as MyViewModel).SicCodes;

Pavel
Top achievements
Rank 1
Iron
Iron
 asked on 08 Jul 2021
37 answers
1.7K+ views
Hi,

I am using a RadGrid (Q1 2009) to edit a column of "percentages" and I am not getting the behaviour I would expect - though my expectation may be wrong.

The values stored in the database are "factors" i.e. 0.015 (for a number which the user should "see" as 1.5%), and, if I set the DataFormatString to be {0:p4} my values are displayed as expected (they are multiplied by 100 and displayed to 4 decimal places).

I would like the user to edit the values in the same way i.e. they edit/enter 12.5600% and what gets written to the database is 0.125600 and what is then re-displayed is 12.5600 %. But leaving the NumericType as "Number" ignores the DataFormatString (the value is displayed as 0.1256), and setting the NumericType to "percent" just results in a % sign being appended to the unmultiplied number (so they have to edit it as 0.125600%) which is frankly wrong.

It seems a little odd to me - is this intentional (by design), is there anything I can do to easily fix it?
Doncho
Telerik team
 answered on 07 Jul 2021
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?