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

Good afternoon,

My RadGrid does not need horizontal scroll until it goes into in-place edit mode - then there are text boxes to the right of the box containing the grid, but no scroll bar.

Any suggestions?

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server"   AutoGenerateColumns="false"  OnNeedDataSource="RadGrid1_NeedDataSource" OnItemDataBound="RadGrid1_ItemDataBound"
                 OnUpdateCommand="RadGrid1_UpdateCommand" OnInsertCommand="RadGrid1_InsertCommand" AllowSorting="True" AllowMultiRowSelection="True" ClientSettings-Scrolling-AllowScroll="true">
        <ClientSettings  >
            
            <Selecting AllowRowSelect="true" /></ClientSettings>
        <MasterTableView AutoGenerateColumns="False" DataKeyNames="HorseKey"  ClientDataKeyNames="HorseKey" EditMode="InPlace" 
             CommandItemDisplay="Top"  >   

Eyup
Telerik team
 answered on 03 Apr 2019
9 answers
3.6K+ views

Hey, 

So I downloaded the telerik toolkit trial first and then I downloaded visual studio 2017. I followed the link below to add the toolkit into visual studio, but I'm getting a message that says "There are no usuable controls in this group. Drag an item onto this text to add it to the toolbox." Is there another method to try for adding the toolkit? 

http://docs.telerik.com/devtools/aspnet-ajax/general-information/integration-with-visual-studio/adding-the-telerik-controls-to-the-visual-studio-toolbox

Vesko
Telerik team
 answered on 03 Apr 2019
2 answers
153 views

I'm assuming the update is the root cause of this issue. This code worked previously and now causes an error "You need to have a DynamicManager control on the page and register your data control with it in order to use a DynamicControlParameter". The RadListView is not compatible with a DynamicManager control.

 

The code causing this error:

 
    Private Sub rbtnAddLocation_Click(sender As Object, e As EventArgs) Handles rbtnAddLocation.Click
        rlvLocations.InsertItemPosition = RadListViewInsertItemPosition.FirstItem
        rlvLocations.ShowInsertItem()
        rbtnAddLocation.CommandArgument = rdlMembers.SelectedValue
        rbtnAddLocation.Enabled = False
    End Sub

 

The offending lines are the two with rlvLocations.

Updates are really getting frustrating to new Telerik user here. 

Eyup
Telerik team
 answered on 03 Apr 2019
4 answers
367 views

Hi,

I am witnessing some strange behaviour in my HtmlChart.

When displaying unstacked data everything looks fine (first attched file).

 

But when turning staking on, for some reason some of the columns parts look 1000 times bigger than they should (second attached file).

The data is strictly the same in these 2 examples, the only difference is turning line.Stacked true or false, nowhere in the code do we multiply any value by 1000.

Telerik Web UI is version 2017.1.118.45.

The same page works perfectly with Telerik Web UI 2014.1.403.40.

Is it a known issue? Is there any known solution?

Here is the ascx code:

<radS:RadHtmlChart runat="server" ID="RadHtmlChart1" Width="1000px" Height="500px">
        <PlotArea>
            <XAxis DataLabelsField="day">
                <TitleAppearance Text="Days" Visible="true"></TitleAppearance>
                <LabelsAppearance DataFormatString="{0}"/>
                <MinorGridLines Visible="false"></MinorGridLines>
                <MajorGridLines Visible="false"></MajorGridLines>
            </XAxis>
            <YAxis>
                <TitleAppearance Text="Count" Visible="true"></TitleAppearance>
                <LabelsAppearance DataFormatString="{0}"></LabelsAppearance>
                <MinorGridLines Visible="false"></MinorGridLines>
            </YAxis>
        </PlotArea>
        <Legend>
            <Appearance Visible="true"></Appearance>
        </Legend>
    </radS:RadHtmlChart>

 

The binding part in the C#:

RadHtmlChart1.PlotArea.Series.Clear();
 
for(int i=1; i<dtTemp.Columns.Count;i++)
{
    Telerik.Web.UI.ColumnSeries line = new Telerik.Web.UI.ColumnSeries();
    line.Name = string.Format("{0} ({1})",Names[i],Totals[i]);
    line.Stacked = true;
    //line.Stacked = false;
    line.LabelsAppearance.Visible = false;
    line.LabelsAppearance.DataFormatString = "{0}";
    line.DataFieldX = "day";
    line.DataFieldY = dtTemp.Columns[i].ColumnName;
    RadHtmlChart1.PlotArea.Series.Add(line);
}
 
RadHtmlChart1.DataSource = dtTemp;
RadHtmlChart1.DataBind();

 

Thank you.

 

 

Adam
Top achievements
Rank 1
 answered on 02 Apr 2019
3 answers
199 views
How can I make bullet list to alphabetic bullet list. I searched alot but couldn't find solution, please suggest me on this.
Rumen
Telerik team
 answered on 02 Apr 2019
1 answer
307 views

I've got a theme set for my entire project in the App_Themes folder. Within this folder I have a style sheet which, among other things, specifies the style for all radGrids.  I now have a requirement to completely change the style on one particular grid within one user control.  There are other grids in this user control that shouldn't change.

