Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
252 views

Hi,

 

My DevCraft Complete expired on Jan/2018 and I use WPF controls and Reporting Services. I do not want to renew the subscription but my Visual Studio keeps popping up a Subscription Expired Notice! How do I stop that?

 

Thank you.

Rumen
Telerik team
 answered on 04 Sep 2018
3 answers
60 views

Documentation for Telerik UI for ASP.NET AJAX  are not available anymore

https://docs.telerik.com/devtools/aspnet-ajax/introduction

Could you please fix it quiclky.

José

 

 

José
Top achievements
Rank 1
 answered on 04 Sep 2018
3 answers
113 views

Hello

I'd like to be able to change the color of a ScatterSeriesItem point upon clicking. I have tried the following in Javascript; However, it didn't work. I'd appreciate for the help.

 

function seriesClick(e) {

  // change the color of the point to red

   e.point.color = "#ff0000"; 

  // redraw the chart

  var chart = $find("chart").get_kendoWidget();
  chart.redraw();

}

 

In C#, I am able to change a point's color by ScatterSeriesItem.BackgroundColor property, however I need to be able to do it in Javascript.

Thanks.

 

Eyup
Telerik team
 answered on 04 Sep 2018
2 answers
111 views

Hi,

I have a radgrid which contains a template column.  Within the Edit template is a dropdown control.

I have the edit mode to set to batch.  I then have the client method:

<ClientEvents OnBatchEditCellValueChanged="BatchEditCellValueChanged" />

 

This triggers the following method:

function BatchEditCellValueChanged(sender, parameters) {     sender.get_batchEditingManager().saveAllChanges();}

 

The problem I have is that when a user makes a change to the dropdown list the page freezes and then it crashes.

If I remove the template column, the editing works fine.

What do I need to do in order for this to work?

Thanks.

Eyup
Telerik team
 answered on 04 Sep 2018
4 answers
1.1K+ views
hi there,
I have some textboxes (for name, surname etc) and and a radgrid on my web page.(for products for example). all radgrid's rows are in "inplace" edit mode.. When I press to external button, form postbacks. meanwhile All information user entered in ragrid get lost. I think I have to update radgrid first but I don't know how ? because there's no update command column in grid. all rows in edit mode and while postingback I need to update all of them at once. How can achieve this ?
best



    Protected Sub radGridProducts_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles radGridProducts.NeedDataSource
        Dim dt As New DataTable
        dt = DirectCast(Session("RequestMonetDataTable"), DataTable)
        radGridProducts.DataSource = dt
    End Sub
 
    Protected Sub radGridProducts_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles radGridProducts.PreRender
        If Not IsPostBack Then
            For Each item As GridItem In radGridProducts.MasterTableView.Items
                If TypeOf item Is GridEditableItem Then
                    Dim editableItem As GridEditableItem = CType(item, GridDataItem)
                    editableItem.Edit = True
                End If
            Next
            radGridProducts.Rebind()
        End If
    End Sub
 
    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If IsPostBack = False Then
            CreateDataSource()
   end If
 
    Protected Sub CreateDataSource()
        Dim dt As New DataTable
        Dim dr As DataRow
 
        dt.Columns.Add(New Data.DataColumn("ID", GetType(String)))
        dt.Columns.Add(New Data.DataColumn("product", GetType(String)))
        dt.Columns.Add(New Data.DataColumn("quantity", GetType(Integer)))
        dt.Columns.Add(New Data.DataColumn("price", GetType(Decimal)))
 
 
        dr = dt.NewRow
        dr("ID") = 1
        dr("product") = "aaa"
        dr("quantity") = 0
        dr("price") = 0
        dt.Rows.Add(dr)
       
        ' here I add some more rows.....
 
        Session("RequestMonetDataTable") = dt
  
    End Sub
Marin Bratanov
Telerik team
 answered on 03 Sep 2018
11 answers
406 views
Hi,

