Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
84 views
I've installed the new version of Telerik (2015 Q1) and I noticed a weird behaviour when a radnumerictextbox is nested inside a repeater.
When the radnumerictextbox is in the header, then the width that is stated is kept no matter what rendermode. But if the radnumerictextbox is in the itemtemplate, than the width isn't preserved when used the RenderMode="Lightweight". When I don't use a rendermode or use RenderMode="Classic", then the width is preserved.
When I checked it with Firebug in Firefox or with the developer tools in Chrome I notice that the width in the result has disappeared in with RenderMode="Lightweight".

Does anybody know what is the cause of the problem?

I've made a little sample code and attached and image with the result between the two.

ASPX-page
<div id="divProeven" runat="server">
   <div id="divGrid" runat="server" style="border: none; padding: 0px;">
      <table id="tbl2" style="width:100%; table-layout:auto; border-collapse: collapse; border-spacing: 0;">
         <asp:Repeater ID="R2" runat="server">
            <HeaderTemplate>
               <tr id="trHeader" runat="server" valign="top">
                  <th class="rgHeader" style="width: 95px;" id="puntTitel" runat="server">header<br/>
                     <telerik:RadNumericTextBox ID="rtbPunten" runat="server" Width="50px" Type="Number" IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false" MinValue="0" ToolTip="standaardwaarde" Culture="nl-BE" RenderMode="Lightweight" />
                  </th>
               </tr>
            </HeaderTemplate>
            <ItemTemplate>
               <tr class="rgRow">
                  <td style="vertical-align: top; width: 95px;">
                     <telerik:RadNumericTextBox ID="rtbPunten" runat="server" Width="50px" Type="Number" Culture="nl-BE" EnableSingleInputRendering="false" IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false" MinValue="0" RenderMode="Lightweight"  DbValue='<%#Container.DataItem("count")%>'/>
                  </td>
               </tr>
            </ItemTemplate>
            <AlternatingItemTemplate>
               <tr class="rgAltRow">
                  <td style="vertical-align: top; width: 95px;">
                     <telerik:RadNumericTextBox ID="rtbPunten" runat="server" Width="50px" Type="Number" Culture="nl-BE" EnableSingleInputRendering="false" IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false" MinValue="0" RenderMode="Lightweight" DbValue='<%#Container.DataItem("count")%>'/>
                  </td>
               </tr>
            </AlternatingItemTemplate>
         </asp:Repeater>
      </table>
   </div>
</div>


Code-Behind
Protected Overrides Sub InitializePage(ByVal sender As Object, ByVal e As System.EventArgs)
   Try
      divGrid.Attributes.Add("class", "RadGrid RadGrid_MetroTouch")
      Dim dt As New DataTable
      dt.Columns.Add("count")
      For i As Integer = 0 To 7
         Dim nr As DataRow = dt.NewRow
         dt.Rows.Add(nr)
         nr("count") = i
      Next
      R2.DataSource = dt
      R2.DataBind()
   Catch fout As iUserFriendlyException
      ShowErrorMessage(fout.Message)
   Catch fout As Exception
      showException(fout)
   End Try
End Sub
Informat
Top achievements
Rank 1
 answered on 05 Mar 2015
1 answer
110 views
when i try to add some values from backend table in Gantt with childs, the collapse/expand icon is not displayed. if i select the parent and add child, then it displays on screen. please help.
Bozhidar
Telerik team
 answered on 05 Mar 2015
2 answers
83 views
Hi

I am trying to use a rad grid with a linqdatasource, but because we are using webapi calls we cannot directly bind to the database. The filter does not work correctly and the datetime picker does not remember the value after the postback occurs.

Here is the ASP:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPag="True" DataSourceID="LinqDataSource1" GroupPanelPosition="Top">
       <MasterTableView AutoGenerateColumns="False" DataKeyNames="TaskID" DataSourceID="LinqDataSource1">
           <Columns>
               <telerik:GridDateTimeColumn DataField="DateCreated" DataType="System.DateTime" EnableTimeIndependentFiltering="true" FilterControlAltText="Filter DateCreated column" HeaderText="DateCreated" SortExpression="DateCreated" UniqueName="DateCreated" ShowFilterIcon="false" AutoPostBackOnFilter="true">
                   <ColumnValidationSettings>
                       <ModelErrorMessage Text="" />
                   </ColumnValidationSettings>
               </telerik:GridDateTimeColumn>
           </Columns>
       </MasterTableView>
   </telerik:RadGrid>
   <asp:LinqDataSource ID="LinqDataSource1" OnSelect
        
       ing="LinqDataSource1_Selecting" runat="server">
   </asp:LinqDataSource>

And the codebehind:

public partial class Test : System.Web.UI.Page
    {
        private WebAPICalls MyWebAPi = new WebAPICalls();
 
        protected void LinqDataSource1_Selecting(object sender, LinqDataSourceSelectEventArgs e)
        {
            var tasks = MyWebAPi.GetDataTable("GetAllTasks");
            //Doing this otherwise it complains about not finding the TaskID property
            var results = from rows in tasks.AsEnumerable()
                          select rows;
            e.Result = results;
        }
 
        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }

Thanks
Angel Petrov
Telerik team
 answered on 05 Mar 2015
6 answers
124 views
I didn't see a post on this so I thought I'd ask. Any chance of a japanese spellcheck dictionary in the Telerik future?
Marina
Top achievements
Rank 1
 answered on 04 Mar 2015