What's the best way to override the style on one grid on one user control?

Thanks.

Rumen
Telerik team
 answered on 02 Apr 2019
3 answers
614 views
I apologize if this has been answered elsewhere.  I have what, I think, is a simple problem.  I am trying to access one of the controls in the LayoutTemplate of a RadListView via javascript.   Here is the ListView code:
<telerik:RadListView ID="rlvApproval" runat="server">
    <LayoutTemplate>
        <table>
            <tr>
                <td style="width: 250px;">
                </td>
                <td style="width: 200px; font-weight: bold;">
                </td>
            </tr>
        </table>
        <asp:PlaceHolder ID="itemplaceholder" runat="server" />
        <table>
                                <tr>
                <td style="width: 250px;">
                    <asp:Label ID="lblName" runat="server" Text="Total" Font-Bold="true" />
                </td>
                <td style="width: 200px; font-weight: bold;">
                    <telerik:RadNumericTextBox ID="txtTotalValue" runat="server" ReadOnly="true" DataType="System.Decimal"
                        Skin="Web20">
                        <NumberFormat DecimalDigits="0" />
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
              
        </table>
    </LayoutTemplate>
    <ItemTemplate>
        <table>
            <tr>
                <td style="width: 250px;">
                    <asp:Label ID="lblName" runat="server" Text='<%# Eval("name") %>' />
                </td>
                <td style="width: 250px;">
                                                <telerik:RadNumericTextBox ID="txtValue" runat="server" DataType="System.Decimal"
                        Skin="Web20" DbValue='<%# DataBinder.Eval(Container.DataItem, "value") %>' MaxValue="100"
                        MinValue="0" AutoPostBack="false" >
                        <NumberFormat DecimalDigits="0" />
                        <ClientEvents OnValueChanged="ValidateWeighting" />
                    </telerik:RadNumericTextBox>
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div class="message">
            <asp:Label ID="lblEmptyMessage" runat="server" SkinID="messageBig" Text="Error loading approval information..." />
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>
Whenever the txtValue is updated, I fire a javascript function to determine if the values are 100% based on the current total value that is set in the codebehind.  Here is the code I have that is working:
function ValidateWeighting(sender, eventArgs) {
    var object = document.getElementById('ctl00_ContentPlaceHolder1_Weighting1_rlvApproval_txtTotalValue_text');
    var object2 = document.getElementById('<%= rlvApproval.ClientID %>');
    var current = eval(object.value);
    var old = eventArgs.get_oldValue();
    var newval = eventArgs.get_newValue();
    var tmp = current + (newval - old);
    if (tmp == 100) {
        document.getElementById('<%= btnSave.ClientID %>').disabled = false;
    }
    else {
        document.getElementById('<%= btnSave.ClientID %>').disabled = true;
    }
    object.value = tmp;
}
However, The id to get the object for the txtTotalValue control was obtained through "View Source".  What I am looking for is the right way to do this that avoids browser differences, web server differences, etc.
Any thoughts?
Peter Milchev
Telerik team
 answered on 02 Apr 2019
0 answers
121 views
Hello,

More details about this issue you can find here:


Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Eyup
Top achievements
Rank 1
 asked on 02 Apr 2019
2 answers
1.1K+ views

Getting error Uncaught TypeError: Cannot read property 'cells' of undefined When i Click on an item from a RadContextMenu. This page has a Rad-scheduler.  

 

Peter Milchev
Telerik team
 answered on 02 Apr 2019
7 answers
1.0K+ views

Hello,

I'm experiencing an issue and I hope you can help me with this. I saw a similar thread but it's from 2017 and it doesn't answer all of my concers,  so that´s why I open a new one. But if you prefer, I can continue in the other one.

Anyway, we are using RadEditor with ImageManager.

When users of our application are trying to upload an image, the upload seems to be going on forever (there is a yellow dot by the image's name) and when I peek at the Chrome's Dev Tool console (Chrome is updated) , an "Unexpected token < in JSON at position 453" error is logged.

I attached an image showing this error message. 

But when I changed "EnableAsyncUpload" property to false, it uploads correctly and saves the image in the specified location without any problem.

I can leave it like this but it bugs me a lot not to know why the error appears.

Is it really ok leaving EnableAsyncUpload in False? Is there a way to fix the JSON issue?

 

Thank you!

PS: just in case, snippets of how it's declared the editor in the ascx file and how it's configured in the code behind

<div id="HtmlBodyCell" style="<%= HtmlBodyCellStyle %>">
 <Telerik:RadEditor ID="HtmlBodyTextArea" runat="server" Width="475px" Height="400px" />
</div>

 

string[] imgPath = { vpath };
 
HtmlBodyTextArea.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute);           
HtmlBodyTextArea.ImageManager.UploadPaths = imgPath;
HtmlBodyTextArea.ImageManager.ViewPaths = imgPath;
HtmlBodyTextArea.ImageManager.MaxUploadFileSize = 200000;
HtmlBodyTextArea.ImageManager.EnableAsyncUpload = true;
HtmlBodyTextArea.ImageManager.RenderMode = RenderMode.Lightweight;

 

Rumen
Telerik team
 answered on 02 Apr 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?