When using the pie chart I get very small indicators on the legend - the following code has my database driven pie chart on top and a modified version of the sample below it.  The bottom chart shows little square blocks to the left of the legend.  The database driven chart on the top shows tiny blocks - you may need to zoom to see them....

I assume this is a bug?

Regards

Jon

<telerik:RadHtmlChart runat="server" ID="RadHtmlChart2" Width="765px" Height="135px" Transitions="true" Skin="Forest" DataSourceID="SqlDataSource1" >
    <PlotArea >
        <Series>
            <telerik:PieSeries DataFieldY="TaskCount" NameField="TaskType" ></telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>         
         
<telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="765px" Height="135px" Transitions="true" Skin="Forest" >
    <PlotArea >
        <Series>
            <telerik:PieSeries  >
                <Items>
                    <telerik:SeriesItem BackgroundColor="#ff9900" Exploded="true" Name="Internet Explorer" YValue="18.3"></telerik:SeriesItem>
                    <telerik:SeriesItem BackgroundColor="#cccccc" Exploded="false" Name="Firefox" YValue="35.8"></telerik:SeriesItem>
                    <telerik:SeriesItem BackgroundColor="#999999" Exploded="false" Name="Chrome" YValue="38.3"></telerik:SeriesItem>
                    <telerik:SeriesItem BackgroundColor="#666666" Exploded="false" Name="Safari" YValue="4.5"></telerik:SeriesItem>
                    <telerik:SeriesItem BackgroundColor="#333333" Exploded="false" Name="Opera" YValue="2.3"></telerik:SeriesItem>
                </Items>
            </telerik:PieSeries>
        </Series>
    </PlotArea>
</telerik:RadHtmlChart>
Vessy
Telerik team
 answered on 03 Sep 2018
3 answers
247 views

I have radgrid with some data and timer, I want to move next page automatically in radgrid every 5 second and then back to first page when meet the last page.

How do I set this radgrid automatically move next page?

Below is my aspx page:

ASPX:
 </telerik:RadAjaxLoadingPanel> <asp:Timer ID="Timer1" runat="server"  Interval="5000">
 </asp:Timer>     

<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="-1" DataSourceID="SqlDataSource1" GridLines="Both"     GroupPanelPosition="Top"  Skin="BlackMetroTouch"  Width="100%" Height="800px"  AllowPaging="True" >
        <MasterTableView AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
            <Columns>
                <telerik:GridBoundColumn DataField="ID_Mesin" FilterControlAltText="Filter ID_Mesin column" HeaderText="ID_Mesin" SortExpression="ID_Mesin" UniqueName="ID_Mesin">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Tanggal_Laporan" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Laporan column" HeaderText="Tanggal_Laporan" SortExpression="Tanggal_Laporan" UniqueName="Tanggal_Laporan">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Lokasi" FilterControlAltText="Filter Lokasi column" HeaderText="Lokasi" SortExpression="Lokasi" UniqueName="Lokasi">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Pelapor" FilterControlAltText="Filter Pelapor column" HeaderText="Pelapor" SortExpression="Pelapor" UniqueName="Pelapor">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Keterangan_Pelapor" FilterControlAltText="Filter Keterangan_Pelapor column" HeaderText="Keterangan_Pelapor" SortExpression="Keterangan_Pelapor" UniqueName="Keterangan_Pelapor">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Tanggal_Diterima" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Diterima column" HeaderText="Tanggal_Diterima" SortExpression="Tanggal_Diterima" UniqueName="Tanggal_Diterima">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Nama_Penerima" FilterControlAltText="Filter Nama_Penerima column" HeaderText="Nama_Penerima" SortExpression="Nama_Penerima" UniqueName="Nama_Penerima">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Keterangan_Penerima" FilterControlAltText="Filter Keterangan_Penerima column" HeaderText="Keterangan_Penerima" SortExpression="Keterangan_Penerima" UniqueName="Keterangan_Penerima">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Tanggal_Selesai" DataType="System.DateTime" FilterControlAltText="Filter Tanggal_Selesai column" HeaderText="Tanggal_Selesai" SortExpression="Tanggal_Selesai" UniqueName="Tanggal_Selesai">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Mesin_Stop" FilterControlAltText="Filter Mesin_Stop column" HeaderText="Mesin_Stop" SortExpression="Mesin_Stop" UniqueName="Mesin_Stop">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Tindakan" FilterControlAltText="Filter Tindakan column" HeaderText="Tindakan" SortExpression="Tindakan" UniqueName="Tindakan">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Status" FilterControlAltText="Filter Tindakan column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="true" />
        </ClientSettings>
 </telerik:RadGrid>
 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ePMPConnectionString %>" SelectCommand="SELECT * FROM [DetailProblem]"></asp:SqlDataSource>

