When I paste the below HTML in the RadEditor HTML View
<
PB_START
/><
strong
contenteditable
=
"false"
>-----PageBreak-----</
strong
><
PB_END
/>
Its generating the end tag for PB_START tag at wrong place. Please see below for the generated Html in the RadEditor corresponding to the above tag
<
pb_start
><
strong
contenteditable
=
"false"
>-----PageBreak-----</
strong
><
br
><
pb_end
></
pb_end
><
br
></
pb_start
>
But we are expecting the end tag for pb_start tag after the start tag of <pb_start> not after the </pb_end> tag.
Please find below expected HTML
<
pb_start
></
pb_start
><
strong
contenteditable
=
"false"
>-----PageBreak-----</
strong
><
pb_end
></
pb_end
>
Please let me know why the end tag </pb_start> is not after the <pb_start>. Is there any filter to resolve the above problem.
Hi,
I have the following scenario:
A Grid populated with some data. User can change order and size of columns. After that I require a button to export to PDF or Excel files with a method I have at at code behind.
The changes were done by the user at client level....so my question is how I can reflect those changes into Server side.
I want to get the final order of the columns and their sizes in order to create PDF and Excel with those attributes.
Thanks in advance, hope you could help me with this or point me the right way to do it.
Regards
Oscar
Hi,
Please help me in finding RadTextbox and updating RadTextbox value of other column in Radgrid
Note:- these operations should be done clientside
Thanks in Advance.
I am dynamically generating a RadWindow with an AJAX UpdatePanel added to it's ContentTemplate in my custom server control (during the control's Init event) like so:
_updatePanel = new UpdatePanel() { ID = string.Format("{0}_UpdatePanel", ID), UpdateMode = UpdatePanelUpdateMode.Conditional };
_modalWindow = new RadWindow();
_modalWindow.ID = string.Format("{0}_radWindow", ID);
_modalWindow.ContentContainer.Controls.Add(_updatePanel);
The server control with said RadWindow is also dynamically declared in a RadGrid's GridTemplateColumn. The idea is when the user edits a RadGrid record that contains a RadComboBox the user can view/edit the details of the selected RadComboBox item in a RadWindow popup. This all works fine until I attempt to hit the Save or Cancel button on the RadGrid to close edit mode.
I am aware of the following posts that describe why the error is happening but I am not sure how to go about solving this in my situation.
http://www.telerik.com/forums/is-a-partial-postback-with-radwindow-possible
It seems the solution is to declare the RadWindow directly on the page. The problem is I am developing a server control, would it work if I got a reference to the Page and added it directly instead of to the ControlCollection of my server control?
Thanks!
I am newbie to telerik controls. I am currently using RadScheduler control, how do i increase the width of Group by cell name (See the attachment) and see my code below.
<telerik:RadScheduler ID="RadScheduler1" runat="server" |
DataSourceID="SQLDSAppointmentList" |
DataKeyField="ID" |
DataStartField="StartDate" DataEndField="EndDate" |
DataSubjectField="Description" |
Skin="Outlook" |
GroupBy ="Inspectors" |
GroupingDirection ="Vertical" |
SelectedView="MonthView"> |
<ResourceTypes> |
<telerik:ResourceType DataSourceID="SQLDSInspectorList" |
ForeignKeyField="InspectorID" KeyField="InspectorListID" Name="Inspectors" |
TextField="InspectorName" /> |
<telerik:ResourceType DataSourceID="SQLDSInspectionTaskList" |
ForeignKeyField="InspectionTaskTypeID" KeyField="ReferenceTypeDetailsID" Name="InspectionTaskTypes" |
TextField="Name" /> |
</ResourceTypes> |
</telerik:RadScheduler> |
</div><br /> |
<div> |
<asp:Button ID="ButtonAddNonInspectionTaskTypeList" runat ="server" Text ="Add Non-InspectionTask" /> |
</div> |
<asp:SqlDataSource |
ID="SQLDSInspectorList" |
runat="server" |
ConnectionString="<%$ ConnectionStrings:SQLConnectionString %>" |
SelectCommand ="SELECT IL.InspectorListID ,IL.UserInfo_tp_Title AS InspectorName |
FROM RSS.InspectorList IL WHERE IL.InspectorListID = 14" |
> |
</asp:SqlDataSource> |
<asp:SqlDataSource ID="SQLDSInspectionTaskList" runat ="server" |
ConnectionString ="<%$ ConnectionStrings:SQLConnectionString %>" |
SelectCommand ="SELECT |
RTD.ReferenceTypeDetailsID |
,RTD.Name |
FROM RSS.ReferenceTypeDetails RTD |
INNER JOIN RSS.ReferenceTypes RT |
ON RT.ReferenceTypeID = RTD.ReferenceTypeID |
WHERE RT.Name = 'InspectionTaskTypes'"></asp:SqlDataSource> |
<asp:SqlDataSource ID="SQLDSAppointmentList" runat ="server" |
ConnectionString ="<%$ ConnectionStrings:SQLConnectionString %>" |
SelectCommand ="SELECT [ID] |
,[StartDate] |
,[EndDate] |
,[InspectorID] |
,[InspectionTaskTypeID] |
,[Description] |
FROM vw_InspectionTaskAppointmentsAll"> |
</asp:SqlDataSource> |
Hi,
Here is the .ASPX Code for the RadGrid. Problem is, I am not able to Use Validation Controls(i.e.RequiredFieldValidator etc…) for the “txtRfqDetSize , txtRfqDetCubic AND cboItemID “ controls in the following scenario.
Any one will help me how to use Validation Controls in the following Scenario?
<telerik:RadGrid ID="rgRFQDetails" runat="server" AllowPaging="True" GridLines="Horizontal"
OnNeedDataSource="rgRFQDetails_NeedDataSource" Skin="Default" PageSize="10" Width="100%"
OnUpdateCommand="rgRFQDetails_UpdateCommand" OnDeleteCommand="rgRFQDetails_DeleteCommand">
<PagerStyle Mode="Slider" />
<%--<AlternatingItemStyle BackColor="#F1EFE9" />--%>
<MasterTableView AutoGenerateColumns="false" DataKeyNames="RFQDetails_RegSerLineNo"
EditMode="InPlace" CommandItemStyle-CssClass="RGCmdHeader" CommandItemSettings-RefreshText=" Refresh">
<Columns>
<telerik:GridBoundColumn Visible="false" DataField="RFQDetails_RegSerLineNo" HeaderText="Service L.No"
HeaderStyle-Width="15%" HeaderStyle-CssClass="GridHeadernew" UniqueName="RFQDetails_RegSerLineNo"
ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" DataField="RFQDetails_RegSerCode" HeaderText="Service Code"
HeaderStyle-Width="15%" HeaderStyle-CssClass="GridHeadernew" UniqueName="RFQDetails_RegSerCode"
ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RFQDetails_RegSerName" HeaderText="Service Name"
HeaderStyle-Width="15%" HeaderStyle-CssClass="GridHeadernew" UniqueName="RFQDetails_RegSerName"
ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RFQDetails_Coordinator" HeaderText="Coordinator"
HeaderStyle-Width="13%" HeaderStyle-CssClass="GridHeadernew" UniqueName="RFQDetails_Coordinator"
ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Commodity" HeaderText="Commodity" HeaderStyle-Width="13%"
HeaderStyle-CssClass="GridHeadernew" UniqueName="Commodity" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="RFQDetails_WeightInLbs" ItemStyle-HorizontalAlign="Right"
HeaderText="Weights" HeaderStyle-Width="5%" HeaderStyle-CssClass="GridHeadernew"
UniqueName="RFQDetails_WeightInLbs" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Size" UniqueName="RFQDetails_Size" ItemStyle-HorizontalAlign="Left"
HeaderStyle-CssClass="GridHeadernew" HeaderStyle-Width="6%">
<ItemTemplate>
<telerik:RadTextBox Width="75%" Text='<%# Eval("RFQDetails_Size") %>' ID="txtRfqDetSize"
runat="server" onkeypress="fn_validateDecimal(this,'n')">
</telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Cubic" UniqueName="RFQDetails_Cubic" ItemStyle-HorizontalAlign="Left"
HeaderStyle-CssClass="GridHeadernew" HeaderStyle-Width="6%">
<ItemTemplate>
<telerik:RadTextBox Width="75%" Text='<%# Eval("RFQDetails_Cubic") %>' ID="txtRfqDetCubic"
runat="server" onkeypress="fn_validateDecimal(this,'n')">
</telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="UM" UniqueName="RFQDetails_UOM" HeaderStyle-CssClass="GridHeadernew">
<ItemTemplate>
<telerik:RadComboBox ID="cboItemID" DataTextField="Lookup_Value" DataValueField="Lookup_Key"
Text='<%# Bind("RFQDetails_UOM") %>' OnInit="RadComboBox1_Init" EnableLoadOnDemand="True"
runat="server" Width="100px">
</telerik:RadComboBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderStyle-Width="7%" HeaderText="From" Visible="false"
HeaderStyle-CssClass="GridHeadernew">
<ItemTemplate>
<asp:Label ID="lblServiceLine" runat="server" Text='<%#Bind("RFQDetails_RegSerLineNo") %>'></asp:Label>
<asp:Label ID="lblServiceCode" runat="server" Text='<%#Bind("RFQDetails_RegSerCode") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ConfirmText="Are you Sure to Update the Record" ConfirmTitle="Update1"
HeaderStyle-Width="3%" ButtonType="ImageButton" CommandName="Update" HeaderStyle-CssClass="GridHeadernew">
</telerik:GridButtonColumn>
<telerik:GridTemplateColumn HeaderText="Status" HeaderStyle-Width="8%" HeaderStyle-CssClass="GridHeadernew">
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:CheckBox runat="server" Width="70" ID="chkRFQDetStatus" AutoPostBack="true" Checked='<%# CheckRecordStatus((bool)Eval("IsActive"))%>'
Text='<%# CheckText((bool)Eval("IsActive"))%>' OnCheckedChanged="chkRFQDetStatus_CheckedChanged" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns></MasterTableView></telerik:RadGrid>
Regards,
Ranganath.S
<
asp:Panel
ID
=
"AjaxPanel"
runat
=
"server"
defaultbutton
=
"LoginConfirm"
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
activeAjaxRequest = false;
noPermanentLogin('sdf');
</
script
>
</
telerik:RadScriptBlock
>
function
noPermanentLogin(args) {
radalert(
'Radalert is called from the client!'
, 330, 180,
'Client RadAlert'
, alertCallBackFn(args),
''
);
}
function
alertCallBackFn(args) {
alert(args);
//window.location.href = args
}
Me.AjaxManager.ResponseScripts.Add("noPermanentLogin('returnUrl')")
RadWindowManager.RadAlert("Testina", Nothing, Nothing, "Totolo", "window.location.href = '" & returnUrl & "'")
RadWindowManager.RadAlert("Testina", Nothing, Nothing, "Totolo", "redirectFunction('testurl')")
Hi Telerik
I have radgrid that client binding to WCF (Ajax-enabled) service . that's fine work on locally but on host has problme and can't show data .
please help me . i tired to do it ..
thanks.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadStyleSheetManager
id
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
telerik:RadGrid
ID
=
"gvProvince"
runat
=
"server"
AllowMultiRowSelection
=
"True"
AllowFilteringByColumn
=
"True"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
AllowSorting
=
"True"
AllowPaging
=
"True"
DataKeyNames
=
"ProvinceId"
ClientDataKeyNames
=
"ProvinceId"
AllowAutomaticDeletes
=
"True"
>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
/>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"RowNumber"
HeaderText
=
"row"
SortExpression
=
"RowNumber"
UniqueName
=
"RowNumber"
AllowFiltering
=
"False"
></
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"ProvinceId"
HeaderText
=
"Province Id"
SortExpression
=
"ProvinceId"
UniqueName
=
"ProvinceId"
AllowFiltering
=
"False"
></
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
DataField
=
"ProvinceName"
HeaderText
=
"Province Name"
SortExpression
=
"ProvinceName"
UniqueName
=
"ProvinceName"
AllowFiltering
=
"False"
>
<
HeaderStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
VerticalAlign
=
"Middle"
/>
<
ClientItemTemplate
>
#=ProvinceName#
</
ClientItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
</
MasterTableView
>
<
ClientSettings
AllowColumnsReorder
=
"True"
AllowDragToGroup
=
"True"
ReorderColumnsOnClient
=
"True"
EnableRowHoverStyle
=
"True"
>
<
DataBinding
FilterParameterType
=
"Linq"
Location
=
"~/App/Services/ProvinceService.svc"
ResponseType
=
"JSONP"
SelectMethod
=
"GetProvinces"
SortParameterType
=
"Linq"
>
</
DataBinding
>
<
Selecting
AllowRowSelect
=
"True"
></
Selecting
>
</
ClientSettings
>
</
telerik:RadGrid
>
</
div
>
</
form
>
</
body
>
</
html
>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;
using RadTest.Models;
using Telerik.Web.UI;
namespace RadTest.App.Services
{
public class ProvinceInformation
{
public int ProvinceId { get; set; }
public string ProvinceName { get; set; }
}
[DataContract]
public class ProvinceInfoService
{
[DataMember]
public int RowNumber { get; set; }
[DataMember]
public int ProvinceId { get; set; }
[DataMember]
public string ProvinceName { get; set; }
}
public class ResultDataProvince
{
public int Count { get; set; }
public List<
ProvinceInfoService
> Data { get; set; }
}
[ServiceContract(Namespace = "")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class ProvinceService
{
[OperationContract]
public ResultDataProvince GetProvinces(int startRowIndex, int maximumRows, string sortExpression, string filterExpression)
{
var row = startRowIndex;
using (var db = new persianEntities())
{
var lst = (from province in db.Provinces
select new ProvinceInformation()
{
ProvinceId = province.ProvinceId,
ProvinceName = province.ProvinceName
}
).OrderBy(p => p.ProvinceId);
var data = RadGrid.GetBindingData(lst, startRowIndex, maximumRows, sortExpression, filterExpression);
var result = new ResultDataProvince();
result.Data = data.Data.Select(p => new ProvinceInfoService()
{
ProvinceId = p.ProvinceId,
ProvinceName = p.ProvinceName
}).ToList().Select(p => new ProvinceInfoService()
{
RowNumber = ++row,
ProvinceId = p.ProvinceId,
ProvinceName = p.ProvinceName
}).ToList();
result.Count = data.Count;
return result;
}
}
}
}
<?
xml
version
=
"1.0"
?>
<
configuration
>
<
configSections
>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<
section
name
=
"entityFramework"
type
=
"System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission
=
"false"
/>
</
configSections
>
<
appSettings
>
<
add
key
=
"Telerik.Skin"
value
=
"Default"
/>
<
add
key
=
"Telerik.ScriptManager.TelerikCdn"
value
=
"Disabled"
/>
<
add
key
=
"Telerik.StyleSheetManager.TelerikCdn"
value
=
"Disabled"
/>
<
add
key
=
"Telerik.Web.UI.RenderMode"
value
=
"lightweight"
/>
</
appSettings
>
<
system.web
>
<
compilation
debug
=
"true"
targetFramework
=
"4.5"
/>
<
httpRuntime
targetFramework
=
"4.5"
/>
<
pages
>
<
controls
>
<
add
tagPrefix
=
"telerik"
namespace
=
"Telerik.Web.UI"
assembly
=
"Telerik.Web.UI"
/>
</
controls
>
</
pages
>
<
httpHandlers
>
<
add
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
validate
=
"false"
/>
<
add
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
validate
=
"false"
/>
</
httpHandlers
>
</
system.web
>
<
system.webServer
>
<
validation
validateIntegratedModeConfiguration
=
"false"
/>
<
handlers
>
<
remove
name
=
"ChartImage_axd"
/>
<
add
name
=
"ChartImage_axd"
path
=
"ChartImage.axd"
type
=
"Telerik.Web.UI.ChartHttpHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
/>
<
add
name
=
"Telerik_Web_UI_SpellCheckHandler_axd"
path
=
"Telerik.Web.UI.SpellCheckHandler.axd"
type
=
"Telerik.Web.UI.SpellCheckHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_DialogHandler_aspx"
/>
<
add
name
=
"Telerik_Web_UI_DialogHandler_aspx"
path
=
"Telerik.Web.UI.DialogHandler.aspx"
type
=
"Telerik.Web.UI.DialogHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_RadUploadProgressHandler_ashx"
/>
<
add
name
=
"Telerik_RadUploadProgressHandler_ashx"
path
=
"Telerik.RadUploadProgressHandler.ashx"
type
=
"Telerik.Web.UI.RadUploadProgressHandler"
verb
=
"*"
preCondition
=
"integratedMode"
/>
<
remove
name
=
"Telerik_Web_UI_WebResource_axd"
/>
<
add
name
=
"Telerik_Web_UI_WebResource_axd"
path
=
"Telerik.Web.UI.WebResource.axd"
type
=
"Telerik.Web.UI.WebResource"
verb
=
"*"
preCondition
=
"integratedMode"
/>
</
handlers
>
</
system.webServer
>
<
system.serviceModel
>
<
behaviors
>
<
endpointBehaviors
>
<
behavior
name
=
"RadTest.App.Services.ProvinceServiceAspNetAjaxBehavior"
>
<
enableWebScript
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
<
serviceHostingEnvironment
aspNetCompatibilityEnabled
=
"true"
multipleSiteBindingsEnabled
=
"true"
/>
<
services
>
<
service
name
=
"RadTest.App.Services.ProvinceService"
>
<
endpoint
address
=
""
behaviorConfiguration
=
"RadTest.App.Services.ProvinceServiceAspNetAjaxBehavior"
binding
=
"webHttpBinding"
contract
=
"RadTest.App.Services.ProvinceService"
/>
</
service
>
</
services
>
</
system.serviceModel
>
<
connectionStrings
>
<
add
name
=
"persianEntities"
connectionString
=
"metadata=res://*/Models.Persian.csdl|res://*/Models.Persian.ssdl|res://*/Models.Persian.msl;provider=System.Data.SqlClient;provider connection string="data source=x.x.x.x;initial catalog=xx;user id=xx;password=xx;MultipleActiveResultSets=True;App=EntityFramework""
providerName
=
"System.Data.EntityClient"
/>
</
connectionStrings
>
<
entityFramework
>
<
providers
>
<
provider
invariantName
=
"System.Data.SqlClient"
type
=
"System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"
/>
</
providers
>
</
entityFramework
>
</
configuration
>