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

Hello, I am new to telerik,

 I have being able to add dropdownlist to my radlistbox but I have a couple of challenges with:

1. I need to display a label in front of each dropdownlist,

<telerik:RadListBox RenderMode="Lightweight" ID="RadListBox3" runat="server" AutoPostBackOnTransfer="True">
<ItemTemplate>
BDF1<telerik:RadComboBox ID="cmbBDF4" Runat="server" Skin="WebBlue">
<Items>
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="NORTH CENTRAL" Value="NORTH CENTRAL" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="SOUTHERN" Value="SOUTHERN" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="NORTHERN" Value="NORTHERN" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="CENTRAL" Value="CENTRAL" />
<telerik:RadComboBoxItem runat="server" Font-Size="Smaller" Text="ZONE" Value="ZONE" />
</Items>
</telerik:RadComboBox>
</ItemTemplate>
<Items>
<telerik:RadListBoxItem Text="BDF1" Value="BDF1" />
<telerik:RadListBoxItem Text="BDF2" Value="BDF2" />
<telerik:RadListBoxItem Text="BDF3" Value="BDF3" />
<telerik:RadListBoxItem Text="BDF4" Value="BDF4" />
</Items>
</telerik:RadListBox>

2. I need to get the value of each selected dropdownlist value.

 

Ivan Zhekov
Telerik team
 answered on 26 Dec 2016
9 answers
455 views
Hi, this is embarrasing but I can't seem to find a property to disable the client resizing the appointments.  Moving, adding and editing is OK but clients are not allowed to change the length of the appointment. 

I can prevent the event with OnClientAppointmentResizeStart(), but it makes no sense to have the option there and then cancel it, thats just confusing UI design - I want to remove the resize iconography period.   (which presumably means slighly less JS is generated too).

regards
ewart
Vasssek
Top achievements
Rank 1
 answered on 26 Dec 2016
4 answers
91 views
There was built in textbox validation for the RadDateTimePicker for when someone typed in the picker's textbox control.  We recently upgraded to v2010.2.826.35 and this built in textbox validation no longer exists.  I've attached two screenshots, prevdatetimepicker.png shows this built in validation and currentdatetimepicker.png shows this built in validation doesn't work/exist or functionality has changed.

Is there a fix/update for this issue?
Karen
Top achievements
Rank 1
 answered on 24 Dec 2016
2 answers
226 views

Hi,

 

we are using Telerik asp.net AJAX's 2014.1.225.40 version.  We noticed that in the latest version of IE 11 (11.0.38) some of grid's functionalty not working correctly . We have grid with frozen columns , but columns are not lining up . PFA attached image.

First of all, if we update Telerik's version should it fix this issue? if yes, We don't want to update Telerik's latest version as it will require a lot of testing on whole website.Please suggest the version latest than 2014.1.225.40 but  with less changes and require minimum testing.

or if we can fix it by updating something on web server , we are using IIS 7.5 or higher.

Please advise.

 

 

Sapandeep
Top achievements
Rank 1
 answered on 23 Dec 2016
1 answer
122 views

Unfortunately I am a Jack Of All Code and Master of None....  This problem has surpassed my abilities and searches do not respond with anything close to my issue.

I have coded a page that takes a source listbox that is populated with available options and a partner listbox to pass the selected options to.  I've stripped the page down to just the list boxes and manually entered items.  I am developing on a Windows 10 laptop, testing on a Windows 2008 R2 server, and deploying to a Windows 2012 R2 server.  The listbox renders correctly in development and testing.  When published to the production server it is drawn but it does not respond to clicks of the list items.

I created a test site on the production server and the page worked as expected.  This test site was <servername>.<domainname>.com:1180.  I found that when I altered this test site to <alias hostname>.<domainname>.com:1180 the listbox failed again.  Thinking this may be a security issue in Windows 2012 I added the alias to the SETSPN list for the local machine.  This did not resolve the issue.

Is this a security issue in Windows 2012?  I do have other Telerik controls working on this production server without issue.