Eyup
Telerik team
 answered on 03 Sep 2018
5 answers
615 views
First off, I'm ecstatic that this has been developed... a step in the right direction! However, I have one tiny suggestion and it's purely from a UI perspective.

I think if the calculated drop down width is less than the RadComboBox width, it should "default" to the RadComboBox width. If you view my attachment (the too short one), you'll see what happens.

I love that this is done on the client side and would really love to know if there's a work around. Otherwise, I think I'm going to use my "in house" method which is done via server side (and isn't as efficient). This isn't code completely written by me, but I'll post what I currently have in case there are any suggested workarounds or if others are interested.

I have a general utility that calculates the width of text:
public static int TextWidth(string text, string fontName = "Segoe UI", float fontSize = 15)
{
    using (var textBitmap = new Bitmap(1, 1))
    {
        using (var drawGraphics = Graphics.FromImage(textBitmap))
        {
            using (var drawFont = new System.Drawing.Font(fontName, fontSize, GraphicsUnit.Pixel))
            {
                return Convert.ToInt32(drawGraphics.MeasureString(text, drawFont).Width);
            }
        }
    }
}

And then I have an extension method:
public static Unit AutoDropDownWidth(this RadComboBox comboBox)
{
    var rcbWidth = Utilities.TextWidth(comboBox.Items.OrderByDescending(i => i.Text.Length).Take(1).Select(i => i.Text).First());
 
    return rcbWidth <= comboBox.Width.Value ? comboBox.Width : rcbWidth;
}

So, in my code behind I just have something like:
rcbSalesReps.DropDownWidth = rcbSalesReps.AutoDropDownWidth();

Just something to consider. To me, if I look at the attachments, I think the "just right" version looks much better than the "too short" one.

I'm open to any ideas or suggestions!

Thanks,
Andrew
Peter Milchev
Telerik team
 answered on 03 Sep 2018
5 answers
117 views

In the latest build, Telerik.Web.UI is version 2018.2.710.45, the image manager, media manager and few other popup windows open to the right size and then go 100% in hight or more.

Using Chrome, you can see this happening the ribbon sample in the product demos. Go to https://demos.telerik.com/aspnet-ajax/controls/examples/integration/ribbonbarandeditor/defaultcs.aspx?product=editor and then click Insert followed by Image Manager. You will see it open to the correct size and then grow in height when the contents are displayed.

In my project, it grows to 100% with a strange pink striped line at top and bottom, the online product sample goes even bigger than 100% (probably a skin thing).

On every build I get, I check the image manager to see what it is doing this time and if it working right since it gets broken all the time.

Please fix and TEST properly for the next build. I do not look forward to putting out my web app with this defect.

George

 

Vessy
Telerik team
 answered on 03 Sep 2018
1 answer
76 views

Our application on our development environment is on the latest version of ASP.NET AJAX controls (2018.2.710). Production is on version 2018.2.516.

 

The RadConfirm OK and CANCEL buttons are outside the window. Please see attached. Is this something wrong in the latest version?

Marin Bratanov
Telerik team
 answered on 01 Sep 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?