2 answers
116 views
Hey guys, I am new to the forum and I have been looking for a quick suggestion. My issue is that I have a Radmenuitem, however I want to disable it because I don't need it to change onclick nor on hover, but I DO need it to change with the theming, and when it is disabled it does not change. Do I need to modify the css file directly or is there a workaround ? thanks in advance. I am also new to the UI...
Andrey
Top achievements
Rank 1
 answered on 04 Mar 2015
9 answers
308 views

Hello,

We were using Telerik Controls for our Asp.net 3.4 project
till this and now when we decided to upgrade to Asp.net 4.5 we had to upgrade
to Telerik latest controls and so I did.

I downloaded Telerik v 2014.2.724.45,I also using
AjaxcontrolToolkit v4.0.30319 and now If I Start running project for Asp.net
4.5 I see the below error on each page.

 

0x800a138f - JavaScript runtime error: Unable to get property
'UI' of undefined or null reference

 

I read few things related to this which mentions not to use TelerikRadscriptManager
Is that the case causing this error ? Any more details would be appreciated.

 

Thanks & Regards,

Kavita Tengse.

Developer (Pgi.com)

Dimitar
Telerik team
 answered on 04 Mar 2015
6 answers
302 views
Hello,

I have an issue with the RadCombobox, that I can't find a solution anywhere in the forums. So, I thought I'll post the issue here and see if anyone has a solution or workaround. As you can see in "Rcb_screen_1", the combobox works just fine. On "Rcb_screen_2", I clicked on the top part of the combobox, it would display another dropdownlist with all the entries I might have used on others comboboxes. On "Rcb_screen_3", the textbox in place of the dropdownlist would allow me to type in any text.

Don't know if this is a bug or just the complicated layout that I have on my app. Unfortunately, I can't send my code for you to replicate the problem. There is also no issue when I tried to create a sample app. I tried there settings in my .aspx file:
ShowDropDownOnTextboxClick="false" ShowMoreResultsBox="false"
MarkFirstMatch="false" AllowCustomText="false" EnableItemCaching="false"

Any help would be greatly appreciated.

Thanks.

Tri
Nencho
Telerik team
 answered on 04 Mar 2015
3 answers
323 views
Here is my RadWindow declaration:

<telerik:RadWindow ID="VideoPlayerWindow" ClientIDMode="Static" runat="server" Modal="True" VisibleOnPageLoad="false" EnableShadow="true"
    Behaviors="Close" ReloadOnShow="true" AutoSize="true" OnClientBeforeClose="StopVideo">
    <ContentTemplate>
        <asp:UpdatePanel ID="VideoPlayerUpdatePanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
        <uc1:ucVideo ID="Video1" runat="server" />
        </ContentTemplate>
        </asp:UpdatePanel>
    </ContentTemplate>
</telerik:RadWindow>

My previous JavaScript code to open the window was a little redundant if not messy (BEFORE SETTING CLIENTIDMODE = STATIC)

...
if (clientId == "VideoPlayerWindow") { oWnd = $find("<%=VideoPlayerWindow.ClientID%>"); }
...

I wanted to set the clientidmode to static and change the code to

oWnd = $find(clientId);

which returns a RadWindow object. When the window goes to open, however I get a JavaScript error and the window is blank:

Microsoft JScript runtime error: 'this._contentElement.style' is null or not an object
The line in ScriptResource:

}

 

if(this._dockMode){this._contentElement.style.width="1px";

I am using the 2010.3.x version of the RadControls for ASP.NET. Thanks!

Marin Bratanov
Telerik team
 answered on 04 Mar 2015
3 answers
180 views
Hi.

I was wondering if somebody could help me as this problem has had me stumped for the past few weeks.

I am using the Telerik Ajax Components (version 2014.1.403.45) along with JDash. In my appliation I wish to create a Dashboard using JDash and inside the JDash dashlets would like to place Telerik controls, specifically the RadHTMLchart. But no matter what I do I always receive the following error:

Uncaught TypeError: Cannot read property 'dataviz' of undefined

A quick search from Google shows several other people struggling with the same error, but sadly either nobody has received a solution or bothered to post one. Here are the links showing others having the same problem:

http://feedback.telerik.com/Project/108/Feedback/Details/132936-improve-integration-between-radhtmlchart-and-jdash
http://forum.jdash.net/yaf_postst147_Telerik-RadHTMLChart-controls-no-longer-work-with-dashboard.aspx

Does anybody here have a possible solution? Any help would be very much appreciated!

Thanks!
Danail Vasilev
Telerik team
 answered on 04 Mar 2015
1 answer
47 views
Hello All,

I have one button click event, in which I need to perform some database validation and if the validation is true I need to open one prompt window with drop down box having three options,

And on selection of options I need to perform further code execution on server side. Please suggest how to achieve that?

protected void button1_Click(object sender, EventArgs e)
{
    if(SomeValidation() == true)
      RadWindowManager1.RadPrompt("Selection Option");
   
    if(option1 is selected) then
     do something
  else if (option2 is selected) then
     do something
 else
    do somenting
}

I need to hold the execution of code till the user selected any options from RadPrompt. Please suggest how to achieve that.

Thank you!
Vishal Patel
Marin Bratanov
Telerik team
 answered on 04 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?