![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Telerik
文章平均质量分 50
飞翔精灵
这个作者很懒,什么都没留下…
展开
-
How to get the data from a cell when I click on the GridButtonColumn of the same row
ASPX:C#protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e){ if (e.Item is GridDataItem) { int index = e.Item.ItemIndex; //Get the index of原创 2012-12-24 19:08:28 · 595 阅读 · 0 评论 -
Problem with ReportViewer (Q1 2014) rendering in IE 10 or 11
添加以下代码:protected void Page_Load(object sender, EventArgs e){HttpBrowserCapabilities bc;bc = Request.Browser;if (bc.Browser == "InternetExplorer"){Response.AppendHeader("X-UA-Compatib原创 2014-03-22 15:44:40 · 917 阅读 · 0 评论 -
TextBox Password Mode
Mode 1:ASPX: <telerik:GridBoundColumn DataField="cPwd" HeaderText="口令" UniqueName="cPwd" EditFormColumnIndex="0" Visible="false"> C#: protected void Ra原创 2014-04-01 17:01:49 · 901 阅读 · 0 评论 -
Attach js from server side
On suggestion is to use GridButtonColumn instead of GridTemplateColumn and set its DataTextField to corresponding field name. And you can set its CommandName and ConfirmText property like below.ASPX原创 2013-08-13 13:12:33 · 1147 阅读 · 0 评论 -
Call JavaScript from server side
It is possible to execute a JavaScript from server-side code. In order to do this, make sure that the code is actually inserted on the page – the easiest way is to put a simple alert() and check if it原创 2013-08-13 13:03:15 · 641 阅读 · 0 评论 -
RadTreeView:How to add controls to a node
While you can always use an item template to customize the appearance of the nodes in a tree view, anotherapproach is to simply add controls directly to the Controlscollection of a node in the cod原创 2013-02-27 15:00:00 · 305 阅读 · 0 评论 -
RadComboBox: How to Sort Items
1. You can sort statically declared items in a Page_Loadevent handler. Add the following code thePage_Loadevent handler. [C#] Sorting statically declared items protected void Page_Load(object se原创 2013-02-27 13:28:18 · 606 阅读 · 0 评论 -
RadTreeView: How to Wrapping the text of tree nodes
Use Style="White-Space:normal;" can wrap node(nodes) text to fit the allotted width.[ASP.NET] Long tree node with style attribute<telerik:RadTreeNode runat="server" style="white-space: normal;"T原创 2013-02-27 14:53:07 · 523 阅读 · 0 评论 -
RadAsyncUpload
Keep in mind that RadAsyncUpload: Files are not directly uploaded to the page, but to a handler -Telerik.Web.UI.WebResource.axd. Uploaded files will be transferred to the TargetFolder when a pos原创 2013-02-27 10:54:29 · 1042 阅读 · 0 评论 -
How to aviod new line when use RadAjaxManager
Gotcha!"When I use RadAjaxManager, the AJAX-enabled controls are placed on a new line!". The reason for this behavior is that RadAjaxManager dynamically inserts MS AJAX UpdatePanelcontrols aro原创 2013-01-23 21:30:13 · 445 阅读 · 0 评论 -
取消被Ajaxified的Toolbar中某个按钮的Ajax功能
方法一:在RequestStart事件中直接处理。 function RadAjaxManager1_OnRequestStart(sender, args) { var eventTarget = args.get_eventTarget(); //the UniqueID of the control which triggers the ajax原创 2013-01-17 14:06:22 · 511 阅读 · 0 评论 -
Export RadGrid content to Excel/Word/CSV/PDF with Ajax enabled
the point is use hiddenfield to store which button has been clicked. function requestStart(sender, args) { if (args.get_eventTarget().indexOf("RadToolBar1") >= 0) { var原创 2013-01-15 12:31:08 · 741 阅读 · 0 评论 -
Excel Export, how to remove filter buttons etc
Issue 1: How to export RadGrid without the filter item (HTML Excel, ExportOnlyData="false")When IgnorePaging is set to "false" you can use this approach:protected void Button1_Click(object sende原创 2013-01-15 12:28:42 · 1043 阅读 · 0 评论 -
RadInput Error handling
JS:function HandleMaskError(sender, eventArgs) {// on masked text box, get_newValue() returns the problem valuealert("Invalid value: " + eventArgs.get_newValue());// get_currentPart() returns the p原创 2013-01-10 21:24:11 · 595 阅读 · 0 评论 -
Filling the Web page with a splitter
To create the feel of a desktop application, you may want to have a splitter control fill the entire Web page. Todo this, you must obviously set the Widthand Heightproperties of the splitter to "1原创 2013-01-24 16:51:17 · 311 阅读 · 0 评论 -
Retrieving AjaxSettings on the Client
function RequestStart(sender, args) { var settings = sender.get_ajaxSettings(); var settingList = ''; for (setting in settings) { var initControlID原创 2013-01-23 21:49:29 · 363 阅读 · 0 评论 -
Handling the OnRequestStart and OnResponseEnd Client Events
function RequestStart(sender, args){ if (isAjaxActive) { args.set_cancel(true); } else { isAjaxActive = true; document.body.style.cursor = "wait"; }}function ResponseEnd(sender, args)原创 2013-01-23 21:45:40 · 359 阅读 · 0 评论 -
Telerik Grid 设置合计
ASPX:C#:protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e){ int total = 0; if (e.Item is GridDataItem) { GridDataItem dataItem = (GridData原创 2015-12-06 23:55:27 · 1758 阅读 · 0 评论