Thanks in advance for any help or support.

 

<tr>                 <td style="vertical-align:top">                     <asp:Label ID="lblSource" runat="server" Text="Available Locations:"></asp:Label><br />                     <telerik:RadListBox ID="lbSource" runat="server" AllowTransfer="True" AllowTransferOnDoubleClick="true" TransferToID="lbTarget" Width="250" Height="350">                         <ButtonSettings TransferButtons="All" />                         <Items>                             <telerik:RadListBoxItem runat="server" Text="Test Item" Value="0" />                         </Items>                     </telerik:RadListBox>                 </td>                 <td style="vertical-align:top">                     <asp:Label ID="lblTarget" runat="server" Text="Selected Locations:"></asp:Label><br />                     <telerik:RadListBox ID="lbTarget" runat="server" AllowTransferOnDoubleClick="true" TransferToID="lbSource" Width="250" Height="350">                         <ButtonSettings TransferButtons="Common" />                         <Items>                             <telerik:RadListBoxItem runat="server" Text="Test Item" Value="100" Height="85%" />                         </Items>                     </telerik:RadListBox>                 </td>             </tr>

Dave
Top achievements
Rank 1
 answered on 23 Dec 2016
3 answers
106 views

I have a very simple example setup like this:

<telerik:RadSplitter ID="splitterContent" runat="server" Width="100%" Height="100%" Orientation="Vertical">
    <telerik:RadPane ID="rpLeft" runat="server" Width="100%" Height="50%" OnClientExpanded="filterPane_Expanded" OnClientCollapsed="filterPane_Collapsed" BackColor="Blue" ForeColor="White">
        Left Side
    </telerik:RadPane>
    <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Forward">
    </telerik:RadSplitBar>
    <telerik:RadPane ID="rpRight" runat="server" Width="0%" Height="50%" BackColor="Red" ForeColor="White">
        Right Side
    </telerik:RadPane>
</telerik:RadSplitter>

 

with the following javascript code:

<script type="text/javascript">
    var $ = $telerik.$;
 
    function filterPane_Collapsed() {
        //resize resultsPane
        debugger;
        var winWidth = $(window).width();
        $("#rpRight").resize(winWidth / 2);
        $("#rpLeft").resize(winWidth / 2);
    }
 
    function filterPane_Expanded() {
        //resize resultsPane
        debugger;
        var winWidth = $(window).width();
        $("#rpLeft").resize(winWidth);
        $("#rpRight").resize(0);
    }
</script>

 

Now let me explain what I'm trying to do.  When the form loads I would like the left pane to be displayed at 100% and the right pane to be 0% essentially having the right pane not visible.  When a user presses the arrow on the SplitterBar to expand the right side I would like the proportions to go to 50% for each side.  At this point the Splitter bar would have an arrow pointing to the right.  No mater where is has been move when pressed I would like the proportions to go back to 100% for the left and 0% for the right.  I've tried .resize I've tried .set_width nothing seems to be setting the width....at all.  

Vessy
Telerik team
 answered on 23 Dec 2016
15 answers
247 views
hi guys,

