radcombo_mns_severity.DataTextField =
"SEVERITY"
;
radcombo_mns_severity.DataValueField =
"ID"
;
radcombo_mns_severity.ToolTip =
"DESC"
;
radcombo_mns_severity.DataSource = from c
in
quarkdb.MNS_SEVERITies
orderby c.SEVERITY
select
new
{
c.SEVERITY,
c.ID,
c.DESC
};
radcombo_mns_severity.DataBind();
Hi All,
I have RadGrid inside RadWindow, i want to remove border on RadGrid. Any have solution..?
This my RadWindow Code
<
telerik:RadWindow
ID
=
"RwEmployeeBrowser"
runat
=
"server"
Modal
=
"true"
Width
=
"1200px"
Height
=
"550px"
KeepInScreenBounds
=
"true"
Title
=
"Select Employee"
>
<
ContentTemplate
>
<
UC:UCEmploye
ID
=
"UCEmploye"
runat
=
"server"
/>
</
ContentTemplate
>
</
telerik:RadWindow
>
This My RadGridCode
<
telerik:RadGrid
RenderMode
=
"Lightweight"
ID
=
"RgData"
PagerStyle-AlwaysVisible
=
"true"
runat
=
"server"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
CellSpacing
=
"-1"
GridLines
=
"Both"
OnPreRender
=
"RgData_PreRender"
OnItemCommand
=
"RgData_ItemCommand"
OnItemDataBound
=
"RgData_ItemDataBound"
OnNeedDataSource
=
"RgData_NeedDataSource"
>
<
GroupingSettings
CaseSensitive
=
"false"
/>
<
MasterTableView
CommandItemDisplay
=
"Top"
Width
=
"100%"
AllowMultiColumnSorting
=
"false"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
ShowExportToExcelButton
=
"false"
ShowRefreshButton
=
"false"
/>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumn"
HeaderStyle-Width
=
"2px"
>
<
FilterTemplate
>
<
asp:ImageButton
ID
=
"btnClearFilter"
CausesValidation
=
"false"
runat
=
"server"
ImageUrl
=
"/Style Library/bower_components/Telerik/Delete.gif"
AlternateText
=
"Clear Filter"
ToolTip
=
"Clear Filter"
OnClick
=
"btnClearFilter_Click"
Style
=
"vertical-align: middle"
/>
</
FilterTemplate
>
<
ItemTemplate
>
<
asp:LinkButton
runat
=
"server"
ID
=
"ImgBtn"
Text
=
"Select"
ForeColor
=
"Blue"
CausesValidation
=
"false"
CommandName
=
"Select"
/>
<
asp:Label
runat
=
"server"
ID
=
"lblId"
Text='<%# Eval( "PersonId" ) %>' Visible="false"></
asp:Label
>
<
asp:Label
runat
=
"server"
ID
=
"lblEmpLogin"
Text='<%# Eval( "EmployeeLogin" ) %>' Visible="false"></
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
UniqueName
=
"TemplateColumn"
HeaderText
=
"No"
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"numberLabel"
runat
=
"server"
/>
</
ItemTemplate
>
<
HeaderStyle
Width
=
"15px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
HeaderStyle-HorizontalAlign
=
"Left"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Un1"
FilterControlWidth
=
"100%"
DataField
=
"EmployeeNumber"
HeaderText
=
"NIK"
HeaderStyle-Width
=
"10%"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
HeaderButtonType
=
"TextButton"
>
<
HeaderStyle
Width
=
"10%"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderStyle-HorizontalAlign
=
"Left"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Un2"
FilterControlWidth
=
"100%"
DataField
=
"EmployeeName"
HeaderText
=
"Employee Name"
HeaderStyle-Width
=
"30%"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
HeaderButtonType
=
"TextButton"
>
<
HeaderStyle
Width
=
"15%"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderStyle-HorizontalAlign
=
"Left"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Un3"
FilterControlWidth
=
"100%"
DataField
=
"Position"
HeaderText
=
"Position"
HeaderStyle-Width
=
"30%"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
HeaderButtonType
=
"TextButton"
>
<
HeaderStyle
Width
=
"25%"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderStyle-HorizontalAlign
=
"Left"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Un4"
FilterControlWidth
=
"100%"
DataField
=
"DepartmentName"
HeaderText
=
"Department"
HeaderStyle-Width
=
"30%"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
HeaderButtonType
=
"TextButton"
>
<
HeaderStyle
Width
=
"25%"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
HeaderStyle-HorizontalAlign
=
"Left"
AutoPostBackOnFilter
=
"true"
UniqueName
=
"Un5"
FilterControlWidth
=
"100%"
DataField
=
"CompanyName"
HeaderText
=
"Company"
HeaderStyle-Width
=
"30%"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
HeaderButtonType
=
"TextButton"
>
<
HeaderStyle
Width
=
"25%"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
Selecting-AllowRowSelect
=
"false"
EnablePostBackOnRowClick
=
"false"
EnableRowHoverStyle
=
"false"
>
<
Resizing
AllowColumnResize
=
"false"
ResizeGridOnColumnResize
=
"false"
AllowResizeToFit
=
"false"
/>
</
ClientSettings
>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
<
FilterMenu
RenderMode
=
"Lightweight"
></
FilterMenu
>
<
HeaderContextMenu
RenderMode
=
"Lightweight"
></
HeaderContextMenu
>
</
telerik:RadGrid
>
I have a page that loads a list of controls based on report criteria. I've been converting some of these controls to Telerik, but I also have some controls that are custom controls. I've narrowed down the issue to when an ASP.NET control (ASP from the dropdown) gets loaded after a Telerik control (Telerik from the dropdown), I get a "Failed to load viewstate" error. It also happens if both controls are Telerik controls, but does not happen if all controls are ASP.NET controls.
DynamicControls.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="DynamicControls.aspx.vb" Inherits="TestCode.DynamicContrls" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<!DOCTYPE html>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
div
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
Runat
=
"server"
>
</
telerik:RadScriptManager
>
<
asp:DropDownList
ID
=
"cboCriteria"
runat
=
"server"
AutoPostBack
=
"True"
>
<
asp:ListItem
>Select a form</
asp:ListItem
>
<
asp:ListItem
Value
=
"Telerik"
>Form With Telerik Control</
asp:ListItem
>
<
asp:ListItem
Value
=
"ASP"
>Form With ASP Control</
asp:ListItem
>
</
asp:DropDownList
>
<
br
/>
<
asp:PlaceHolder
ID
=
"PlaceHolder1"
runat
=
"server"
></
asp:PlaceHolder
>
<
br
/>
</
div
>
</
form
>
</
body
>
</
html
>
DynamicControls.vb
Imports Telerik.Web.UI
Public Class DynamicContrls
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'If Not Session("ControlsCreated") = Nothing Then
CreateControl(cboCriteria.SelectedItem.Value)
'End If
End Sub
Private Sub CreateControl(ControlType As String)
Select Case ControlType
Case "Telerik"
RenderTelerikControls()
Case "ASP"
RenderASPControls()
End Select
Session("ControlsCreated") = True
End Sub
Private Sub RenderTelerikControls()
Dim txtFirst As New RadTextBox
txtFirst.ID = "txtTelerik" & Guid.NewGuid.ToString
PlaceHolder1.Controls.Add(txtFirst)
PlaceHolder1.Controls.Add(New LiteralControl("<
BR
>"))
End Sub
Private Sub RenderASPControls()
Dim txtFirst As New TextBox
txtFirst.ID = "txtASP" & Guid.NewGuid.ToString
PlaceHolder1.Controls.Add(txtFirst)
PlaceHolder1.Controls.Add(New LiteralControl("<
BR
>"))
End Sub
Protected Sub cboCriteria_SelectedIndexChanged(sender As Object, e As EventArgs) Handles cboCriteria.SelectedIndexChanged
' For this example, simply reload the page.
End Sub
End Class
It seems that adding an via "Insert Symbol" is not working.
We can reproduce this issue on the demo trial: I have downloaded the demo trial as a standalone-application, added the non-breaking space into toolsFile.xm and checked the behavior.
Please see this screencast for more details: https://www.screencast.com/t/J9aB5KdLr
We tried to create a custom ContentFilter that will replace the all zero width space characters to non-breaking space in the content. But that seems not to work as we don't have those zwsp charachters in the content withing the ContentFilter. Tried soluiton based on this post:https://www.telerik.com/forums/zwsp-inserted-into-html-in-chrome
Anyone had this issue before and found a solution?
Hello,
Is there any Math Symbols like WIRIS that could be integrated with RadEditor? I have searched the web for a week with no luck.
Or is the WIRIS fully supported?
Many thanks,
Zeyad.
Hello Telerik team,
I bound dblclick events on each tasks of my radgantt. This binding is made in the PageLoad function of the .aspx page which contains the radgantt.
This event allow the user to display a custom popup rather than the default one.
But I noticed that the execution don't go in my custom JavaScript code (and don't throw the dblclick event or anything else) as soon as I click on the expand/collapse button on a task.
I need that the execution go in my custom JavaScript code even if I click on the expand/collapse buttons.
Is it possible ?
Thanks in advance,
Best reagrds