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>
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.
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
<
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
>
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
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
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
>
I have a dropdown the controls the visibility of some controls including a RadExplorer. This is all in a BootStrap form where the form-group visibility is changed. If I start with the RadExplorer invisible, the toolbar and windows are not formed properly. Resizing the browser window fixes it though all visibility changes until the next refresh. If I start out with the RadExplorer visible and make it invisible on loading the toolbar is fine but the windows are not correct, please see the attached picture. I need to be able to make the RadExplorer invisible at page load.
The function BackgroupSettingChanged(); changes the visiblity of controls.
Sys.Application.add_load(function loadHandler() {
BackgroupSettingChanged();
Sys.Application.remove_load(loadHandler);
});
BackgroupSettingChanged(); calls ObjVisible() to change the visibility of the different div's.
function ObjVisible(control, visible)
{
if (visible) {
control.style.visibility = 'visible'
control.style.display = "block";
}
else {
control.style.visibility = 'hidden';
control.style.display = "none";
}
}
The RadExplorer is in a form-group
<
div
class
=
"form-group"
id
=
"ExplorerDiv"
runat
=
"server"
>
<
asp:Label
runat
=
"server"
AssociatedControlID
=
"SelectImage"
CssClass
=
"col-md-2 control-label"
>Explorer</
asp:Label
>
<
div
class
=
"col-md-4"
>
<
span
>Use the file explorer to choose an image, you can download an image.</
span
>
<
telerik:RadFileExplorer
RenderMode
=
"Lightweight"
runat
=
"server"
ID
=
"FileExplorer1"
Width
=
"580px"
Height
=
"300px"
EnableCreateNewFolder
=
"true"
VisibleControls
=
"Grid,TreeView,ContextMenus,Toolbar,FileList"
AllowPaging
=
"true"
PageSize
=
"8"
OnClientItemSelected
=
"OnClientItemSelected"
>
<
Configuration
EnableAsyncUpload
=
"true"
AllowMultipleSelection
=
"true"
ViewPaths
=
"~/Organizations/Org3"
UploadPaths
=
"~/Organizations/Org3"
DeletePaths
=
"~/Organizations/Org3"
></
Configuration
>
</
telerik:RadFileExplorer
>
</
div
>
</
div
>
Is there something I can call on the RadExplorer when I make it visible to ensure it initializes properly? or maybe my initial call to add_load to make it invisible could be made on another startup event?
It is actually the
control.style.display = "none";
that causes the problem. Without "none", the file list window of the RadExplorer shows even though the RadExplorer div is visibility='hidden'. The is needed to get rid of the space taken by the controls. I also have a RadColorPicker that works fine if it does not start out invisible (with set, forced to accept this with its accompanying disappearing flash as the window opens).
George
Erro;
Uncaught TypeError: Cannot read property 'clear' of null
code:
$find("<%=radnumericbox.ClientID%>").clear();
what im doing badly? i have more radnuemirc boxes and they are running smoothly
BestRegards
Hello,
How can I turn off the highlighting on specific nodes in a radTreeView? There are specific nodes that I don't want to change in any way when hovering over them.
I'm using UI for ASP.NET AJAX, V2013.1.417.45
Thank you.