尝试通过将 RadDock 放入 UpdatePanel 来更新它(打开/关闭它),但是没有运气....我收到以下回复。
189|error|500|Invalid JSON primitive: {"Top":179,"Left":583,"DockZoneID":"","Collapsed":false,"Pinned"
Run Code Online (Sandbox Code Playgroud)
:false,"Resizable":false,"Closed":false,"Width":"300px","Height":null,"ExpandedHeight":0,"Index":-1} .|
这是代码:
<asp:UpdatePanel ID="upanelDock" runat="server">
<ContentTemplate>
<telerik:RadDock ID="RadDock1" runat="server" Width="300px">
<TitlebarTemplate>
<h2>
this is a dock</h2>
</TitlebarTemplate>
<ContentTemplate>
some content here
<br />
some content here
<br />
some content here
<br />
</ContentTemplate>
</telerik:RadDock>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="lbtnUpdate" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID="lbtnUpdate" runat="server" OnClick="lbtnUpdate_Click">update</asp:LinkButton>
Run Code Online (Sandbox Code Playgroud)
后面的代码:
protected void lbtnUpdate_Click(object sender, EventArgs e)
{
if (this.RadDock1.Closed)
this.RadDock1.Closed = false;
else
this.RadDock1.Closed = true;
}
Run Code Online (Sandbox Code Playgroud)
我在这里做错了什么?
我有一个Telerik Grid,有两列我需要将第二列作为下拉列表框保存在网格中,我正在使用ASP.NET MVC控件
任何人都能告诉我怎么做吗?
我对图书馆“Telerik”有一点问题。事实上,我想实现一个带有'checkBox'的'RadCombobox'。它运行良好,但是当我想要'Check'一个项目时,这是不可能的?!这是我的示例代码。我更改了属性'selected'的属性但是不幸的是,它没有选中“已选中”框.....
非常感谢您的回答!
<!-- language: lang-cs -->
//Define the sqlAdaptater for binding source
System.Data.SqlClient.SqlDataAdapter myBinding = new SqlDataAdapter("SELECT [name] FROM [dbo].[tblProcess] WHERE [currentVersion] = 1 AND [deleted] = 0 AND [parent] = 0",connectionString);
DataTable links = new DataTable();
myBinding.Fill(links);
//Set the attributs of RadCombobBox
RadComboBoxSelectedEntity.DataTextField = "name";
RadComboBoxSelectedEntity.DataValueField = "name";
RadComboBoxSelectedEntity.DataSource = links;
//Not working..its selected but not checked ?
RadComboBoxSelectedEntity.SelectedIndex = 1;
//Not exist ?? ->
RadComboBoxSelectedEntity.CheckedIndex = 1;
Run Code Online (Sandbox Code Playgroud) 我想有能力选择单元格和选择行。为了选择单元格,我设置了 SelectionUnit="Cells" 和 SelectionMode="Extended"。它工作正常。但现在我需要能够选择行。用户可以通过行标题(在行的左侧)选择行。
如何轻松实现?
我正在使用Asp.Net 4.5(VS2012)开发网站并使用Telerik Ajax控件.我正在使用Telerik Schedular,Grid,AjaxPanel等.
项目编译好.当我从VS运行它..它显示我这样的URL
http://localhost:23482/default.aspx
然后突然在URL之间插入一些随机字符串.它看起来很像下面的连线
"http://localhost:23482/(S(hchi1ir5xii2dy1cjgpghqx3))/default.aspx"
"http://localhost:23482/(S(mgxsfl3rnxnbx2y24i12nowe))/default.aspx"
"http://localhost:23482/(S(sc2hyowh0f2xidnx1zptgaqd))/default.aspx"
Run Code Online (Sandbox Code Playgroud)
我也尝试从IIS运行它作为网站.没有运气..同样的问题.
注意:网站仍然可以正常工作,即使URL中的随机字符串也没有任何损坏.
任何人都可以给我一些建议吗?
谢谢
This should be a softball for someone :)
I have started a new webforms project(.net 4.0) and I need to add a Telerik RadAsyncUpload but when I try and use the upload control I get these javascript error message
Failed to load resource: the server responded with a status of 404 (Not Found) Uncaught Error while uploading, HTTP Error code is: 404
I believe something is missing in my web.config but I am not sure what here is my web.config …
我有一个ASP.NET MVC Telerik Grid(不是Kendo).我有一个有两列的网格.第一列是我可以选择的项目的下拉列表,第二列只是一个可编辑的文本框.
我想在编辑时将第一列设置为READ ONLY,这意味着我只能编辑第二列而不能编辑第一列.我将第一列设置为只读取模型(模型类中的[ReadOnly]标签)和视图(即可编辑(假)).
当我这样做时,我不允许像我想要的那样在编辑模式下编辑第一列.但是,当我去插入/创建一个新记录时......第一列是空白的,我只能输入第二列的值.
我已经尝试了一切并环顾四周,但找不到解决方案.
我想使用 ExpandoObjects 列表作为 Telerik 报告的数据源,但 Telerik 报告目前似乎不支持此功能。他们确实支持将 XML 作为数据源,所以我试图将我的 ExpandoObjects 列表转换为 XML 字符串。
我已经看到(在Can I serialize an ExpandoObject in .NET 4?),可以通过 jsonFx 通过这个(VB.net 代码,而不是 c#)将单个 ExpandoObject 序列化为 XML 字符串:
dim XMLwriter As New JsonFx.Xml.XmlWriter
dim serializedExpando as string = XMLwriter.Write(obj)
Run Code Online (Sandbox Code Playgroud)
或其等效的 c# 代码:
JsonFx.Xml.XmlWriter XMLwriter = new JsonFx.Xml.XmlWriter();
String serializedExpando = XMLwriter.Write(obj);
Run Code Online (Sandbox Code Playgroud)
如何将整个列表序列化为 XML 字符串?
我有以下代码:
function grd_onChange(e) {
var grid = $("#grd").data("kendoGrid");
var selectedCell = grid.select();
var index = selectedCell.index();
var row = selectedCell.closest("tr");
var col = selectedCell.closest("td");
alert(row);
}
Run Code Online (Sandbox Code Playgroud)
我想知道当用户单击网格的特定行的单元格时如何获取列索引。
我目前正在使用Sitefinity多语言(英语和阿拉伯语)Web应用程序,在该应用程序上我遇到了一个非常奇怪的有关文档(图像)上传的问题。
在我的新闻模块中,我有一个用于上传图片的自定义字段。当我添加新闻的阿拉伯新闻(将英语站点已添加的新闻的阿拉伯语翻译)时,图像显示(未翻译)消息,发布后图像未显示在阿拉伯站点中。当我在该图像上传字段中选择另一张图像时,该图像在阿拉伯语站点中显示,但随后从英语站点中删除。
telerik ×10
c# ×5
asp.net ×2
asp.net-mvc ×2
javascript ×2
telerik-grid ×2
.net ×1
ajax ×1
checkbox ×1
jquery ×1
json ×1
kendo-grid ×1
kendo-ui ×1
localhost ×1
radcombobox ×1
radgrid ×1
radgridview ×1
sitefinity ×1
telerik-mvc ×1
wpf ×1
xml ×1