ì wrote this web service code:
Imports System.Web.Services
Imports System.Collections
Imports System.Collections.Generic
Imports System.Web.Script.Services
Imports System
Imports System.Data
Imports System.Web
Imports System.Data.SqlClient
Imports Telerik.Web.UI
<WebService([Namespace]:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ScriptService()> _
Public Class TryWebService
<WebMethod()> _
Public Function Search(ByVal _Str1 As String, ByVal _Str2 As String) As List(Of PropertyUtente)
Using scope As New TransactionScope()
Dim lista As New List(Of PropertyUtente)
Dim conString = ConfigurationManager.ConnectionStrings("TrycontactString")
Dim strConnString As String = conString.ConnectionString
Using db As New SqlConnection(strConnString)
db.Open()
Using sqlcmd As New SqlCommand("Sp_searching_like", db)
sqlcmd.CommandType = CommandType.StoredProcedure
sqlcmd.Parameters.AddWithValue("@Search", SqlDbType.VarChar).Value = _Str1
sqlcmd.Parameters.AddWithValue("@Searchluogo", SqlDbType.VarChar).Value = _Str2
Using sqldr As SqlDataReader = sqlcmd.ExecuteReader
While sqldr.Read
Dim _image As String
If sqldr.GetSqlString(6).IsNull = True Then
_image = "/image/avatarborder.png"
Else
_image = sqldr.GetSqlString(6).Value
End If
Dim recapiti As String = ""
If (sqldr.GetSqlValue(4).IsNull = True Or sqldr.GetSqlValue(4).ToString = String.Empty) And (sqldr.GetSqlValue(5).IsNull = True Or sqldr.GetSqlValue(5).ToString = String.Empty) Then
recapiti = "Non disponile"
ElseIf sqldr.GetSqlValue(4).IsNull = False And (sqldr.GetSqlValue(5).IsNull = True Or sqldr.GetSqlValue(5).ToString = String.Empty) Then
recapiti = sqldr.GetSqlValue(4).Value
ElseIf (sqldr.GetSqlValue(4).IsNull = True Or sqldr.GetSqlValue(4).ToString = String.Empty) And (sqldr.GetSqlValue(5).IsNull = False) Then
recapiti = sqldr.GetSqlValue(5).Value
ElseIf sqldr.GetSqlValue(4).IsNull = False And sqldr.GetSqlValue(5).IsNull = False Then
recapiti = sqldr.GetSqlValue(4).Value & " - " & sqldr.GetSqlValue(5).Value
End If
lista.Add(New PropertyUtente With {.idutente = sqldr.GetSqlInt32(0).Value, _
.utente = sqldr.GetSqlString(1).Value, _
.Desccategoria = sqldr.GetSqlString(2).Value, _
.Desccomune = sqldr.GetSqlString(3).Value, _
.Telefono = recapiti, _
.Imageprofile = _image, _
.Email = sqldr.GetSqlString(7).Value})
End While
End Using
End Using
End Using
Return lista
scope.Complete()
End Using
End Function
End Class

and this is radlistview html code:

<telerik:RadListView ID="RadListView1" runat="server" DataKeyNames="idutente"
                           ItemPlaceholderID="Contenitore" AllowPaging="True"
                           Width="650px">
                               <LayoutTemplate>
                                   <fieldset style="width: 700px; border:0px" id="FieldSet1">
                                       <legend></legend>
                                       <asp:Panel ID="Contenitore" runat="server">
                                       </asp:Panel>
                                       <telerik:RadDataPager ID="RadDataPager1" runat="server"
                                           PagedControlID="RadListView1" Width="700px" Culture="it-IT" BackColor ="#ecede5">
                                               <Fields>
                                                   <telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
                                                   <telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
                                                   <telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
                                               </Fields>
                                       </telerik:RadDataPager>
                                   </fieldset>
                               </LayoutTemplate>
                               <ItemTemplate>
                                   <div class="item">
                                       <div class="image">
                                           <asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' Height="120px" Width="110px"/>
                                       </div>
                                   <div class="content">
                                       <div class="user">
                                           <div style="width:16px; height:16px; float:left; padding-right:3px">
                                               <img src="/image/icone/user1.png" alt="NP" />
                                           </div>
                                           <b><%# CType(Container.DataItem, PropertyUtente).utente%></b>
                                       </div>
                                       <div class="description_category">
                                           <div style="width:16px; height:16px; float:left; padding-right:3px">
                                               <img src="/image/icone/categoria.png" alt="NP" />
                                           </div> Categoria: <%# CType(Container.DataItem, PropertyUtente).Desccategoria%>
                                       </div>
                                       <div class="description_city">
                                           <div style="width:16px; height:16px; float:left; padding-right:3px">
                                               <img src="/image/icone/home.png" alt="NP" />
                                           </div> Città: <%# CType(Container.DataItem, PropertyUtente).Desccomune%></div>
                                       <div class="description_email">
                                           <div style="width:16px; height:16px; float:left; padding-right:3px">
                                               <img src="/image/icone/email.png" alt="NP" />
                                           </div> Email: <%# CType(Container.DataItem, PropertyUtente).Email%>
                                       </div>                                             
                                       <div class="description_phone">
                                           <div style="width:16px; height:16px; float:left; padding-right:3px">
                                               <img src="/image/icone/telefono.png" alt="NP" />
                                           </div>Telefono: <%# CType(Container.DataItem, PropertyUtente).Telefono%></div>                                   
                                       <div class="item_button">
                                           <telerik:RadButton ID="RadButton1" runat="server" Text="Biglietto completo" Width="140px" Skin="Office2010Silver"
                                           OnClick="RadButton1_Click">
                                           </telerik:RadButton>
                                       </div>                                                                              
                                   </div>
                                   </div>
                               </ItemTemplate>
                       </telerik:RadListView>


this code is possible send it to source radlistview?

Marin
Telerik team
 answered on 23 Dec 2016
1 answer
163 views

Hi, I want to use the media player to play continuously a short video, like this site https://unity3d.com/

So the video is in the background and I can place other Telrik components in front of it. Does the MediaPlayer is suited for this?

 

regards

Bozhidar
Telerik team
 answered on 23 Dec 2016
4 answers
423 views

Hi there,

just got reported by our user that the RadComboBox is somehow not working correctly. Here are the steps:

01. type a for search, and there will be items listed => select one of them => eveything seems ok and works fine.

02. click the ComboBox, all text are automatically selected => works as expected

03. start to type something, e.g. b => now weird thing happens, a list of items are expected to shown, but it stucks at loading, if you look at the client requests in your browser debugging tool, you will notice that the client keeps sending requests to the server side with weird search string from the previous select. ==> a BUG? or did I make anything wrong.

This is a Production Issue, hope you guys can guide me out how to fix it.

PS. i tried to upload a small demo application to reproduce the error, but i don't how to upload it, seems I cannot upload a zip file!


Regards

Z. Wang

Anton
Telerik team
 answered on 23 Dec 2016
2 answers
219 views

We currently output our data to a Grid and then export to XLSX, however we are experiencing a unique problem with one of the records.  The record in question returns the word "Infinity" and it causes a problem with opening the Excel document.  We receive the following error message:

"Excel found unreadable content in '....aspx'.  Do you want to recover the contents of this workbook?  If you trust the source of this workbook, click Yes."

Clicking Yes will repair the worksheet.  

After doing much testing to narrow down what record it is failing on, we have concluded it is failing on this record with the word "Infinity".  If I change the database record to "Infinity CU", there is no problems and the Excel file will open properly.  If I save the Excel document after all these messages, it will save properly and once reopened it will be successful.  CUName is the field that it fails on. 

I am including the code that displays the grid but might you offer a suggestion on how to remedy this problem?

<telerik:RadGrid ID="_grdInvisibleGridForExcel" runat="server" Visible="false" HeaderStyle-Font-Bold="true" HeaderStyle-BackColor="#4F9A25" HeaderStyle-ForeColor="White"  CellSpacing="-1" GridLines="Both" GroupPanelPosition="Top" AutoGenerateColumns="false" ExportSettings-Excel-Format="ExcelML">
            <MasterTableView>
                <Columns>
                    <telerik:GridDateTimeColumn DataField="Financial Date" HeaderText="Financial Date" UniqueName="FinancialDate" FilterControlAltText="Filter FinancialDate column"></telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="charter_Num" HeaderText="Charter #" UniqueName="CharterNum" FilterControlAltText="Filter CharterNum column"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="asi_Num" HeaderText="ASI #" UniqueName="AsiNum" FilterControlAltText="Filter AsiNum column"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="cuName" HeaderText="CU Name" UniqueName="cuName" FilterControlAltText="Filter cuName column"></telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>

 

 

Kurt Kluth
Top achievements
Rank 1
 answered on 23 Dec 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?